Message 1 of 15
Place drawing view using iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok so I've been trying to take the info from this post and to modify it to suit my purposes. Being that I only want one drawing view. But I'm getting an error on the last line and I'm not sure what I'm going wrong.. Also, not sheet metal, not sure what that changes...
Imports Inventor.ViewOrientationTypeEnum Imports Inventor.DrawingViewStyleEnum Dim oPartDoc As Document Dim oSheet As sheet Dim oDoc1 As String = ThisDoc.FileName(False) SpiderID = Right(oDoc1,(Len(oDoc1)-1)) ' Templates are named differently for different parts. In this case value is "1" ViewScale = 1 oSheet = ThisDoc.Document.Sheets.Item(1) Dim oBaseViewOptions As NameValueMap oBaseViewOptions = ThisApplication.TransientObjects.CreateNameValueMap oBaseViewOptions.Add("SPIDER" & SpiderID & ".ipt", False) oPoint1 = ThisApplication.TransientGeometry.CreatePoint2d(3, 10) ' front view oSheet.DrawingViews.AddBaseView(oPartDoc, oPoint1, ViewScale, kFrontViewOrientation, kHiddenLineDrawingViewStyle, "View1")