charles.ietswaard1

Placing two tables with motion graphics

Discussion created by charles.ietswaard1 on Nov 26, 2013
Latest reply on Dec 2, 2013 by charles.ietswaard1

Hi All,

 

 

I want to place two tables using motion graphics. The tables are generated with value's from one form.  The value's of the form are passed to external scripts with the Scripting.Globals command and then the scripts are called.

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Dim cmd, cmd_exe

    Dim ScriptingHome                                                                                                                ' Directory where the scripts are stored

    Dim ScriptFile                                                                                                                       ' The external script to run

 

    ScriptingHome  = "P:\mentor_exp\et_libraries\Automation\PCB_Drawings\"

 

 

    ScriptFile         = "Table1.vbs"

    cmd                 = ScriptingHome&ScriptFile                                                                           ' Creating the path to the external script

    cmd_exe          = application.ProcessScript(cmd,True)                                                            ' Run the external script for Table1

 

 

    Scriptfile          = "Table2.vbs"

    cmd                = ScriptingHome&ScriptFile                                                                           ' Creating the path to the external script

    cmd_exe         = application.ProcessScript(cmd,True)                                                           ' Run the external script for Table 2

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

 

 

When you only run the script for Table1 or the script for Table2 everything works fine. The motion graphics are created and when the mouse button is clicked the graphics are placed on the drawing.

 

When you run both scripts from the form, the motion graphics for Table1 are created and the script is waiting for the mouse click. Meanwhile  the second script is called and the motion graphics for table2 are created, clearing the graphics from the first script.

 

Is there a way to call the script for the first table and wait till it's placed on the drawing and then continue with the second script

 

 

btw, in both table scripts the Scripting.DontExit is set to true to wait for the mouse click

 

 

Regards, Charles

Outcomes