- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I'm looking for help with an AutoCAD LISP routine that does the following:
- Creates a custom command (e1) for inserting a specific block (S-MIF3).
- Upon activating the command, the block immediately appears at the cursor, ready for placement, similar to AutoCAD's native INSERT command, The routine should run continuously, allowing multiple block insertions without restarting the command.
- It should calculate a height value based on the Y-coordinate of the insertion point.
- The height value should be formatted as a string (e.g., "+2.49" or "-1.50") and inserted into the block's "MIFLAS" attribute.
- No prompts for scaling or rotation - use default values (1, 1, 0).
- The routine should loop continuously until manually terminated.
- The height calculation is based on a reference Y-value of 0.
- Height formatting should always show two decimal places and a +/- sign.
Any help would be greatly appreciated!
Solved! Go to Solution.