Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
A.Acheson
in reply to: tsp62MT3AF

This can vary, if your using models created from the same part file there is more chance the constraints stick together when you use occurrence replace. If not what you will need is to use the origin planes and axis as much as possible avoiding proxy faces etc. The reason becomes clear later when you look at the code created using Components.Constraints.add. See below example focusing on the constraint.Insert section, you don't need the addding sections as your already replacing the occurrence. You will need to supply the occurrence names of each part and any proxies edges/faces used. 

AAcheson_0-1676494361968.png

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan