Community
This one is really giving me trouble. I've noticed that there's solutions on the forums for creating new model states in an .ipt from an assembly level. But is there a way to turn a normal part file (.ipt) into a model state and add new model states all from within the .ipt?
Thank you for your time!
Solved! Go to Solution.
Solved by yan.gauthier. Go to Solution.
Hi,
you can just add a new model state from within the part:
Sub newModelState()
Dim partDoc As PartDocument
Set partDoc = ThisApplication.ActiveEditDocument
Dim newModelState As ModelState
Set newModelState = partDoc.ComponentDefinition.ModelStates.add("newModelState")
End Sub
Can't find what you're looking for? Ask the community or share your knowledge.