naming attributes

naming attributes

jens.cambierXJHLT
Contributor Contributor
845 Views
7 Replies
Message 1 of 8

naming attributes

jens.cambierXJHLT
Contributor
Contributor

Hello,

 

I was wondering if there is a function in Autocad LT that take cares of automatic numbering of attributes from blocks.

For example, i need to number 300 lamps (F1,F2,F3...).

So i need someting that can name them sequently without individually change the attributes block by block.

I know you can give your blocks the same attribute name using properties but can i do the same but sequently ?

 

thanks

0 Likes
Accepted solutions (2)
846 Views
7 Replies
Replies (7)
Message 2 of 8

steven-g
Mentor
Mentor

Are these existing blocks? What is the logic for numbering them or do you pick them in the correct order

0 Likes
Message 3 of 8

jens.cambierXJHLT
Contributor
Contributor

It's mostly for as-builts, so existing blocks.

every block has his attribute (FE: loop number).

most of the time i select them in order and sometimes with select similar.

0 Likes
Message 4 of 8

jens.cambierXJHLT
Contributor
Contributor

It's mostly for as-builts, so existing blocks.

every block has his attribute (FE: loop number).

the logic is that every block starts with F and then sequently goes up in numbers.(see jpeg)

i changed every data block seperate, i need something much faster.

BLOCKS.jpg

0 Likes
Message 5 of 8

steven-g
Mentor
Mentor
Accepted solution

There is a command "-attedit" that will allow you to change attribute values, but only if you know what the current value is, so bearing that in mind if you first select all the blocks (using selectsimilar) and then change the attribute value in all the blocks to "F1" then enter the command "setenv" followed by "count" at the first prompt and then "1" at the second prompt, this puts the starting number into a variable.

And then run this macro

*^C^C^C-attedit;;;;;\;value;change;F1;F$M=$(getenv,count);;setenv;count;$(+,$(getenv,count),1);

You should pick the first block (which won't change value) and then pick the next blocks one at a time in the order you want and they will be incremented, if you make a mistake just change everything back to "F1" and start again (the value "F1" is hard coded into the macro and Autocad will only work on attributes with this value).

 

You have to pick the actual attribute tekst and not the block or this doesn't work.

Message 6 of 8

jens.cambierXJHLT
Contributor
Contributor

thanks for the effort but making macros is out of my league,
I'm losing more time making them then naming my blocks one by one.

0 Likes
Message 7 of 8

Emmsleys
Alumni
Alumni

I know you didn't get the answer you were looking for but if any post helped with this issue and time permits please mark accept as solution. 

 

 



Sarah Emmsley
Technical Support Specialist

0 Likes
Message 8 of 8

Emmsleys
Alumni
Alumni
Accepted solution

To add I would suggest you leaving your feedback on the product here: 

http://www.autodesk.com/company/contact-us/product-feedback 



Sarah Emmsley
Technical Support Specialist

0 Likes