Message 1 of 2
iLogic: Insert component and modify Positional Representation

Not applicable
04-29-2020
06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have three components: MyAssy.iam, MySubAssy.iam & MyPart.ipt.
MySubAssy.iam contains two Positional Representations: "Master" and "Up".
I want to insert and constrain MyPart.ipt inside MySubAssy like:
Components.Add("MyComponent", "MyPart.ipt")
Constraints.AddFlush("Flush:1", "", "YZ Plane", "MyComponent", "YZ Plane", 10)
Constraints.AddFlush("Flush:2", "", "XZ Plane", "MyComponent", "XZ Plane", 20)
Constraints.AddFlush("Flush:3", "", "XY Plane", "MyComponent", "XY Plane", 30)
But in the "Up" position, I want to override "Flush:3" to 100.
MyAssy.iam also contains two positional representations: "Master" and "Open".
I want to insert MySubAssy.iam inside MyAssy.iam, and set positions as:
MyAssy.iam pos "Master": MySubAssy.iam pos is set to "Up".
MyAssy.iam pos "Open": MySubAssy.iam pos is overridden to "Master".
I have attached files that demonstrate desired outcome in Inventor 2019 format, and need code that works with 2019.
Help is greatly appreciated!