setting drawing sheet properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am trying to configure the change in the size of the drawing sheets through a form, but the property where the size (A4, A3, A2. etc) of the sheet is entered is not reflected in the label.
How can I incorporate it into the code so that it changes with each new sheet, generally on all sheets of the drawing. thanks This is the code I'm using for the configuration
InventorVb.DocumentUpdate(True)
iLogicForm.Show("FORMATO_DE_HOJA")
'FORMATOS
'[
If FORMATO_HOJA = "FORMATO_A4" Then
ThisApplication.ActiveDocument.ActiveSheet.Orientation = kPortraitPageOrientation
ActiveSheet.ChangeSize("307", "225" , moveBorderItems := True)
ActiveSheet.TitleBlock = "FORMATO UTILLAJE"
ActiveSheet.Border = "FORMATO A4"
End If
If FORMATO_HOJA = "FORMATO_A4" Then
ActiveSheet.ChangeSize("307", "225" , moveBorderItems := True)
End If
'] FORMATO_A4
'[
If FORMATO_HOJA = "FORMATO_A3" Then
ThisApplication.ActiveDocument.ActiveSheet.Orientation = kLandscapePageOrientation
ActiveSheet.ChangeSize("307", "430", moveBorderItems := True)
ActiveSheet.TitleBlock = "FORMATO UTILLAJE"
ActiveSheet.Border = "FORMATO A3"
End If
If FORMATO_HOJA = "FORMATO_A3" Then
ActiveSheet.ChangeSize("307", "430", moveBorderItems := True)
End If
'] FORMATO_A3
'[
If FORMATO_HOJA = "FORMATO_A2" Then
ThisApplication.ActiveDocument.ActiveSheet.Orientation = kLandscapePageOrientation
ActiveSheet.ChangeSize("430,5", "604", moveBorderItems := True)
ActiveSheet.TitleBlock = "FORMATO UTILLAJE"
ActiveSheet.Border = "FORMATO A2"
End If
If FORMATO_HOJA = "FORMATO_A2" Then
ActiveSheet.ChangeSize("430,5", "604", moveBorderItems := True)
End If
'] FORMATO_A2
'[
If FORMATO_HOJA = "FORMATO_A1" Then
ThisApplication.ActiveDocument.ActiveSheet.Orientation = kLandscapePageOrientation
ActiveSheet.ChangeSize("605", "851", moveBorderItems := True)
ActiveSheet.TitleBlock = "FORMATO UTILLAJE"
ActiveSheet.Border = "FORMATO A1"
End If
If FORMATO_HOJA = "FORMATO_A1" Then
ActiveSheet.ChangeSize("605", "851", moveBorderItems := True)
End If
'] FOTMATO_A1
'[
If FORMATO_HOJA = "FORMATO_A0" Then
ThisApplication.ActiveDocument.ActiveSheet.Orientation = kLandscapePageOrientation
ActiveSheet.ChangeSize("851", "1199", moveBorderItems := True)
ActiveSheet.TitleBlock = "FORMATO UTILLAJE"
ActiveSheet.Border = "FORMATO A0"
End If
If FORMATO_HOJA = "FORMATO_A0" Then
ActiveSheet.ChangeSize("851", "1199", moveBorderItems := True)
End If
']FOTMATO_A0