Plot Offset

Plot Offset

Anonymous
Not applicable
483 Views
2 Replies
Message 1 of 3

Plot Offset

Anonymous
Not applicable
I need some sample code or hints on how this might be done. Using AutoCAD
2000 and VB6 or VBA I need to adjust the plot offset x and y values. I need
to read my plot area after a plotter and orientation has been set and adjust
plot offset to push the drawing against the top and right paper margin. I
usually plot "extents" with "fit" but would like it to recognize "window"
and "display" as well. Doing this manually I check "center", watch the x and
y values then uncheck "center" and enter double the x and y value. Clearly
the dialog is able to do the calculation and I need a similar algorithm.
What this gives me is extra margin if its available to staple the drawing
set.

thanks
Lawrence
0 Likes
484 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Look at the example for PlotOrigin in the online help -- it might be what
you need.
Also see CenterPlot property
You might be able to just duplicate the steps you do manually.

If you're having a problem with margins showing up in VB as zero when they
shouldn't be, try the following lines to get AutoCAD to recalculate the
margins.

'change your paper size here
'. . . .
' ENTER key sent again to the following page setup dialog box
' this allows the page setup changes to "take"
SendKeys "{ENTER}"
ThisDrawing.SendCommand ("pagesetup" & vbCr)
'Get your plot origin here
'. . . .

Good luck,

James
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank you James. I will give it a try.

"James Belshan" wrote in message
news:[email protected]...
> Look at the example for PlotOrigin in the online help -- it might be what
> you need.
> Also see CenterPlot property
> You might be able to just duplicate the steps you do manually.
>
> If you're having a problem with margins showing up in VB as zero when they
> shouldn't be, try the following lines to get AutoCAD to recalculate the
> margins.
>
> 'change your paper size here
> '. . . .
> ' ENTER key sent again to the following page setup dialog box
> ' this allows the page setup changes to "take"
> SendKeys "{ENTER}"
> ThisDrawing.SendCommand ("pagesetup" & vbCr)
> 'Get your plot origin here
> '. . . .
>
> Good luck,
>
> James
>
>
0 Likes