Message 1 of 11
What's the trick to plotting Window?

Not applicable
03-03-2003
05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've tried all sorts of variations in settings and can't get anything to
plot when specifying a window.
Sub dummyplot()
Dim all(1) As Double, aur(1) As Double, vLay(0) As String
ThisDrawing.Regen acAllViewports
all(0) = 1227277.3545: all(1) = 502975.9081
aur(0) = 1234688.0587: aur(1) = 518242.9138
With ThisDrawing.ActiveLayout
.RefreshPlotDeviceInfo
.PlotType = acWindow
.SetWindowToPlot all, aur
.SetCustomScale 1, 15
End With
ThisDrawing.Plot.DisplayPlotPreview acFullPreview
End Sub
If I do this 'manually', via the plot dialog, it works as expected.
Using this piece of code, I get a blank page.
Any thoughts?
(I searched back through google, but didn't find anything that helped.)
plot when specifying a window.
Sub dummyplot()
Dim all(1) As Double, aur(1) As Double, vLay(0) As String
ThisDrawing.Regen acAllViewports
all(0) = 1227277.3545: all(1) = 502975.9081
aur(0) = 1234688.0587: aur(1) = 518242.9138
With ThisDrawing.ActiveLayout
.RefreshPlotDeviceInfo
.PlotType = acWindow
.SetWindowToPlot all, aur
.SetCustomScale 1, 15
End With
ThisDrawing.Plot.DisplayPlotPreview acFullPreview
End Sub
If I do this 'manually', via the plot dialog, it works as expected.
Using this piece of code, I get a blank page.
Any thoughts?
(I searched back through google, but didn't find anything that helped.)