Plot problems

Plot problems

Anonymous
Not applicable
261 Views
1 Reply
Message 1 of 2

Plot problems

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.Regen acAllViewports

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.

What could the problem be?

Any help appreciated.

David.
0 Likes
262 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
For a start, why do you use a regen after the plot-setup? And what do you do with the objPlotConfig? Do you apply that to your layout after you've set all the settings? Instead of setting it to a plotconfiguration, you can set it straight to the layout as well. If you want to create a plotconfiguration and then use it, you have to set it to the layout by use of 'Layout.CopyFrom objPlotConfig'. I've attached an example.

Regards,
Joeri Tuyn
0 Likes