Constraint.Add to World/Origin features

Constraint.Add to World/Origin features

llorden4
Collaborator Collaborator
699 Views
1 Reply
Message 1 of 2

Constraint.Add to World/Origin features

llorden4
Collaborator
Collaborator

I'm not finding a lot of documentation on the iLogic enhancements and am trying to create some component constraints to World UCS features but I'm not able to figure this one out.  I'm to enter an Entity name for the component, but I can't figure the entity name for World features.

 

Using the "name" for the Origin XY plane just says XY Plane, and that doesn't work.

 

Using the oDoc.DisplayName, "Origin", or iProperties.Value("Project","PartNumber") also doesn't work.

 

Best documentation I've found thus far has been here.

Anyone have a solution on this or a pointer to some better documentation?

Autodesk Inventor Certified Professional
0 Likes
Accepted solutions (1)
700 Views
1 Reply
Reply (1)
Message 2 of 2

llorden4
Collaborator
Collaborator
Accepted solution

Finally figured this one out, using a nil value allowed me to use the Origin features.

 

Example:

Constraints.AddMate("Mate1", "", "XZ Plane", "Part:1", "Z Axis", offset := 52 in, biasPoint1 := Nothing, biasPoint2 := Nothing)
Autodesk Inventor Certified Professional
0 Likes