(setq ActiveDoc(vla get activedocument(vlax get acad object)))
(setq ActiveLayout(vla get ActiveLayout ActiveDoc))
(setq Configname(vla get Configname activelayout))
(setq MediaSize(vla get CanonicalMediaName activelayout))
(setq CentrePlot(vla get Centerplot activelayout))
(setq Plothidden(vla get Plothidden activelayout))
(setq PlotOrigin(vla get PlotOrigin activelayout))
(setq PaperUnits(vla get PaperUnits activelayout))
(setq PlotRotation(vla get PlotRotation activelayout))
(setq PlotType(vla get PlotType activelayout))
(if(=绘图类型4)(vla getwindowtoplot activelayout“bl”tr))
(setq PlotViewportBorders(vla get PlotViewportBorders activelayout))
(setq PlotWithLineweights(vla get PlotWithLineweights Active Layout))
(setq PlotWithPlotStyles(vla get PlotWithPlotStyles ACTIVELLAYOUT))
(setq ScaleLineWeights(vla get ScaleLineWeights activelayout))
(setq PlotViewportBorders(vla get StandardScale activelayout))
(setq StandardScale(vla get StandardScale activelayout))
(setq样式表(vla get StyleSheet activelayout))
(setq UseStandardScale(vla get UseStandardScale activelayout))