CenterPlot property example
Sub CenterPlot_Example()
    
    MsgBox CenterPlotStatusToString(ThisDrawing.Layouts)
    
    ThisDrawing.Layouts("Layout1").PlotType = acDisplay
    ThisDrawing.Layouts("Layout1").CenterPlot = Not (ThisDrawing.Layouts("Layout1").CenterPlot)
    ThisDrawing.Regen acAllViewports
    
    MsgBox CenterPlotStatusToString(ThisDrawing.Layouts)
End Sub
Private Function CenterPlotStatusToString(allLayouts As AcadLayouts) As String
    Dim sBuf As String: sBuf = vbNullString
    Dim thisLayout As AcadLayout
    Dim sCenterStatus As String
    For Each thisLayout In allLayouts
        sCenterStatus = IIf(thisLayout.CenterPlot, " is ON.", " is OFF.")
        sBuf = sBuf & "The .CenterPlot status for  " & thisLayout.Name & sCenterStatus & vbCrLf
    Next
    CenterPlotStatusToString = sBuf
End Function
| ©  Bricsys NV. All rights reserved. |