Wednesday
AutoLISP, AutocadAutoLISP 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.

$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:
- [dotgrid.lsp] and [$dotpro.dwg] are zipped in dotgrid.zip
Post Tags:
Related Posts
Popular
- Hip tip: Increasing view resolution with VIEWRES system variable
07/03/2009 04:39 am
7 Comments - Sirince – IZMIR
07/02/2009 11:02 am
1 Comment - Visual LISP: Programming user interfaces with OpenDCL
07/01/2009 10:15 pm
10 Comments - 3D Modeling 7: EXTRUDE
06/30/2009 02:14 pm
10 Comments - Ask DailyAutoCAD: Which Notebook to Buy?
06/30/2009 12:17 pm
1 Comment
Featured Articles
- AutoCAD 2009 Update 3 Released
- Speed Up As AutoCAD 2009 Ribbon Menu Helps You!
- MEP Analysis Extension for AutoCAD MEP extended to March 31, 2009
- Recap of AutoCAD-related technologies on Autodesk Labs
- Technology Preview of MEP Analysis Extension extended to 12/31/08
- Autodesk Labs: Forward and Backward utility for AutoCAD
|
