AnsweredAssumed Answered

Enable/disable "Lock Rotation" function with SW API

Question asked by Nikolay Bratovanov on Jun 27, 2016
Latest reply on Jul 2, 2018 by Artem Taturevych

Hello,

 

I have a two-link robot assembly with a concentric mate between the links. I'm trying to create a VBA macro with the following simple functionality:

 

- Pressing the "LOCK R" ToggleButton enables the "Lock Rotation" function of the concentric mate;

- Releasing the "LOCK R" ToggleButton disables the "Lock Rotation" function of the concentric mate;

 

1.jpg

 

I'm trying to do this with the following code:

 

2.jpg

 

As a result, the concentric mate ("Concentric5") is selected but the "Lock Rotation" function does not change! Can anyone help me with the code? I'm using the EditMate4 Method, but obviously something more has to be done. Thank you!

Outcomes