- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So i made a dynamic block of a 2x2 light fixture, and it has a tag. i made a button in the toolbar for it and below is my macro:
*^C^C-layer;make;ltg;c;11;;;attreq;0;-insert;dynamic-2x2;_nea;\1;1;\0;torient;L;;0;;
This makes a layer, sets the attribute to default, inserts the block, then it uses the command TORIENT to reorient the attribute text to always be flat, so i can insert the 2x2 on angled ceilings. However, not always, but sometimes I'm getting an underflow error, and this didn't start happening until i made these blocks. When i get the underflow error, i cant use the TORIENT command anymore. I have to Save and close out of the drawing, but sometimes i cant save, because theres a random temp file that was made, so i have to delete the temp file and then i can save my drawing. when i close out and reopen, it works just fine, but i dont want that to happen.
From my best guess, the * repeats the last command that was input. For our normal blocks it would have stopped before TORIENT, so the last command was insert, so we can keep inserting more blocks, but now that its TORIENT, i think its repeating the TORIENT command, doubling up on it causing the underflow.
Does anyone know a fix to this? Is there a macro command that can restart the macro rather than just the last command? Or is there a way to have the Attribute in the block always be horizontal, regardless of the angle of the insertion point?
Also for testing purposes, might anyone know how to cause the underflow more consistently?
The snip below is the command line when i put the block in, and it does show that its calling the TORIENT twice. The blue line is just distinguishing one block insertion, below that is it repeating the macro and inserting another, to which i canceled. in total there are 2 clicks after pressing the toolbar button, 1 to place, and one to orient to the angle i desire. Also attached is the block if that's helpful.
Solved! Go to Solution.