AutoCAD Civil 3D General

Posts: 12
Registered: ‎09-27-2010
Message 1 of 3 (622 Views)

edit lisp for station-elevation of 3d polylines

622 Views, 2 Replies
11-19-2012 11:34 AM

I have a lisp I found online which extracts the x,y, and z of a 3d ployline to a .csv file.  I would like to edit this lisp to extract the 3dpolyline as station-elevation in two columns of an excel file.  My ultimate goal is to extract the data for use in hec-ras.   Is anyone able to do this edit?  Can anyone recommend a lisp tutorial which may lead me down the path to ultimately edit the routine myself?  I have attached the lisp if anyone cares to take a look.  thanks.

*Expert Elite*
Posts: 2,519
Registered: ‎05-21-2008
Message 2 of 3 (618 Views)

Re: edit lisp for station-elevation of 3d polylines

11-19-2012 11:49 AM in reply to: aldawg23

You'll probably get better answers over here:

Credit where credit is due! Give kudos or accept as solution whenever you can.

*Expert Elite*
Posts: 2,456
Registered: ‎12-18-2002
Message 3 of 3 (611 Views)

Re: edit lisp for station-elevation of 3d polylines

11-19-2012 12:54 PM in reply to: aldawg23

If you're planning to learn AutoLISP only for this one routine, you might consider a workaround:


Be sure your polyline objects are 3D polylines.


Use _AeccCreatePtPlylnCtrVertAuto command to create points at the polyline vertices. The elevations will be captured from the polyline.


Go to Toolbox tab of Toolspace. Expand Reports Manager, expand Points, right click and execute Station Offset to Points. Once you have created the report, select only the data portion of the report (don't select header, etc.), right click, copy. Open Excel, paste.


Delete the columns you don't want.


This is not as automatic as a custom program would be, but it's pretty fast and easy, and you don't have to spend  hours learning AutoLISP.

Tim Corey, Owner
Delta Engineering Systems
Redding, CA
Autodesk Authorized Value-Added Reseller

You are not logged in.

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

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

Civil 3D Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for AutoCAD Civil 3D helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Civil 3D