Creating a cut automatically

Creating a cut automatically

patriciotxk
Enthusiast Enthusiast
3,273 Views
24 Replies
Message 1 of 25

Creating a cut automatically

patriciotxk
Enthusiast
Enthusiast

Is there anyway to create a cut automatically having a drawing with elevations? I am going to upload the drawing that I have.

0 Likes
Accepted solutions (1)
3,274 Views
24 Replies
Replies (24)
Message 21 of 25

hak_vz
Advisor
Advisor

@patriciotxk 

I posting you a lisp file in attachment.

Inside Autocad load lisp code with command APPLOAD. You can even save it to your startup suite so that it is available whenever you start new drawing.  After loading you will have two functions TERRAIN and TERRAIN_SECTIONS thet you run from console.

Command TERRAIN creates terrain model in a layer named "terrain_model". To create terrain model lock all layers with entities that don't define terrain. After that create section lines and as 2d objects with zero elevation and run command TERRAIN_SECTION to create section along a line. Use some axis to transfer it to elevations net (section plan).

When finished just delete layer terrain_model.

When asked for height of base level use lowest elevation along that section line i.e. if elevations are in range 100 + then use let say 90.

 

All elements in a drawing has to be elevated to 3d.

 

Untitled.pngUntitled_2.pngUntitled3.png

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 22 of 25

patriciotxk
Enthusiast
Enthusiast

@hak_vz, I have some doubts...

 

To save the lisp in the startup suite, I have to save the lisp where? I never did this before, so I am not understanding..

Do I lock the layers before executing the command "terrain" or after I have ran the command?

Also, after I had executed the command "Terrain" the following has appeared...(check the screenshot above..)

 

best regards

0 Likes
Message 23 of 25

hak_vz
Advisor
Advisor

@patriciotxk wrote:

@hak_vz, I have some doubts...

 

To save the lisp in the startup suite, I have to save the lisp where? I never did this before, so I am not understanding.


Create some directory you want to hold your lisp. There are other methods but I showing you the simplest. When you run command APPLOAD dialog appears to select a lisp file to load. There is a button "Startup suite". It tells acad to load this file every time. If you don't want to use it simply use command Appload

 


Do I lock the layers before executing the command "terrain" or after I have ran the command?


Before you run a command so that unnecessary elements wont be placed in terrain model

 


Also, after I had executed the command "Terrain" the following has appeared...(check the screenshot above..)


It asks you to select a lower left and upper right corner of selection window. You can select whole map or just part of a map you are currently working on.

 

Also when you create a section line, direction you draw it and side you pick a line define how finale section is drawn.  After section is created just selectit with an axe an paste in predefined "net" with elevations and distances. I hope you'll get it.

 

 

 

For a test create a copy of your drawing and try to figure out how it works. Once you get it you'll see its really easy to use.

 

You can also do following. After you run command TERRAIN as I explainded copy all what is created in layer "terrain_model" to new drawing and create your sections there. In that layer you'll have all elements broken to lines. Reason for this is to speed up the proces because it is much easier to find aintersections between line objects then complex objects like polyline.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 24 of 25

patriciotxk
Enthusiast
Enthusiast

@hak_vz 

 

I think I mostly got what your have said... I already have the terrain profile, but now the lisp is asking me the following "select object to align ucs" what am I supposed to do in this situation?

 

Best regards

0 Likes
Message 25 of 25

hak_vz
Advisor
Advisor
Accepted solution

In this case select a line that define your section. Pick it from a side you want to align UCS.

a) You have terrain model created

b) You place your section lines or unlock that layer

 

Run command terrain_section for each section line. Each time UCS will align with that section line and create a cut.

Then copy cut line with known point (let say intersection with road center axis), change USC to World and paste to your predefined section diagram,

 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes