Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

rotating the block but the attributes keep a rotation of

13 REPLIES 13
Reply
Message 1 of 14
nowuckingforries
1152 Views, 13 Replies

rotating the block but the attributes keep a rotation of

someone told me once that they heard of a command or add-on that gave you the ability to insert a block with an attribute inside into a drawing, rotate the block but the attribute inside the block maintained a rotation of "0" (right way up). anybody got any ideas of how to do this? it would a perfect feature for a symbols library i would like to develop for my company!
13 REPLIES 13
Message 2 of 14
Anonymous
in reply to: nowuckingforries

-attedit command to rotate the attribute AFTER you insert
the block and requires user input.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Message 3 of 14

Any chance a icon/command could be made to do all this in one go? i will always be entering the same information, the only difference will be the attribute i select.

it works a treat tho. would be very useful to click the icon, select the attribute & it rotates to zero degrees.

Cheers for you help by the way.
Message 4 of 14
Anonymous
in reply to: nowuckingforries

Lisp routines are out there to do this, but LT doesn't do lisp straight out
of the box.


wrote in message news:4965108@discussion.autodesk.com...
Any chance a icon/command could be made to do all this in one go? i will
always be entering the same information, the only difference will be the
attribute i select.

it works a treat tho. would be very useful to click the icon, select the
attribute & it rotates to zero degrees.

Cheers for you help by the way.
Message 5 of 14
Anonymous
in reply to: nowuckingforries

Hi Dean,
I too am having a simialr problem to the original poster,

I have many blocks, some with attributes.

I require these blocks to be rotated but i need the attircute to remain unmoved. ie at rotation 0 degrees.

When i use the attribute edit command, attedit, i can only edit the text but nothing to to with rotation/layer/colour or anything else.

So if I rotate the block 90 deg. the text att is rotated too, anyway that I can stop this?

I am using ACAD 2008 LT
Message 6 of 14
Anonymous
in reply to: nowuckingforries

Try this:
*^C^C-ATTEDIT Y;;;;\;A;0;;
Note the angle is relative to the current UCS, not a relative angle as in ROTATE.
If you wish, create one each for 0°, 90°, 180° and 270°.
Also, with *^C^C at the beginning, this repeats until ESC is pressed, bit it's not required.
Message 7 of 14
Anonymous
in reply to: nowuckingforries

Hey thanks for the reply i am a little confused though, exactly what do i type into acad?
Is the asterix a replacement for something?

typing in what you have said produces the following....

Y;;;;\;A;0;; Unknown command "Y;;;;\;A;0;;".
Message 8 of 14
Anonymous
in reply to: nowuckingforries

What we're running is the command from the menus:
Modify>Object>Attribute>Global
Which runs the cmd line version of ATTEDIT (the hyphen before the cmd).

My macro code again:
*^C^C-ATTEDIT Y;;;;\;A;0;;
(Omit the "*" until you get the macro debugged.)

Match this to the my cmd history and perhaps see what's derailing your macro.

I ran my macro and here's my command history {the corresponding macro code needed is in braces}:
Command: -ATTEDIT {*^C^C-ATTEDIT <-note there's a space here}
Edit attributes one at a time? [Yes/No] : Y {Y;}
Enter block name specification <*>: {;}
Enter attribute tag specification <*>: {;}
Enter attribute value specification <*>: {;}
Select Attributes: 1 found {\}
Select Attributes: {;}
1 attributes selected.
Enter an option [Value/Position/Height/Angle/Style/Layer/Color/Next] : A {A;}
Specify new rotation angle <0.00>: 0 {0;, the angle value}
Enter an option [Value/Position/Height/Angle/Style/Layer/Color/Next] : {;}

Perhaps an extra space is your macro codeor a needed one is missing. Dunno.
Message 9 of 14
Anonymous
in reply to: nowuckingforries

firstly thanks for helping me out here

im getting places.
i can now edit the attribute but it requires the command
-attedit and then selecting a lot of options, will your above macro uno the need for all these options slection and entering the tag etc

I wonder is there anyway to create a macro/button/command to do all this in one go and simple ask you for what parameter you want to edit.
Message 10 of 14
Anonymous
in reply to: nowuckingforries

All LT macros (and scripts) really do is automate the commands (and their prompts) saving you time and errors.
They don't add or alter LT commands.
They type what you would type, nothing more, except they do it with greater speed and higher reliability.

If you want to have it select a different ATTEDIT option (in this case), pause the macro with a "\" to select the option and another "\" to enter the option's value.
Also, you can have the macro end at the option prompt.
It's up to you. Code what you need.
Message 11 of 14
Anonymous
in reply to: nowuckingforries

It's possible to do what you want with Dynamic Blocks.

wrote in message news:5842905@discussion.autodesk.com...
firstly thanks for helping me out here

im getting places.
i can now edit the attribute but it requires the command
-attedit and then selecting a lot of options, will your above macro uno the
need for all these options slection and entering the tag etc

I wonder is there anyway to create a macro/button/command to do all this in
one go and simple ask you for what parameter you want to edit.
Message 12 of 14
Anonymous
in reply to: nowuckingforries

What version of LT are you using? LT2007 and higher, by redefining your
block as a Dynamic Block, let you design the block to do that all the time
without extra steps noted above.

--
Dean Saadallah
http://LTisACAD.blogspot.com
Add-on products for LT
http://www.pendean.com/lt
--
Message 13 of 14
Anonymous
in reply to: nowuckingforries

How!!! 🙂

I've been playing with the dynamic blocks and parameters but would need a little nudge in the right direction.
I want a symbol with a number beside it.
I want that number to remain at 0 degrees even when the block is rotated.

Some quick steps in how to do it?
Message 14 of 14
Anonymous
in reply to: nowuckingforries

I now have this sorted
Thanks to all who helped me out

If anyone else needs a hand with it ask, although im no expert.
i used dynamic blocks with rotation parameters and actions.
very useful tool!

thanks
Andrew

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost