PDA

View Full Version : 2015 Block Attribute Layer Change



jgray
2016-11-01, 04:44 PM
Hello everyone,

Been quite awhile since I've been here, happy to be back though. Here's my conundrum.

I have a drawing that has roughly 1000 blocks in it. They all have different names as well (different pieces of equipment).
All of these blocks have the exact same 1 attribute in them:

Tag: ecode
Prompt: #CONSTANT#
Value: (different to each equip type)

Right now all of the attributes are on the exact same layer as the block itself. i would like to globally move all the block attributes to their own layer so that i can freeze them as a layer.

Yes i know i can use ATTDISP and set it to OFF but that does ALL of them. I want to only do the attributes that are contained in these equipment blocks.

I've also tried -ATTEDIT and that does work however i have to go block by block, doesn't work globally, or to a selection. Also the TAG option doesn't seem to work either.

Any thoughts, ideas, suggestions, scrips, lisps, etc would be greatly greatly appreciated.

Thanks Everyone,
John G.

Tom Beauford
2016-11-18, 08:11 PM
This routine will do it: http://forums.augi.com/showthread.php?56582-Routine-to-globally-changes-the-text-size-of-attributes&p=663648&viewfull=1#post663648

After loading the lisp enter use the SSX.lsp that comes with AutoCAD to select a block, then click and enter to remove filter options "Block name" and "Layer", then enter for a selection set of every block in the drawing. Next enter ATGL and click enter twice, then enter ecode for Attribute Tag Specification and hit [OK], then enter P for previous selection set at the select objects prompt. From the dialog box pick [Layer] and select the layer you want them to be on.