Hi everyone,
I need to develop a LISP routine that allows creating a 3D polyline with a user-specified slope. The goal is for the user to select a starting point, and then the polyline should continue along the surface, following the slope until it reaches a point where the maximum slope at that point is less than the design slope.
I have to carry out feasibility studies for roads and irrigation canals, and it is tedious to do it manually.
Here is a reference of what I need to do:
Could you help me with some basic LISP code to help me study and move forward with this? My knowledge of LISP is basic, but any help would be appreciated.
You could pay for the Carlson solution, you will probably get much more as well.
It may have been like 2 years ago or more this was asked for and some comments were made.
Try googling.
Hint Dotsoft, Red Transit consultants.
I'm a mere Architect, with insufficient understanding of Civil Engineering, which may be why I'm having a hard time understanding what you're asking. For example, here:
the blue arrowhead is the start point, and the lower green path is your supposedly 20%-slope route. I drew the red paralleling it through a stretch that is essentially level, and then where my orange parallels it, the slope is suddenly and significantly steeper. So that path varies enormously in slope just within itself. What does 20% mean in that case? Can you describe in greater detail how that route was arrived at, and what's really intended?
Also, are the contours in 3D, that is, does each have its own real elevation in the Z direction, or is it a flattened 2D representation?
@libarraSCXGZ wrote:
.... if within a section the slope could vary greatly but always under 20% in this case or the percentage assigned to the routin[g]. .....
Yes, I understand what 20% represents. What I don't understand is how the routing that's labeled 20% was arrived at. The one labeled 30% looks like it would also be well under 20% in the beginning. [It's hard to say, not knowing what the contour interval is, nor the scale of the contour drawing.] So, for example, why does the 20% path not take the same route as the 30% path at least near the start where it's apparently under 20%? These are the kinds of considerations that make such a thing difficult to automate. Specific criteria on which to base calculations are necessary.
It looks to me like you need to invest in Civil3D, where you can..
a) Build an existing terrain model.
b) Define a horizontal alignment.
c) Have it create an existing profile.
d) Create a proposed profile.
e) Label all the slopes.
f) And a whole lot more.
John F. Uhden
The Red Transit consultants was a Youtube showing how you take a surface TIN of 3dfaces, the emphasis is a TIN not contours, and work out the slope across the 3dface given a grade. The Youtube clearly showed how it crossed the TIN network.
Trying to find it again. You need to wait for advertising to finish.
Found it Civil 3D App - Grade Slope Along Surface (youtube.com)
Alan,
He may not know what a TIN is... Triangulated Irregular Network, aka a Digital Terrain Model (DTM).
John F. Uhden
If want a range say 20% max and say 5% desirable would run twice so solution is in between the 2 plines and as @john.uhden has suggested draw an alignment with straights and curves.
Well then you've got the tools already and they are certainly many times better than doing things by hand.
It's beyond most of us here in the AutoLisp forum to provide you a quick decision-making solution. Autodesk no longer exposes methods and properties within C3D as they did for Land Desktop. But you could try posting your question in the C3D Customization forum.
Always remember to budget for extra work.
John F. Uhden
When you look at the youtube it shows the path across the 3dfaces, I am sure question was asked before. CIV3D has function convert surface to 3dFaces.
I am a retired Civil engineer and land surveyor. Many years ago I wrote software to use in my business to create TIN's, contour maps, plan profiles, earthwork volume calculations, and even an interface to connect a total station and draw directly into AutoCAD. This was before Civil3D or even Land Development. I have recently worked on importing LIDAR (LAS LAZ ) files and recently created a water drop (water flow across a TIN) routine. I found this discussion of creating a polyline with a given slope across the face of a TIN interesting, and was wondering if anyone had specific details on how it was done in the Carlson video?
I think you are on the correct path with the face normals. Attached is a LISP file that may help you get started. The file was sent to me by L. Minardi, a member of this forum. The code is for finding the path of a water drop on the surface of a triangular 3DFACE. Basically you select a 3DFACE, pick a point inside the 3DFACE, and the program calculates the intersect point of a water drop with one side of the the triangle. It should work with triangular 3DFACEs if they follow the right hand rule. I have no idea about the CIVIL 3d surfaces since I used my own TIN format. Hope this helps.
Watch the you tube video will see desired method need to Watch to about 3/4 way through.
Can't find what you're looking for? Ask the community or share your knowledge.