Reply
Solved! Go to solution

Updating Variables using 'Call objVariables.Edit' statement

Solid Edge Comunity,

 

I am working on a Visual Basic program that is used to drive graphics in a SolidEdge asm file creating an animation.  The following Call objVariables.Edit statements work well for changing one variable at a time.

 

     Call objVariables.Edit("V1649", XPos)
     Call objVariables.Edit("V1644", YPos)

     Call objVariables.Edit("V864", ZPos)

 

Is there a way to update two to three variables simultaneously?  (With a single statement)

That would greatly improve the visual movement during the animation.

 

Thanks for any help.

Don

3 REPLIES

Re: Updating Variables using 'Call objVariables.Edit' statement

Don,

 

look for SEApplication.DelayCompute and SEApplication.ScreenUpdating.

 

HTH

Gerald

Re: Updating Variables using 'Call objVariables.Edit' statement

Thanks, I will look there.

 

Don

Solution
Solution
Accepted by topic author Don_E
‎08-26-2015 04:32 AM

Re: Updating Variables using 'Call objVariables.Edit' statement

I tried the following.

 

    Set objApp = GetObject(, "SolidEdge.Application")

      :

      :

    objApp.ScreenUpdating = False
    Call objVariables.Edit("V864", ZPos)
    Call objVariables.Edit("V1649", XPos)
    Call objVariables.Edit("V1644", YPos)
    objApp.ScreenUpdating = True

 

Solid Edge screen updates with (objApp.ScreenUpdating = True) statement.

 

Thanks for the help.

 

Don