Skip to main content
2-Explorer
Mar 22, 2018 10:45 AM UTC
Question

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

1-Visitor
Nov 19, 2018 12:27 PM UTC

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?

Translate
2-Explorer
Nov 21, 2018 8:05 AM UTC

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.

Translate
1-Visitor
Nov 21, 2018 9:04 AM UTC

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.

Translate
4-Participant
Dec 22, 2021 4:34 AM UTC

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 

Translate