Message 1 of 1
Plot Problems - same again
Not applicable
06-06-2002
06:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi NG;
I'm trying to create a new plotconfiguration with all the properties set
like this:
Dim dblOrigin() As Double
dblOrigin(0) = 50#: dblOrigin(1) = 0#
With objPlotConfig
.ConfigName = strPrinter
.CanonicalMediaName = strMediaName
.PlotRotation = strRot
.PlotType = acExtents
.CenterPlot = False
.PaperUnits = acMillimeters
.PlotHidden = False
.PlotViewportsFirst = True
.SetCustomScale 1#, 1#
.StyleSheet = "monochrome.ctb"
.PlotOrigin = dblOrigin
End With
Thisdrawing.ActiveLayout.CopyFrom objPlotConfig
ThisDrawing.Regen acActiveViewport
When I try to use this plot configuration from my VBA code it shows wrong
but when I use this "Page Setup Name" in the ACAD plot-dialog it works fine.
The problem is that the drawing is'nt centered as specified in the
properties.
I think i read somewhere on this NG that one had to specify the properties
in a
special order like
objPlotconfig.StandardScale = acVpCustomScale before setting
objPlotConfig.SetCustomScale 1#, 1# aso
What could the problem be?
Any help appreciated.
David.
I'm trying to create a new plotconfiguration with all the properties set
like this:
Dim dblOrigin() As Double
dblOrigin(0) = 50#: dblOrigin(1) = 0#
With objPlotConfig
.ConfigName = strPrinter
.CanonicalMediaName = strMediaName
.PlotRotation = strRot
.PlotType = acExtents
.CenterPlot = False
.PaperUnits = acMillimeters
.PlotHidden = False
.PlotViewportsFirst = True
.SetCustomScale 1#, 1#
.StyleSheet = "monochrome.ctb"
.PlotOrigin = dblOrigin
End With
Thisdrawing.ActiveLayout.CopyFrom objPlotConfig
ThisDrawing.Regen acActiveViewport
When I try to use this plot configuration from my VBA code it shows wrong
but when I use this "Page Setup Name" in the ACAD plot-dialog it works fine.
The problem is that the drawing is'nt centered as specified in the
properties.
I think i read somewhere on this NG that one had to specify the properties
in a
special order like
objPlotconfig.StandardScale = acVpCustomScale before setting
objPlotConfig.SetCustomScale 1#, 1# aso
What could the problem be?
Any help appreciated.
David.