Rabindra Bhatta Posted September 22 Share Posted September 22 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? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 23 Share Posted September 23 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 1 Quote Link to comment Share on other sites More sharing options...
Rabindra Bhatta Posted September 25 Author Share Posted September 25 Thank you very much. Quote Link to comment Share on other sites More sharing options...
Tomislav Posted September 27 Share Posted September 27 Hello, this is similar to what u need so try List points relative coords from section view to CSV.lsp Quote Link to comment Share on other sites More sharing options...
BIGAL Posted September 28 Share Posted September 28 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. Quote Link to comment Share on other sites More sharing options...
Tomislav Posted September 30 Share Posted September 30 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.