Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
DeptaM
in reply to: kresh.bell

I use this rule and have it set to open when the drawing template is opened.

Dim drawingDoc as DrawingDocument = ThisDoc.Document

'A1 size
If Sheet_Size = "A1" Then
	ThisApplication.ActiveDocument.ActiveSheet.Orientation  = kLandscapePageOrientation
ActiveSheet.ChangeSize("A1", moveBorderItems := True)

'A2 size
ElseIf Sheet_Size = "A2" Then
	ThisApplication.ActiveDocument.ActiveSheet.Orientation  = kLandscapePageOrientation
ActiveSheet.ChangeSize("A2", moveBorderItems := True)

'A3 size
ElseIf Sheet_Size = "A3" Then
	ThisApplication.ActiveDocument.ActiveSheet.Orientation  = kLandscapePageOrientation
ActiveSheet.ChangeSize("A3", moveBorderItems := True)

'A4 size
ElseIf Sheet_Size = "A4" Then
	ThisApplication.ActiveDocument.ActiveSheet.Orientation  = kPortraitPageOrientation
ActiveSheet.ChangeSize("A4", moveBorderItems := True)



End If
'update all 
InventorVb.DocumentUpdate()
'zoom all
ThisApplication.ActiveView.Fit