How do you all recreate old blocks and set them so that all the attributes are always horizontal no matter how you rotate or flip a block? I'll stick with dotsoft's free Lisp that does what AutoCAD still cannot do and abandon this failure in AutoCAD that also runs through R2009. Keep attributes horizontal in blocks?
Is there a way to change the orientation of an attribute in a number of blocks at once? I have created a light fixture, and it has an attribute in it as a label. The block is inserted and rotated (there are + / - 150 in the drawing atm) and the attribute isnt always right reading. I know i can right click and edit attributes, but i dont want to do that 150 times. I also tried selecting a few blocks, but there isnt a way to edit attributes all at once that ive found edit - text rotation would need to be 0 (zero) for all blocks. You could use BATTMAN (block attribute manager), but I don't really like to use BATTMAN for this kind of change so I wrote my own routine: This LISP routine will rotate the attributes of the objects(blocks) you select. You have three options: Absolute - sets attribute rotation to 0.
Object - sets attribute rotation equivalent to objects(blocks) rotation. Specify - sets the attribute rotation to a user specified angle.
Command: ATTROT This will only change the blocks you specifically select, it will not update every instance of the block. Though with a slight modification you could get it to do that.
If this is good enough, great, but if you need it to update every instance just let me know, I'd be happy to change it. This will only change the blocks you specifically select, it will not update every instance of the block.
Though with a slight modification you could get it to do that. If this is good enough, great, but if you need it to update every instance just let me know, I'd be happy to change it. Ty could i get one that will change all instances of a block?
And for clarification - to run this, i load it with load application in the cad manager pulldown, then type the name of it in the command line correct? (im a LISP noob) i found one way to do this in, but it requires pushing a button for every instance of the block. Its 100x better than having to edit attributes manually, but the global change would rock. I thought I cleaned out all my helper routines.
Looks like I missed DTR (degrees to radians). I have reposted the routine with DTR and RTD included. Also, I have posted a second routine to update every instance of the block you select. AttributeRotation - original routine with DTR and RTD added.Command: ATTROT AttributeRotation2 - new routine to update every instance of a block you select.Command: ATTROT2 Use which ever you prefer.
Yes, load with APPLOAD. If you want the routine to be automatically loaded with ACAD you can add it to the 'start-up' suite within the appload dialog box. (see later post for attachments) Ty. AttributeRotation2 - new routine to update every instance of a block you select.Command: ATTROT2 Use which ever you prefer.
![Autocad Rotate Attribute Lisp Definition Autocad Rotate Attribute Lisp Definition](/uploads/1/2/5/3/125369540/127160340.jpg)
Yes, load with APPLOAD. If you want the routine to be automatically loaded with ACAD you can add it to the 'start-up' suite within the appload dialog box.i have this loaded, but it doesnt seem to want to rotate attributes. I have tried all 3 options for the rotate, but the attributes stay at the angle of the block. Am i missing something with these? Edit - this doesnt work if i have a rotate action in my block does it? I just tried with a pretty basic block, and it worked fine.