Automating the AutoCAD Mechanical Autodim command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I use the Multiple dimensions command in AutoCAD mechanical all the time. The unfortunate part is that it pops a dialog box everytime you run it, which can be annoying if you aren't changing any settings. So, I thought, hey, perfector lisp.
I start by turning off the dialog box (CMDDIA = 0)
Here are the command line choices:
_AMAUTODIM, "O", "O", "N", "N"
[Parallel, Ordinate, Shaft of Symmetric] - I choose O for Ordinate
[Ordinate, Equal Leader Length, Center cross on edge] - again, I want Ordinate
[Yes No] - I want No
[Yes, No] - again, I want No
Here's where I get into trouble
the next prompt is to select objects. It's either B for block, or the default is to select the object. I don't know how to do that in lsp. I thought it would just be a pause, but that didn't seem to work.
In AutoCAD, I would select my object and then hit enter
Then, the next prompt is to select the origin of the first dimensions. Again, I think a pause will work here, but I can't get that far.
After I select the origin point, I'll have to have the user enter either H or V (for horizontal or vertical), and then select a point to place the dimensions.
Any thoughts on how to finish this up? Is it even possible?
Thanks!