Plot Config problems

Plot Config problems

dragnsbld
Contributor Contributor
426 Views
4 Replies
Message 1 of 5

Plot Config problems

dragnsbld
Contributor
Contributor
I have a plot config setup:
Set objPLConf = ThisDrawing.PlotConfigurations.Add("AUTOPLOT")

objPLConf.ConfigName = "\\print1\22-hp5000n"
objPLConf.CanonicalMediaName = "11X17"
objPLConf.StandardScale = acScaleToFit
objPLConf.PlotType = acExtents
objPLConf.StyleSheet = "MakeReady-2.ctb"
objPLConf.CenterPlot = True
objPLConf.PaperUnits = acInches
objPLConf.PlotHidden = False

ThisDrawing.ActiveLayout.CopyFrom objPLConf

when I run it I get the plot but the plot is not centered is there a way around this problem or is it my code?
I also tried to set the origin and I get even more funky results.
0 Likes
427 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Have you tried manually making a correctly functioning PageSetup, then checking all of the properties of it, just to compare them? "Dragnsbld" wrote in message news:[email protected]... > I have a plot config setup: > Set objPLConf = ThisDrawing.PlotConfigurations.Add("AUTOPLOT") > > objPLConf.ConfigName = "\\print1\22-hp5000n" > objPLConf.CanonicalMediaName = "11X17" > objPLConf.StandardScale = acScaleToFit > objPLConf.PlotType = acExtents > objPLConf.StyleSheet = "MakeReady-2.ctb" > objPLConf.CenterPlot = True > objPLConf.PaperUnits = acInches > objPLConf.PlotHidden = False > > ThisDrawing.ActiveLayout.CopyFrom objPLConf > > when I run it I get the plot but the plot is not centered is there a way around this problem or is it my code? > I also tried to set the origin and I get even more funky results.
0 Likes
Message 3 of 5

dragnsbld
Contributor
Contributor
Yes. I finally had to do a send command and run through the 'Detailed Plot Configuration' leaving everything the same.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Ewww. Sorry to hear that. "Dragnsbld" wrote in message news:[email protected]... > Yes. I finally had to do a send command and run through the 'Detailed Plot Configuration' leaving everything the same.
0 Likes
Message 5 of 5

Anonymous
Not applicable
You need to refresh the plot config and regen the layout if you are setting it to plot centered Wth ThisDrawing.ActveLayout .CopyFrom objPLConf .RefreshPlotConfig End With ThisDrawing.Regen acAllViewports -- Mike ___________________________ Mike Tuersley CADalyst's CAD Clinic Rand IMAGINiT Technologies ___________________________ the trick is to realize that there is no spoon...
0 Likes