Help - Intralink scripting

Discussion in 'Pro/Engineer & Creo Elements/Pro' started by Peter Bo, Feb 22, 2004.

  1. Peter Bo

    Peter Bo Guest

    I wrote a little DOS-Batch file, which makes ProE Trail file from a
    text file of the object's names (prt, asm, drw). The Trail file makes
    only a simple ModelCheck and saves the object. But now I have to put the
    object's names manually into the text file. I want to do this with
    the Intralink script (<Ctrl><s>). I figured out that this script is
    Java script, which contains the follows:

    // Version: Intralink v.3.2, (build #2003120 - I4.0.5.25)
    // Start Macro Recording
    import com.ptc.intralink.client.script.*;
    import com.ptc.intralink.script.*;
    ..
    ..
    ..
    IL.refresh( );
    IL.setTableConfiguration( "for ModelCheck" );
    IL.selectAll( "WSPI" );


    And at this point, I don't know, how can I save the selected list,
    because the edit menu copy <Ctrl><Insert> command won't be saved
    with the Intralink scripting recorder. My Java knowledge is a little
    poorish, sorry.
    Any Idea?
    With this step, I could make my Trail file totally automatic.


    Thank you,

    Peter Bo
    from Hungary
     
    Peter Bo, Feb 22, 2004
    #1
  2. Peter Bo

    Peter Bo Guest

    It is done, I solved it. There is an option to print to text-file
    the selected Itmes:

    IL.printContent( "obj_list.txt", 1 );

    It isn't the solution, that I expected, but it works.

    Bye

    Peter Bo
    from Hungary
     
    Peter Bo, Feb 25, 2004
    #2
  3. Peter Bo

    PaoloV Guest

    Where are stored this script files?
    I didn't find it.

    Thanks, Paolo.
     
    PaoloV, Feb 26, 2004
    #3
  4. Peter Bo

    Peter Bo Guest

    Hi PaoloV,
    If you record a script (test), (Start/do something, for example
    refresh/Stop) then you will have somewhere in your intralink loadpoint
    the "test.java" and "test.class", at our company it is:

    $INTRALINK_DIR\.proi\.data\.user_data\source\test.java
    $INTRALINK_DIR\.proi\.data\.user_data\lib\test.class

    I guess, the exact path to these files is depend on the intralink
    client settings.

    Peter Bo
    from Hungary
     
    Peter Bo, Feb 26, 2004
    #4
  5. Peter Bo

    PaoloV Guest

    Hi PaoloV,
    I find it, Thanks.

    Paolo.
     
    PaoloV, Feb 27, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.