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



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;




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




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!