AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Write coordinates of LINE (X,Y,Z) to Object Data

6 REPLIES 6
Reply
Message 1 of 7
rweiser
573 Views, 6 Replies

Write coordinates of LINE (X,Y,Z) to Object Data

Hello,

Has anyone familiar with writing code developed something that will dump the coordinates of selected line segments to object data? Would have to have a "from" and "to" field. Perhaps this is best done by creating topology? Any suggestions welcomed!

R Weiser
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: rweiser

I don't think a topology will help you here. 
You can do this with a little custom programming in LISP or VBA.  I am not
familiar with the MAP object model and unfortunately can't give you more
guidance than that.

 

Best of luck,

David Collins

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hello,

Has anyone familiar with writing code developed something that will dump
the coordinates of selected line segments to object data? Would have to have a
"from" and "to" field. Perhaps this is best done by creating topology? Any
suggestions welcomed!

R Weiser

Message 3 of 7
Anonymous
in reply to: rweiser

I have looked into this one a little for you. 
I have thrown together a quick VBA routine which will prompt you to select lines
and then create an object data table and populate it with the endpoints of the
lines.

 

The one hang up that I have is that the endpoints
of the line are in an array.  If I want to store them in the database, then
the easiest way is to have each X, Y, and Z coordinate in it's own
column.  This makes for a total of six columns: FromX, FromY, FromZ, ToX,
ToY, ToZ.  Is this a problem?

 

 

Regards,

David Collins


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hello,

Has anyone familiar with writing code developed something that will dump
the coordinates of selected line segments to object data? Would have to have a
"from" and "to" field. Perhaps this is best done by creating topology? Any
suggestions welcomed!

R Weiser

Message 4 of 7
Anonymous
in reply to: rweiser

And another question.... I'm assuming you are using
Map 4.5 or better?

 

David

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Hello,

Has anyone familiar with writing code developed something that will dump
the coordinates of selected line segments to object data? Would have to have a
"from" and "to" field. Perhaps this is best done by creating topology? Any
suggestions welcomed!

R Weiser

Message 5 of 7
Anonymous
in reply to: rweiser

We are writing a program called PROP2OD (Properties to Object Data) that
will take standard AutoCAD properties like color, thickness, insertion
points, layer, elevation, Z values etc and populate them into object
tables. This is going to be added to our GeoTools program (see URL below
for free eval download). I think this is what you will be needing. I
will keep you posted as this is made available.

Regards
Rakesh


rweiser wrote:

> Hello,
>
> Has anyone familiar with writing code developed something that will
> dump the coordinates of selected line segments to object data? Would
> have to have a "from" and "to" field. Perhaps this is best done by
> creating topology? Any suggestions welcomed!
>
> R Weiser

--

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @
http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter
Message 6 of 7
madhu_autodesk
in reply to: rweiser

I think it would not be helpful for creating topology by using any Programme . We have an option in AutocadMap.
Any how I have done this programme to dump coordinates of Line segments as Object data.
Message 7 of 7
Anonymous
in reply to: rweiser

This is now possible using the PROP2OD command in GeoTools. See our
web-site for more info and a FREE download of fully-functional eval
copy.

- Rakesh Rao

rweiser wrote:

> Hello,
>
> Has anyone familiar with writing code developed something that will
> dump the coordinates of selected line segments to object data? Would
> have to have a "from" and "to" field. Perhaps this is best done by
> creating topology? Any suggestions welcomed!
>
> R Weiser

--

AutoCAD customization for Engineering/Mapping/GIS
Get GeoTools @ http://www.4d-technologies.com/geotools
Build MyGeoTools @
http://www.4d-technologies.com/geotools/my_geotools.htm
FREE downloads : http://www.4d-technologies.com/techcenter

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

Post to forums  

Autodesk Design & Make Report

”Boost