Message 1 of 6
Question about adding drawing template with code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I've recently discovered that another template opens when i use this code, previously only Standard.idw was in the template folder, now i have added another one with a name (alphabetically before Standard.idw (for example NewTemplate.idw)
Dim oDrawDoc As DrawingDocument = InvApp.Documents.Add(DocumentTypeEnum.kDrawingDocumentObject, InvApp.FileManager.GetTemplateFile(DocumentTypeEnum.kDrawingDocumentObject)
Is this as designed that through API, the first drawing (alphabetically) , will be the template used by this line of code.
I know how to avoid this and define the template path string, so i don't need any code 🙂
If you think this answer fullfilled your needs, improved your knowledge or leads to a solution,
please feel free to "kudos"
please feel free to "kudos"