Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Contributor
flopo
Posts: 50
Registered: ‎09-02-2009
Message 1 of 3 (1,600 Views)

3d polyline from excel, csv or txt

1600 Views, 2 Replies
12-06-2009 11:51 PM
Hello,
Does anybody has a lisp for drawing a 3dpolyline from a txt, excel or csv file with points coordinates? Thanks!
Distinguished Contributor
rogerio_brazil
Posts: 927
Registered: ‎08-20-2004
Message 2 of 3 (1,600 Views)

Re: 3d polyline from excel, csv or txt

12-08-2009 05:37 AM in reply to: flopo
Try here:

http://discussion.autodesk.com/forums/search.jspa?threadID=&q=3d+pline+from+csv&objID=f130&dateRange=all&numResults=30&rankBy=10001
Valued Contributor
anim8er_gie
Posts: 95
Registered: ‎10-01-2008
Message 3 of 3 (1,600 Views)

Re: 3d polyline from excel, csv or txt

12-08-2009 10:11 AM in reply to: flopo
Just open the .CSV in a text editor and add the first line "3DPOLY". It will look like this:

3DPOLY
1023893.32,4909903.32,100.3
1023442.45,4909705.12,101.2
1023544.56,4909808.43,99.89

The format should be: x,y,z.....

Save it with the extension of .SCR. Now you have a script to draw the 3Dpolyline. Whatever your current layer, color, linetype settings are when you run it will determine those. No special LISP program necessary.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.