Robot Screen Updating = False (VBA API Interaction)

Robot Screen Updating = False (VBA API Interaction)

jhe55NCY
Enthusiast Enthusiast
330 Views
2 Replies
Message 1 of 3

Robot Screen Updating = False (VBA API Interaction)

jhe55NCY
Enthusiast
Enthusiast

Hello everyone,

 

in VBA, you can prevent the excel screens from updating when running a macro using the code:
Application.ScreenUpdating = False

 

Is there a similar code to prevent the Robot window from updating when you are using the API? I have some VBA code which adds nodes and members into my Robot model and I'd like it to only update my Robot window once the macro has finished running and all of the structure is built instead of showing me each node and member being added one by one.

 

Thanks

0 Likes
Accepted solutions (1)
331 Views
2 Replies
Replies (2)
Message 2 of 3

Romanich
Mentor
Mentor
Accepted solution

Hi @jhe55NCY

Dim RobApp As RobotApplication
Set RobApp = New RobotApplication

RobApp.Interactive = False
'your code

RobApp.Interactive = True
RobApp.Project.ViewMngr.Refresh

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.

Roman Zhelezniak

Robot Evangelist & Passionate Civil Structural Engineer

LinkedIn | Robot & Хобот | App Store for Robot
EESignature


Message 3 of 3

jhe55NCY
Enthusiast
Enthusiast

Hi @Romanich,

Thank you, this is the code I was looking for!

0 Likes