James Belshan
Guest
|
Posted:
Tue Mar 22, 2005 4:53 am Post subject:
Re: Get Real World Coordinates of Layout |
|
|
I think what you need are the WCS coordinates of the viewports on the
layouts. Here's a start for you, hopefully...
http://groups-beta.google.com/group/autodesk.autocad.customization.vba/search?q=wcs+viewport+coordinates
HTH,
James
"wgrc" <nospam@address.withheld> wrote in message
news:28242224.1110912456829.JavaMail.jive@jiveforum1.autodesk.com...
| Quote: | I have a question about Layouts. I am a novice at AutoCAD, having more
experience with ArcGIS. But I think this should be possible?:
I have a DWG with mutliple layouts for printing sub-regions of a community
(the DWG covers the entire community). I want to use VBA to retrieve the |
REAL world model space coordinates that each Layout depicts, not the paper
space units. Is this possible? All the experimenting so far has only
yielded paper space coordinates.
| Quote: |
Thanks in advance!
Greg Coniglio
Public Sub MyTest()
Dim dwg As AutoCAD.AcadDocument
Set dwg = ThisDrawing
Dim lyt As AcadLayout
Dim blk As AcadBlock
Dim vpt As AcadViewport
For L = 0 To dwg.Layouts.Count - 1
Set lyt = dwg.Layouts(L)
Set blk = lyt.Block
'MsgBox dwg.Viewports(L).Name
'Set vpt = dwg.Viewports(L)
MsgBox lyt.PlotOrigin(0)
Next L
End Sub |
|
|