Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
When i try to create a drawing with iLogic, Inventor keeps throwing errors.
I'm kinda tired so might be missing something obvious, but i don't understand what's wrong with the code
Sub Main()
Dim oInvApp As Inventor.Application = ThisApplication
Dim oDoc As Inventor.Document = ThisDoc.Document
Dim oDocDir As String = ThisDoc.Path & "\"
Dim oDocName As String = ThisDoc.FileName
Dim oTemplate As String = "X:\CAD 3D\Testmap\Template\Template sales tekening.idw"
Dim oDrawingDoc As DrawingDocument = oInvApp.Documents.Add(kDrawingDocumentObject, oTemplate, True)
oDrawingDoc.SaveAs(oDocDir & oDocName & ".idw" ,True)
oDrawingDoc.Close
End Sub
Solved! Go to Solution.