iPart.FindRow and iAssembly.FindRow replacement in Model States

iPart.FindRow and iAssembly.FindRow replacement in Model States

dhaworth
Explorer Explorer
218 Views
1 Reply
Message 1 of 2

iPart.FindRow and iAssembly.FindRow replacement in Model States

dhaworth
Explorer
Explorer

Is there a replacement for the iPart.FindRow and iAssembly.FindRow iLogic functionality when going from iparts/iassemblies to Model States?

0 Likes
219 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Not exactly.  It depends on the environment, and what you are trying to do.  A ComponentOccurrence type object, within an assembly, has the ActiveModelState property that is a Read/Write property, with a String type value (the name of the ModelState).  A DrawingView object in a drawing also has at least 2 places for this specification.  The ActiveModelState property, which is ReadOnly, and a method named SetActiveModelState, obviously for setting its value.  I don't know why they did it that way, but...  And there are lots more similar situations.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)