Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I hope someone can help me with this.
I'm trying to query through code how many Sketched Symbols are present in the Symbol Library folder (MySymbolLib.idw). This works and I get this info in the message box. But as soon as the messagebox is shown, a document (probably MySymbolLib.idw) opens invisible and I can't close it anymore.
How can I do this by code?
If I place 1 or more Sketched Symbols then this invisible document is closed correct.
The problem is only there if I quit without placing.
Dim oDrawDoc As DrawingDocument = _invApp.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, , False)
Dim oSymbolLibs As SketchedSymbolDefinitionLibraries = oDrawDoc.SketchedSymbolDefinitions.SketchedSymbolDefinitionLibraries
Dim oSymbolLib As SketchedSymbolDefinitionLibrary = oSymbolLibs.Item("MySymbolLib")
MsgBox(oSymbolLib.SketchedSymbolDefinitions.Count)
oDrawDoc.ReleaseReference()
oDrawDoc.Close(True)
Get control of your sheet metal files.
Download the app from matprop.com
Download the app from matprop.com
Solved! Go to Solution.