Message 1 of 5
Programatically selecting plotconfiguration
Not applicable
04-06-2003
11:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Have the following:
Dim ObjPlotConfigs As AcadPlotConfigurations
Dim ObjPlotConfig As AcadPlotConfiguration
Set ObjPlotConfigs = ThisDrawing.PlotConfigurations
Set ObjPlotConfig = ObjPlotConfigs.Add("AutoDWF")
I then have later:
With ObjPlotConfig
.CanonicalMediaName = "ISO_A1_(841.00_x_594.00_MM)"
.RefreshPlotDeviceInfo
.ConfigName = "autodwf.pc3"
.StandardScale = acScaleToFit
.PlotType = acExtents
.PlotRotation = ac0degrees
End With
And finally:
blnret = objplot.PlotToFile(FullFName)
Is there a method to set the above plotconfiguration as current prior to using the PlotToFile method? I can't seem to figure out how ACAD knows which is the current plot Configuration. If the above is run and the drawing for example contains a plot configuration that is not supported on the local machine i.e. no printer installed and 'none' device substitutes then the procedure fails.
Its drving me mad 🙂
Simon
Have the following:
Dim ObjPlotConfigs As AcadPlotConfigurations
Dim ObjPlotConfig As AcadPlotConfiguration
Set ObjPlotConfigs = ThisDrawing.PlotConfigurations
Set ObjPlotConfig = ObjPlotConfigs.Add("AutoDWF")
I then have later:
With ObjPlotConfig
.CanonicalMediaName = "ISO_A1_(841.00_x_594.00_MM)"
.RefreshPlotDeviceInfo
.ConfigName = "autodwf.pc3"
.StandardScale = acScaleToFit
.PlotType = acExtents
.PlotRotation = ac0degrees
End With
And finally:
blnret = objplot.PlotToFile(FullFName)
Is there a method to set the above plotconfiguration as current prior to using the PlotToFile method? I can't seem to figure out how ACAD knows which is the current plot Configuration. If the above is run and the drawing for example contains a plot configuration that is not supported on the local machine i.e. no printer installed and 'none' device substitutes then the procedure fails.
Its drving me mad 🙂
Simon