Message 1 of 6
Inventor 2016 Calling Insert Sketch Symbol Crashes Everytime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having a problem with executing the command to insert sketch symbols in Inventor 2016, please note that this code is working perfectly in Inventor 2017. It seems as though the pre-selection of the sketch symbol isn't working. Normally when it's run, the preview of the sketch symbol you are inserting is shown and when you click to place it, it adds it to the sheet. With Inventor 2016, the preview is not shown, just the little cursor icon to show where you are placing the symbol, and as soon as you click to place it, Inventor crashes.
' Get sketch symbol definition reference Dim oSketchSymbolDef As SketchSymbolDefinition = ThisApplication.ActiveDocument.SketchedSymbolDefinitions.Item(1) ' Clear select set + add sketch symbol def oDoc.SelectSet.Clear() oDoc.SelectSet.Select(oSketchSymbolDef) ' Insert sketch symbol ThisApplication.CommandManager.ControlDefinitions("DrawingUserDefinedSymbolsQuickCtxCmd").Execute()
Any help is appreciated, thanks, Matt.