Creating block where you can hide part of it on command

Creating block where you can hide part of it on command

Anonymous
Not applicable
3,383 Views
5 Replies
Message 1 of 6

Creating block where you can hide part of it on command

Anonymous
Not applicable

Hello,

 

I've searched and couldn't find anything on this, though I may just be using the wrong wording...

 

I am placing devices in a drawing that have certain spacing guidelines (ex. 30' radius). I'd like to drop the blocks in the drawing so that, in addition to the device symbol, a circle showing the device spacing is placed around the device. I can do this by making a block with the spacing circle included, but...

 

I'd like to be able to place all devices, make sure all the spacings are covered, then hide all those spacing guideline circles at once. 

 

Can anybody point me in the right direction to do this?

0 Likes
3,384 Views
5 Replies
Replies (5)
Message 2 of 6

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... 

I am placing devices in a drawing that have certain spacing guidelines (ex. 30' radius). I'd like to drop the blocks in the drawing so that, in addition to the device symbol, a circle showing the device spacing is placed around the device. I can do this by making a block with the spacing circle included, but...

 

I'd like to be able to place all devices, make sure all the spacings are covered, then hide all those spacing guideline circles at once. 

....


Draw that spacing Circle in the Block definition on a Layer made to have only them in it, and when you want them hidden, turn that Layer off.

Kent Cooper, AIA
Message 3 of 6

Anonymous
Not applicable
Thanks Kent! Great and easy solution!
0 Likes
Message 4 of 6

nrz13
Advisor
Advisor

FYI, the type of block you are describing is called a Dynamic Block.  To use that, you would add a Visibility Parameter to the block (you might call it Radius) and give it two Visibility States:  On and Off.  You would functionally use it by putting the blocks in with the radius and copying them around as needed.  When it came time to turn them off, you would select one of them, use the SELECTSIMILAR command to select all of those blocks in the drawing, and then use the Properties palette to change the State from On to Off.

The layer solution is definitely simpler, though, although doing that sort of dynamic block is pretty easy too.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
0 Likes
Message 5 of 6

Kent1Cooper
Consultant
Consultant

@nrz13 wrote:

FYI, the type of block you are describing is called a Dynamic Block.  To use that, you would add a Visibility Parameter to the block (you might call it Radius) and give it two Visibility States:  On and Off.  ....  When it came time to turn them off, you would ... change the State from On to Off.
....


I'm not now where I have a new-enough version to have dynamic Blocks to check, but if a Visibility Parameter applies to an entire Block, that would mean the spacing Circle would need to be its own Block separate from the device Block, to have its own Visibility State.  If it were part of the device Block as the OP describes, using Visibility States, the devices themselves would also disappear when the Visibility State is turned off.  Using the Layer-based approach instead means that the spacing Circle can be part of the device Block, so the Circles can't become displaced relative to the devices, but the devices and the spacing Circles can be visible or not, independently.  But if a Visibility Parameter can be applied to an individual entity in a Block [I'm trying to imagine how that would be controlled...], that would seem to be a workable approach.

Kent Cooper, AIA
0 Likes
Message 6 of 6

nrz13
Advisor
Advisor

Kent:

It's all part of one block so everything would move together.  The On/Off state controls just the items you select within the block editor to be visible for each state, but everything is all together in the same block.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
0 Likes