Autodelete text when exploding block

Autodelete text when exploding block

pallen9JA6T
Enthusiast Enthusiast
890 Views
5 Replies
Message 1 of 6

Autodelete text when exploding block

pallen9JA6T
Enthusiast
Enthusiast

I use many blocks in my drawings and I'm looking for a way automatically delete some text when the block is exploded. To describe, I put labels on my block so that I can quickly see what the block name is (I know I can look at properties, but don't want to use that method). If someone gets in my drawing and explodes a block, I want the text label to automatically go away. Is there a way to do this? See attachment for example.

0 Likes
891 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant

A routine could easily be written that would find all Text objects from the results of Exploding a Block, and get rid of them, but your "someone" would need to have, and use, that routine to Explode it, to get the result you want.  I don't think a Block can be constructed to work that way under ordinary Exploding.  But you could get pretty close:  Don't use Text, but use an Attribute Definition whose Tag is just a period  .   Then you can give your identifier as the Attribute value, and if the Block is Exploded, that will revert to being an Attribute Definition, and revert to its Tag string, i.e. only the period.  [I tried using a Tag of just a space, but that's not allowed.]

Kent Cooper, AIA
0 Likes
Message 3 of 6

ronjonp
Mentor
Mentor

Why are other people exploding your blocks ( you can make them un-explodable )? A simple answer is to define that text/attribute on a layer that can be isolated. Attached is a simple example.

0 Likes
Message 4 of 6

scot-65
Advisor
Advisor
Perhaps place that piece of text on layer DEFPOINTS?
The text, being on that layer, will not plot...

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 5 of 6

Kent1Cooper
Consultant
Consultant

@Kent1Cooper wrote:

....  Don't use Text, but use an Attribute Definition whose Tag is just a period  .   ....


 

And by the way, if you define that as a Constant-value  Attribute with the Block name, you won't need to answer the Attribute prompt every time you Insert one, but it will still revert to just the period when the Block is Exploded.

Kent Cooper, AIA
0 Likes
Message 6 of 6

Kent1Cooper
Consultant
Consultant

@scot-65 wrote:
Perhaps place that piece of text on layer DEFPOINTS?
The text, being on that layer, will not plot...

 

... but neither will it go away [or anything close to that] when the Block is Exploded.  HOWEVER, if you choose to use such an approach, don't use DEFPOINTS.  That Layer exists for a specific purpose, and this isn't it!  A lot of people got used to putting things they didn't want to Plot on it, way back in the dark ages when it was the only  Layer that didn't Plot.  But for ages now, you've been able to designate any  Layer to be non-plotting.  So make yourself one for the purpose, named appropriately [such as for BlockNames or something], set it to not Plot, and use that instead of DEFPOINTS.

 

If you think it doesn't really matter, you probably are not aware of the quirky way in which objects on the DEFPOINTS Layer behave differently from those on all other Layers, even other non-Plotting Layers.  For whatever reason, when Layer 0 is either off or frozen, objects on the DEFPOINTS Layer cannot be selected for any purpose, nor can you Object-Snap to locations on them.  You can still see  them if that Layer is thawed & on, but you can't do  anything at all with or to them.  You might sometimes find it useful to take advantage of that in specific circumstances, but it could take you by surprise if that Layer is used in a general way for stuff you don't want to Plot.

Kent Cooper, AIA
0 Likes