Autocad Contour Lisp
Contour Elevations at Intervals with Labels elevates contour polylines and/or labels. AutoCAD Wiki AutoLISP code header.;;;;;; Copy this code to a file on your. On load (haws-cel:get-default-settings); «Visual LISP© Format Options» (72 2.
ConTour Lisp Notes USE AT YOUR OWN RISK! CTL Notes This routine creates 3D contour lines from 3D points. It was written for Autocad 2000, so there's no guarantee it will work for your version. Supports any version. Download a free trial here. See Lisp Notes below ------------------------------------- Unzip files to /support directory or any directory in program search path. Type (load'ctl_c1') at the command prompt to load routine.
Type 'CTL' at the command prompt for option list. Command: CTL 1. Read/Write CSV Point File. Draw Triangulated Surface. Draw Contour Lines.
Color Contours/Objects. Annotate Contours. Cross Sections from Contours. Area Calculations. Swap Triangle Pairs. Option 1 imports any xyz comma separated point file onto layer 'CTL_PNT' or writes any selected points on layer 'CTL_PNT' or 'CTL_PTMP' to a comma separated point file and deletes all selected points from the drawing.
If you read a file, it will erase any existing points on layer 'CTL_PTMP' and change any existing points on layer 'CTL_PNT' to layer 'CTL_PTMP. The point files can have white spaces, but no tab characters or blank lines. Option 2 creates a triangulated surface from all points found on layer 'CTL_PNT'. It will prompt you to check for duplicate points. It can take a while to check if you have thousands of points, but the program will hang if you don't delete them first.
Option 2 calculates all triangle points and takes an average of all long side horizontal lengths. You can ignore this value and create all triangles, or enter a factor to delete any triangle with sides longer than the average times a factor from 1.5 to 5.0. You can either ignore this option or use it to delete most of the extraneous triangle faces that shouldn't be there. It always deletes any previous triangles, so can keep trying different factors to get the surface the the way you want.
If you need to change a space separated point file to a comma separated file, try one of these command line programs. 32 bit version (142,848 bytes) or 16 bit version (18,600 bytes) (8 char file names only.) Option 3 creates contours by drawing plines thru each triangle surface on temporary layers. It selects all lines on each elevation, joins them and asks if you want to create spline fit curves. Spline curves take up a huge amount of drawing space and lose accuracy on sharp corners if enough points are not supplied. If successfully joined/splined, it changes each contour to layer CTL_CONT and deletes all temporary layers.
Option 4 switches to a front view, uses the latest contour spacing with the left and right limits to select and color contours. It uses a crossing window to select the contours, so make sure your drawing limits don't exceed the limits of the objects by some huge distance. If you open a drawing and run this routine before you create any contours, it will check if there's any surface on layer CTL_TIN to find hi and low points. If not, it will ask you to supply both numbers in integer values. Anything above and below what you're coloring will work.
It then asks you to pick an entity on the layer you want to color and the vertical spacing you want to use. Option 5 annotates by picking a point on any contour line. It will prompt to either break the contour line or place the text above the line.
Drag the cursor to the right to align the text. It will prompt you for a text size so you should check for clearance between contours. It reads the elevation from the pick point so you don't have to type anything. The text is written at that elevation on layer 'CTL_CTXT'.
If you colored the contours with the Major/Minor option, the major lines should already be on even elevations. 50 unit contours spaced at 5 show up above. A 20 unit contour spaced at 5 will be even 100 units or 40 units spaced at 5 will be 200 unit elevations. Option 6 creates cross sections from contours on layer CTL_CONT. Cara buku dari google book tanpa software developer. You need to draw a 'LINE' over the contours to section.
It searches along the section 'LINE' with a crossing fence and will prompt you for a fence distance. If the fence is larger than the smallest contour spacing, you could miss some contour points. It will prompt for a starting station if your sections are equally spaced and you want to add stations to your profiles.
It only takes integer values. You can always overwrite the default station number and reset the forward spacings. The profiles are drawn left to right from the direction the section line was drawn. If you get it backwards, you can either rotate the section line 180 degrees or just mirror the profile since it's center based. Option 7 calculates areas by using the boundary command.