passed to SetWindowToPlot?
Set oPltConf = ThisDrawing.PlotConfigurations("DwfExport")
.PlotType = acWindow
.SetWindowToPlot dLowLt, dUprRt
.UseStandardScale = True
.StandardScale = acScaleToFit
If I do a -PLOT at the command line, the coordinates are 'shifted' from what
was passed. I've verified this by drawing a line to the points used above.
No UCSs are present...........I'm stumped. The distance between the lower
left/upper right is good.........just shifted 9000 units.
around' does work, but I would like to know the true answer to the original
Dim sPlotString As String
sPlotString = "-plot yes" & vbCr & vbCr & vbCr & vbCr & vbCr & vbCr &
vbCr & vbCr & _
Format(dLowLt(0), "0.00") & "," & Format(dLowLt(1),
"0.00") & vbCr & _
Format(dUprRt(0), "0.00") & "," & Format(dUprRt(1),
"0.00") & vbCr & _
vbCr & vbCr & vbCr & vbCr & vbCr & vbCr & _
sDwfNam & vbCr
If Dir(sDwfNam) <> "" Then sPlotString = sPlotString & "Y" & vbCr
sPlotString = sPlotString & "n" & vbCr & "y" & vbCr
While googling this problem earlier this afternoon I came across an old
(several years) post of mine about a similar issue. I've used the
SetWindowToPlot in a couple of other macros without problem since then, so
I'm wondering what I'm missing with all of this.
The year is 2008, the month is May and the cad version is AutoCAD 2008.
Guess what, I just spent five days trying to solve the same problem. So I guess Autodesk well fix this problem in the AutoCAD 3008.
Thanks for the Post Tom.
Well - in case anyone else runs across this... I found the answer here: http://forums.autodesk.com/t5/Visual-Basic-Customi
In short, SetWindowToPlot expects the values in DCS (Display Coordinate System). DCS is not always equal to WCS - so you have to translate the points from WCS to DCS. I am still a bit puzzled by the fact that 95% of the time (if not more) DCS == WCS.