Message 1 of 4
VBA failure Inventor 2023: AddByComponentDefinition will fails if the the ComponentDefinition object has Model States
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Who could help me,
if you want to add an occurence in an Assembly an the "newdoc.ComponentDefinition" Object has Model States the following code get an error...
activeASS.ComponentDefinition.Occurrences.AddByComponentDefinition(newdoc.ComponentDefinition, oPositionMatrix)
The code work always if the "newdoc.ComponentDefinition" has no Model States. (Inventor 2023)