Jump to content

Export cross section polyline to csv ot txt


Recommended Posts

Posted

Hi guys,

I would need a lisp for exporting to csv or txt file 2d polyline vertices from a cross section based on the picks:

1. pick the chainage

2. pick the 0.0 offset line

3. pick the reference level line

4. pick the reference level elevation text

5. pick the polyline for exporting vertices

 

The lisp would calculate offsets and elevations comparing to picked 0.0 offset line and given reference level.

 

the data exported to csv/txt file would have structure like this:

 

chainage

offset on the left;elevation

(...)

offset on the right;elevation

(...)

 

for example:

25+500

-5.0;212.22

-3.0;200.50

1.1;205.69

4.6;202.37

 

25+600

-2.0;213.22

-3.0;201.50

5.1;205.69

6.6;202.37

 

25+700

-4.0;202.22

-2.0;220.50

5.1;212.69

8.6;212.3

 

Does anybody have a code which could be used for developing such workflow?

image.png.df99407b2e0b557b24f57791ff0d9f82.png

Posted

I have limited time at moment but for any one here is code close to what is wanted. A good starting point. Happy for some one to enhance.

 

I will comment though that Civil site design a CIVIL add on will create reports of all cross sections etc in one go including XYZ of points.SurfaceRL.lsp

 

 

  • Like 1
Posted

Thank you very much.

Posted

Just a comment

 

(setq station (getreal "\nEnter station : ")) can use entsel and get text value

          base_height (getreal "\nEnter lowest height : ") can use entsel and get text value

 

Have a look at Lee-mac Parse Text which is in my surface RL.lsp.

Posted

mine is the case where u don't have an object with station and/or base height (or it is part of some block or few mt lines)so u can't select it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...