Message 1 of 7
Problem with PlotToDevice

Not applicable
05-02-2002
12:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all...
I am having problems with the .PlotToDevice
method. I can't seem to change the CanonicalMediaName with any
results.
method. I can't seem to change the CanonicalMediaName with any
results.
I am writing my own Batch Plot program in VB6 for
ACAD 2000. The program lets you choose which files to plot and select the
size and printer. We have used it successfully for years with R14 and I am
converting to 2000 now. We don't use Paper Space and we are plotting with
.ctb files. I am only trying to plot the model space. We don't use
layouts either. I am opening each drawing up in a read only
mode.
ACAD 2000. The program lets you choose which files to plot and select the
size and printer. We have used it successfully for years with R14 and I am
converting to 2000 now. We don't use Paper Space and we are plotting with
.ctb files. I am only trying to plot the model space. We don't use
layouts either. I am opening each drawing up in a read only
mode.
In the program I am really not sure if I am going
about it the right way. I am using the ActiveLayout object. I then
set some properties like ConfigName, CanonicalMediaName, StyleSheet, and so
on.
about it the right way. I am using the ActiveLayout object. I then
set some properties like ConfigName, CanonicalMediaName, StyleSheet, and so
on.
In my .pc3 file, I specify the plotter (say, an HP
Laserjet 4V) and there are many different available plot sizes to choose
from. However when I specify the CanonicalMediaName in code it does not
use it, it only uses the default from the .pc3 file the last time it was
saved.
Laserjet 4V) and there are many different available plot sizes to choose
from. However when I specify the CanonicalMediaName in code it does not
use it, it only uses the default from the .pc3 file the last time it was
saved.
I tried doing a Regen to no avail.
I am pasting in the code below
(partial)...
(partial)...
size=2> Case "C"
'for a C
size drawing
With
myAcadDoc.ActiveLayout
.RefreshPlotDeviceInfo
.ConfigName =
strPC3File
.CanonicalMediaName =
strMediaName
.PaperUnits =
acInches
.PlotRotation =
ac90degrees
.PlotType =
acExtents
.StandardScale =
acScaleToFit
.PlotOrigin =
dblPlotOrigin
.PlotWithPlotStyles =
True
.StyleSheet = strPlotStyleDirectory &
strCTBFile
.PlotWithLineweights =
True
.PlotHidden =
False
.RefreshPlotDeviceInfo
End With
f
= myAcadDoc.Plot.PlotToFile(PlotFileName, strPC3File)
color=#000000> Am i correct in using the ActiveLayout object or should I
create a PlotConfiguration?
When
I don't specify the ConfigFileName in the PlotToFile method, there is no plot
created at all.
I don't specify the ConfigFileName in the PlotToFile method, there is no plot
created at all.
color=#000000>
I
know there is a lot of information here. I appreciate any help. I am
under the gun to get this working!!!
know there is a lot of information here. I appreciate any help. I am
under the gun to get this working!!!
color=#000000>
Let me know if you need any more
info...
info...
color=#000000>
color=#000000>Thanks
Jim
Shipley
Shipley