Plot Problems - same again

Plot Problems - same again

Anonymous
Not applicable
245 Views
0 Replies
Message 1 of 1

Plot Problems - same again

Anonymous
Not applicable
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.
0 Likes
246 Views
0 Replies
Replies (0)