发布于:2006-05-17 10:51:17
来自:建筑设计/CAD下载及教程
[复制转发]
在实际操作中,A3的可打印大小约为407.6×283
可是我编程得到的大小却大些,约为413.8*290,这样导致有些东西没打印出来。
为什么?怎么解决?
Dim MarginLowerLeft As Variant, MarginUpperRight As Variant
Dim PaperHeight As Double, PaperWidth As Double
Dim PlotHeight As Double, PlotWidth As Double
thisdrawing.ActiveLayout.CanonicalMediaName = "A3"
thisdrawing.ActiveLayout.RefreshPlotDeviceInfo
thisdrawing.ActiveLayout.GetPaperMargins MarginLowerLeft, MarginUpperRight
thisdrawing.ActiveLayout.GetPaperSize PaperWidth, PaperHeight
PlotWidth = PaperWidth - (MarginUpperRight(0) + MarginLowerLeft(0))
PlotHeight = PaperHeight - (MarginUpperRight(1) + MarginLowerLeft(1))
全部回复(1 )
只看楼主 我来说两句 抢板凳这个是2004的bug,2006就没有了,而且只在A3上面有
回复 举报