Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Looks like some things in ilogic has changed from 2012 to 2018.
without steps in the coding to find the issues I am lost what might have changed.
Here is the code maybe someone already knows and can educate me.
Imports Inventor.ViewOrientationTypeEnum Imports Inventor.DrawingViewStyleEnum Dim oDrawDoc as DrawingDocument Dim oPartDoc as Document Dim oSheet As sheet Dim oTG As TransientGeometry Dim oBaseView As DrawingView Dim opath As String opath = ThisDoc.WorkspacePath() ViewScale = 1/64 'Make Drawing oPartDoc = ThisDoc.Document 'Define IDW Template File Location oDrawDoc = ThisApplication.Documents.Add(kDrawingDocumentObject, "C:\Users\engineer\Desktop\Inventor 2018 code\625 Temps", False) oSheet = oDrawDoc.Sheets.Item(1) 'Define 2d view bottom left corner points oPoint1 = ThisApplication.TransientGeometry.CreatePoint2d(0, 0) oBaseView = oSheet.DrawingViews.AddBaseView(oPartDoc,oPoint1, 1/64,kFrontViewOrientation, kHiddenLineDrawingViewStyle, "Default") oDrawDoc.SaveAs(opath & "\" & "625A1-" & Letter_Code & Mat_Code & L_1 & ".idw" , False) oDrawDoc.Close(False)
Thanks
Solved! Go to Solution.