cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Constraining of component using Toolkit

Ketan_Lalcheta
19-Tanzanite

Constraining of component using Toolkit

Hello

 

We are using API ProAsmcompConstraintsSet() to constraint assembly component. There is two constraint to be set. One is Axis to Axis and other one is surface to surface. ProAsmcompConstraintsSet() is working fine if we ask end user to select four references but it fails and gives general error if selection objects are found through different API rather than asking user to select. Any idea of this failure will help us to proceed further.

 

One more information : Selection objects found by API are same as what user is selecting. This has been varified using ProselectionHighlight() API. This observation is blocking our path as we are not getting how to proceed. Selection to be done by user and selection object manipulated by different API (to constraint component) are same.

 

Thanks in advance.

 

Regards

Ketan

4 REPLIES 4

Hello. 

You solved this problem?

Can you help me to make axis to axis constraint? 

I make the constraint but i have problems when i try to flip the direction of constraint.

Can you help me?

Yes. I am able to constraint properly now.

 

Check for flip whether it is allowed manually or not. I doubt flip is allowed for axis constraint.

Thanks!!

It's not possible. I solve my problem using the angle offset constraint. if i want to flip, i give the angle of 180 degrees between the two axis.

 

Best regards.

Hey Ketan,

Is it possible to constraint components using c++ toolkit? if so could you please share an example of the working code?

Thanks,

Jay 

Top Tags