10-07-2020
05:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-07-2020
05:41 AM
I think you need to change this line:
Dim smDef As SheetMetalComponentDefinition = ThisDoc.Document.ComponentDefinitionBecause with the new rule "ThisDoc.Document" is a drawing document. You should be accessing your "oPart" Object:
Dim smDef As SheetMetalComponentDefinition = oPart.ComponentDefinitionBut you will probably want to verify the "oPart" from the view is a sheet metal part or the above line will fail.