The Coding for the drawings is as follows, though I do tweak it for each drawing if I need to.
trigger = iTrigger0
iTrigger0 = iLogicVb.RunRule("Rule0")
'VIEW 1 - SETTINGS
ActiveSheet.View("VIEW1").Scale = (1) 'This sets the scale size
ActiveSheet.View("VIEW1").SetSpacingToCorner(0.0, 140.0, SheetCorner.BottomLeft) 'This sets the position of the view, referenced to a corner
'If (ActiveSheet.Name <> "Sheet:1") Then Return 'This checks to make sure that you are on sheet 1, if so it carries on
Dim viewL = ActiveSheet.View("VIEW1") 'This looks like it sets the value of VIEW1 to viewL
Dim view = viewL.View 'then this sets the value in viewL to that of view (please note the capitalisms)
If (view.BreakOperations.Count > 0) Then 'This checks if there is a break view already
Try
Catch
End Try
Try
view.BreakOperations(1).Delete 'if there is then this line deletes it first
Catch
End Try
End If
ActiveSheet.View("VIEW1").SetSpacingToCorner(0.0, 140.0, SheetCorner.BottomLeft) 'This sets the position of the view, referenced to a corner
modelLength = GoExcel.CellValue("D:\Training Vault\Drawings\Z Conveyor MASTER\0\Conveyor MASTER Control DATA.xlsx", "Inventor", "B18")
If (modelLength > 1194.0) Then 'This gets a value from Excel and checks it against a set value
ActiveSheet.View("VIEW1").SetSpacingToCorner(0.0, 140.0, SheetCorner.BottomLeft) 'This sets the position of the view, referenced to a corner
Dim breakWidth As Double = (modelLength - 1090.0) 'This sets the break size
Dim xMid As Double = GoExcel.CellValue("D:\Training Vault\Drawings\Z Conveyor MASTER\0\Conveyor MASTER Control DATA.xlsx", "Inventor", "F18") 'This sets the X dimension for the new break to be
Dim startPt_preSplit = ThisApplication.TransientGeometry.CreatePoint2d((xMid - breakWidth / 4) * 0.1, 0) 'This sets the start point of the break
Dim endPt_preSplit = ThisApplication.TransientGeometry.CreatePoint2d((xMid + breakWidth / 4) * 0.1, 0) 'This sets the end point of the break
view.BreakOperations.Add(BreakOrientationEnum.kHorizontalBreakOrientation, startPt_preSplit, endPt_preSplit) 'This puts in a Horizontal break
ActiveSheet.View("VIEW1").SetSpacingToCorner(0.0, 140.0, SheetCorner.BottomLeft) 'This sets the position of the view, referenced to a corner
Dim oxMid As Double = GoExcel.CellValue("D:\Training Vault\Drawings\Z Conveyor MASTER\0\Conveyor MASTER Control DATA.xlsx", "Inventor", "H18") 'This sets the X dimension for the new break to be
Dim startPt_postSplit = ThisApplication.TransientGeometry.CreatePoint2d((oxMid - breakWidth / 4) * 0.1, 0) 'This sets the start point of the break
Dim endPt_postSplit = ThisApplication.TransientGeometry.CreatePoint2d((oxMid + breakWidth / 4) * 0.1, 0) 'This sets the end point of the break
view.BreakOperations.Add(BreakOrientationEnum.kHorizontalBreakOrientation, startPt_postSplit, endPt_postSplit) 'This puts in a Horizontal break
End If
ActiveSheet.View("VIEW1").SetSpacingToCorner(0.0, 140.0, SheetCorner.BottomLeft) 'This sets the position of the view, referenced to a corner
ActiveSheet.View("VIEW1").Scale = (350 / ActiveSheet.View("VIEW1").Width) 'This sets the scale size to my 450mm I require divided by the value of View Width
ActiveSheet.View("VIEW1").SetSpacingToCorner(85, 140, SheetCorner.BottomLeft) 'This sets the position of the view, referenced to a corner
'VIEW 2 - SETTINGS
ActiveSheet.View("VIEW2").SpacingBetween("VIEW1") = 110 'This sets view2 away from the fixed view1 by 130mm
'VIEW 3 - SETTINGS
ActiveSheet.View("VIEW3").SpacingBetween("VIEW1") = 150 'This sets view2 away from the fixed view1 by 150mm
'VIEW 4 - SETTINGS
ActiveSheet.View("VIEW4").Scale = (1) 'This sets the scale size
ActiveSheet.View("VIEW4").Scale = (280 / ActiveSheet.View("VIEW4").Width) 'This sets the scale size to my 210mm I require divided by the value of View Width
ActiveSheet.View("VIEW4").SetSpacingToCorner(10, 10, SheetCorner.TopRight) 'This sets the position of the view, referenced to a corner
This coding is for the following drawing. Though I have not run it yet

K.I.S.S. (keep it simple stupid)
Life doesn't have to be complicated.
Designs don't have to be complicated.
GOD Bless you.