Our Friends: Leaflet Printing , Presented by: Talia Cad Software

Sign In

Subscribe

Subscribe to Daily Autocad.


Apr 02
Wednesday
AutoLISP, Autocad
AutoLISP Programming: Profile grids with MINSERT.

Looking at the post Inserting multiple blocks by using MINSERT Command, it reminded me of my love of the MINSERT command. I always love elegant solutions, so the idea of repeating the same block insert to create a profile / section grid appeals to me, and is quick useful.

I started by creating the block $dotpro.dwg. $dotpro.dwg is simply a 1″ x 1″ profile grid. The dots are drawn as a line with no length. (Think drawing a line with the start and end point at the same coordinates) This avoids the difficulty that happens when you use a dotted linetype for a profile grid. When the LTSCALE changes then the spacing between the dots changes as well.

Fig.1
$dotpro.dwg

I then created a lisp routine to make drawing the profile grid easier. This routine works by requesting the scale of the profile grid, the prompting the user for the lower left and upper right corners of the grid. Simply load the attached lisp routine, dotgrid.lsp Type in DOTGRID at the command prompt, and create grids like crazy!

Related Files:

Viewed 2,361 times so far... This week: 30 Today: 6 Latest: 4 July 2009, 19:36

Post Tags:

Post a Comment



All content and source © 2008 Daily Autocad | News Plus wordpress theme brought to you by Zidalgo.