LISP for drawing a polyline by entering X,Y coordinate from a baseline
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I understand the title is unclear so let me try explain what I want. My old company had a LISP that did this so I know its possible, I just don't know how to write LISP.
This routine is very useful for drawing the slope of site grading in elevation or section. Generally we'll get a civil plan that has eg. the center of the road marked with spot elevations in plan view, so to accurately produce the slope of the road in an elevation or section I need to math out the change of each spot elevation and its distance from the previous one and go on that way.
The LISP routine works as follows:
Once the plan view is oriented along the X-Axis, the user runs the LISP. The first prompt is to set a baseline elevation, eg 0,0 (either by clicking that location or typing it.) Once this is done the user simply clicks the spot elevations on the plan view along the X axis, and for every location the routine prompts for an elevation, where the user types in the elevation noted on the plan, and the LISP creates that point in the polyline based on the X-coordinate selected and the Y coordinate inputed. After all points are inputed, hit enter to end the command and place the polyline.
It's a simple concept, but hard to explain! Hopefully someone understands what I mean, and if not I'll do my best to clarify!
Thanks in advance.