AutoCAD Map 3D General Discussion

Reply
Active Member
rweiser
Posts: 7
Registered: ‎07-07-2003
Message 1 of 7 (272 Views)

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

272 Views, 6 Replies
03-31-2002 11:10 PM
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
*Collins, David
Message 2 of 7 (272 Views)

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

04-01-2002 01:19 AM 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

*Collins, David
Message 3 of 7 (272 Views)

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

04-01-2002 09:24 AM 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

*Collins, David
Message 4 of 7 (272 Views)

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

04-01-2002 09:25 AM 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

*Rao, Rakesh
Message 5 of 7 (272 Views)

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

04-02-2002 01:15 AM 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
Active Member
madhu_autodesk
Posts: 9
Registered: ‎09-16-2002
Message 6 of 7 (272 Views)

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

04-03-2002 11:51 AM 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.
*Rao, Rakesh
Message 7 of 7 (272 Views)

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

04-07-2002 10:41 PM 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community