CAD Forums > CAD General

Changing blocks globeally

(1/3) > >>

42:
Evening, morning or afternoon wherever you are.

An answer that I sure that I have seen before, but I’m unable to find it. The problem I have is that I have multiple blocks (same block) giving vertical heights in a building section. i.e. 4.770, 7.542…. etc. Now through a client alteration the entire building is being raised 0.3, (all dimensions are in meters, although it wouldn’t matter if the dimensions were in inches, feet wombats or what ever). So I need to increase the values by 0.3m, the above will become 5.070 and 7.842… etc etc. Not a problem if there were only a few on one drawing, but I have 10 drawings and probably upwards of 150 blocks to change. Is there a lisp available to globally change the value (attribute) of all selected blocks? If there is I want to steal it!

daron:
If you have express tools type gatte. If you don't I have a vba file that Trev wrote for me.

42:
Blimey are you reading my keyboard, this is a chat room. This is a reply after I tried your suggestion. Forgotten about gate. This will change all of the values to the same figure, i.e. if the original values were 6.9, 7.4, 8.7, and I changed 6.9 to 7.2 for instance then all of the values would become 7.2, not 7.2, 7.7, 9.0. Perhaps the vba from Trev would help, althoughI would need help in doing something with it. Thanks.

daron:
No, Trev's won't do what you ask. He wrote it for me because I asked for a dialog box version of the same command. Sounds like what you want is to select all the blocks and increment them to the same value from where they reside. That shouldn't be too difficult. Are all the blocks of the same name and more importantly are the changing values having the same tagname? What is the tagname? Do you have any experience in programming and would you like some help writing it, or do you just need a quick fix?

42:
All of the blocks have the same name.
Two attributes, one is a text string that does not change, the other is the numeric value that does. The tag is the same
Block name level.dwg
tag LEVEL
no
Yes but would'nt even know where to start and probably  not got enough time if I,m honest before this peticular job is nhanded over.
Yes.

Again thanks.
Trev is also looking at this via Cadalog.

Navigation

[0] Message Index

[#] Next page

Go to full version