Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fifteen seconds to set a jointMotion limit value via a script using the API??

0 REPLIES 0
Reply
Message 1 of 1
RogerInHawaii
152 Views, 0 Replies

Fifteen seconds to set a jointMotion limit value via a script using the API??

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?

 

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report