- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Can someone please tell me what the error is in the following iLogic rule?
Sub Main()
Dim oActiveDoc As Document
oActiveDoc = ThisApplication.ActiveDocument
Dim oDrgDoc As DrawingDocument = ThisApplication.Documents.Add(kDrawingDocumentObject)
Dim oSheet As Sheet
oSheet = oDrgDoc.Sheets.Item(1)
oSheet.Name = oActiveDoc.DisplayName
Dim oPoint1 As Point2d
oPoint1 = ThisApplication.TransientGeometry.CreatePoint2d((oSheet.Width / 1.5)+5, oSheet.Height/2)
Dim oView1 As DrawingView
oView1 = oSheet.DrawingViews.AddBaseView(oActiveDoc, oPoint1, 1/5, kCurrentViewOrientation, kShadedDrawingViewStyle, "", "", "BRACING DETAIL")
End Sub
I am getting these errors:
Thank you.
Solved! Go to Solution.