- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've tried to be clever all by myself, and I've currently hit a wall where I believe I know what I should do, but I hope that I am wrong, or that someone else has a better solution.
I've tried to upgrade how we work with our dynamic iLogic components, Content Center parts, and other semi-automated design documents. In this process I've crated a library folder in the Vault, and in that I have saved out sub-assemblies for telescopic slides. These have been working like a charm, and now, I'm trying to replace the telescopic rails in a dynamic model with the following piece of code.
ThisAssembly.BeginManage("TelRails")
Dim RailLeft = Components.Add("Rail, Left", "iAssemblies\XXX-" & RailLength & ".iam")
Dim RailRight = Components.Add("Rail, Right", "iAssemblies\XXX-" & RailLength & ".iam")
RailLeft.Occurrence.Flexible = True
RailRight.Occurrence.Flexible = True
ThisAssembly.EndManage("TelRails")
Previously I had all possible rails in the assembly and hid/deleted the ones that were not applicable.
Now I want to work smarter and become better at anything Inventor so I tried Constraints.AddByiMates, and that worked great.
Then, I needed to offset said Constraint, and "the game is on". If I want to add a "proper" Mate I want to use Constraints.AddMate("oOcc", "WorkFeature1", "oOcc2", "WorkFeature2"). but the SubAss that is the telescopic rail doesn't have "WorkFeature1", so instead i tried oCompArg to it's subPart "innerSlide", and the named Surface("InnerFrontFace").
This, sort of works, but I really don't want to name every surface i eventually want to put a constraint to.
Is it possible to "easily" grab a GeometryProxy from an iMate?
Or even better, have I missed a simple way to make this that is "standard" when adding constraints to "not-origin" of placed components?
Solved! Go to Solution.