Fifteen seconds to set a jointMotion limit value via a script using the API??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a design that includes some revolute joints. In my C++ script I set the min and max values of some of those revolute joints, with code like this::
MyRevoluteJointMotion->rotationLimits()->minimumValue(GearAngleInRadians);
and it takes FIFTEEN SECONDS to complete that code. Checking the design afterwards shows that it has indeed successfully set the minimumValue as desired.
I can set the actual angle for the joint with code like this:
MyRevoluteJointMotion->rotationValue(AngleInRadians);
and it happens nearly instantaneously, as expected.
Now, these joints reside within Occurrences (i.e. instances) of a Component and not directly within a Component itself. Does that make a difference? Does it take a long time for it to do the setting of the min and max values when it's dealing with joints within an Occurrence?
Basically, why is it taking so long?