VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extract x,y,z-coordinate from all objects?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
200 Views, 2 Replies

Extract x,y,z-coordinate from all objects?

Hallo,
how can I extract the x,y,z-coordinate from all objects in the drawing?
Must I select the objects (all lines, all polylines, ...) and can I then
extract
the coordinate?

Thanks
Hartmut Callies
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

That would be a little tricky due to the various property names associated
with entity coordinates (StartPoint, EndPoint, Coordinates, etc.). In VBA,
you'd have a rather large Select Case structure.

One possibility would be to use VLAX to retrieve all the group code 10s and
11s present in an object entity definition data.

--
http://www.acadx.com
"That's no ordinary rabbit."


"Hartmut Callies" wrote in message
news:5D6655C44C81791E479A484AF3998876@in.WebX.maYIadrTaRb...
> Hallo,
> how can I extract the x,y,z-coordinate from all objects in the drawing?
> Must I select the objects (all lines, all polylines, ...) and can I then
> extract
> the coordinate?
>
> Thanks
> Hartmut Callies
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Hallo,
thanks for your answer.
But what is VLAX? Is it a vba-command (no) or a method?
Have you a little sample for me, so I can see the function.
Thanks for your help.

Hartmut Callies
callies@web.de
__________________________________________________________________

"Frank Oquendo" schrieb im Newsbeitrag
news:086C0E816355DAC204F64FBA7D39DCCC@in.WebX.maYIadrTaRb...
> That would be a little tricky due to the various property names associated
> with entity coordinates (StartPoint, EndPoint, Coordinates, etc.). In VBA,
> you'd have a rather large Select Case structure.
>
> One possibility would be to use VLAX to retrieve all the group code 10s
and
> 11s present in an object entity definition data.
>
> --
> http://www.acadx.com
> "That's no ordinary rabbit."
>
>
> "Hartmut Callies" wrote in message
> news:5D6655C44C81791E479A484AF3998876@in.WebX.maYIadrTaRb...
> > Hallo,
> > how can I extract the x,y,z-coordinate from all objects in the drawing?
> > Must I select the objects (all lines, all polylines, ...) and can I then
> > extract
> > the coordinate?
> >
> > Thanks
> > Hartmut Callies
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report