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

Found a solution, while there might not be a command for this;

if you leave the constraint name empty it auto generates the name + occurance number :slightly_smiling_face:

Constraints.AddMate("", String_A, Orientation_A, String_B, Orientation_B)

The previous posted code still has a few flaws in it but it has gotten a bit big to post it all now

In the case some1 wants to use it, I recommend replacing the  ,10 with a number counted from the new file name

sCharacters = Item_Unique_ID & Item & " :"
		iString_Length = sCharacters.Length
If Left(oOccurrence.Definition.Document.DisplayName,iString_Length) = Item_Unique_ID & Item Then

Back to my constraining code:

Since the "Named Geometry Surfaces" is new in 2019, I'm assuming there is no way yet to automaticly look up / call / list these except for writing the exact name in a rule?

Or automaticly count the number of Surfaces on the part level and put it into a Parameter?