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: 

Exporting polyline nodes?

13 REPLIES 13
Reply
Message 1 of 14
scott_hicks
8144 Views, 13 Replies

Exporting polyline nodes?

Is it possible to extract the coordinates (x, y, z) of polyline nodes to
an ascii file?

Thanks,
Scott
13 REPLIES 13
Message 2 of 14
mra
Community Visitor
in reply to: scott_hicks

Here is the work arround I got:

Open the dwg file
Export the polylines to a GML file using the MAPEXPORT command
Open the GML file in EXCEL as an XML list, This might generate an error - let Excel fix it by selecting yes.
Delete the unneeded columns in Excel keeping the coordinate string for each polyline (my column is ns2:coordinates8)
Select the column and change the format to General (to get rid of the #########)
Export this as a TXT file and you can do pretty much what ever you need to with it.

I added some object data to the export that was my GIS_ID and I was set.
Message 3 of 14
Anonymous
in reply to: scott_hicks

I use a LISP routine called "ptexport" that directly exports polyline nodes
to a comma-delimited text file. The LISP routine came from
http://www.dotsoft.com; click on "Free Stuff" on their home page. The text
file contains x,y,z coordinates.

What the export does NOT provide is any point ID. The export list starts
with the first point of the polyline and proceeds to the end, so you can
number the points (e.g., on a printed list or in Excel), count them on the
polyline and label them manually.

John Cutler
Mapping/GIS Director
Ozark Regional Land Trust
jcutler@getgoin.net


wrote in message news:5382065@discussion.autodesk.com...
Here is the work arround I got:

Open the dwg file
Export the polylines to a GML file using the MAPEXPORT command
Open the GML file in EXCEL as an XML list, This might generate an error -
let Excel fix it by selecting yes.
Delete the unneeded columns in Excel keeping the coordinate string for each
polyline (my column is ns2:coordinates8)
Select the column and change the format to General (to get rid of the
#########)
Export this as a TXT file and you can do pretty much what ever you need to
with it.

I added some object data to the export that was my GIS_ID and I was set.
Message 4 of 14
jcutler
in reply to: scott_hicks

Something to be aware of when exporting polyline nodes: nodes can sometimes inadvertently get "stacked" -- that is, multiple node points with the same coordinates.

When the nodes are exported, there will be duplicate values in the text file. This will throw off hand numbering on the drawn polyline (because the "stacking" is not visible on the drawing).

Use the command line MAPCLEAN or Express tools > Modify > Delete duplicate objects to get rid of these "stacks" and then "ptexport" again. Sometimes I have to run both these cleanup routines more than once to "fully clean" a polyline. Not sure why that is.
Message 5 of 14
deanlimper
in reply to: jcutler

Unknown command "MAPEXOPRT".  Press F1 for help.

Message 6 of 14
antoniovinci
in reply to: deanlimper


deanlimper wrote:

Unknown command "MAPEXOPRT".  Press F1 for help.


 

The right command is _MAPEXPORT, sir.
Message 7 of 14
deanlimper
in reply to: antoniovinci

Ouch, sorry for that. And Thank you!



Dean Limper

073 6701837

200807949

Civil Engineering Student

University of Johannesburg
Message 8 of 14
fasette
in reply to: deanlimper

There is also a short way, you can use the list command, copy all, then paste it into a txt file and delete all the words that are not important, then saved in csv format.

 

Message 9 of 14
cad.student
in reply to: Anonymous

Dear Friends,

 

i want to extract X,Y,Z from polyline but easiest. i just select the line and used LI Command for list, it's asking 30 times to enter and even not able to find full data easily, as well as after copying from list, have to delet extra txt and have to arrange separately xyz., as you've given the lisp locaiton at : http://www.dotsoft.com/freestuff.htm i am not able to find that LISP file for xyz txt file etc.

 

please can anyone send me quickly to Abuhasan3k@gmail.com

 

Many Thanks,

Spoiler
 

 

 

Message 10 of 14

Maybe it will help: http://lee-mac.com/ptmanager.html


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help

Message 11 of 14
fasette
in reply to: cad.student

Sorry,

but I don't understand where is the problem.

Message 12 of 14

Many Thanks Dear,

 

It's very helpful and easy and with Other Options...very nice

 

Thanks once again..

Message 13 of 14
cad.student
in reply to: fasette

Problem to get the data from 3D Polylines/Points/Blocks which should be in original xyz form. how to extract data from all these types?

 

Answer is to uplaod a Lisp file and use as mentioned in website and you can play around for other options.

 

http://lee-mac.com/ptmanager.html

 

Thanks & Regards,

Student

 

 

Message 14 of 14
fasette
in reply to: cad.student

Hi,

see attached file .rar.

Save your file in dxf format.

This small saftware export all the entity in xyz coordiantes in a txt file.

Try, and let me now

 

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

Post to forums  

Autodesk Design & Make Report

”Boost