10-26-2021
07:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-26-2021
07:41 AM
I have an assembly that has a duplication of the same part.
The part has only the master model state, but I want to be able to add model states to this part via ilogic.
This line creates model states at the assembly level (which I don't need).
oModelState = oDoc.ComponentDefinition.ModelStates.Add(oName) oDoc.ActiveModelState = oName
This is what I am trying to do... vaguely...
Dim oDoc As AssemblyDocument Dim oOcc As ComponentOccurrence
For Each oOcc In Occurrences
'The below line does not work, what is the correct syntax????
oOcc.ComponentDefinition.ModelStates.Add(oName)
next
Any help/advice would be great?
Solved! Go to Solution.