Dynamic block in dynamic block

Dynamic block in dynamic block

bwang-tecoustics
Collaborator Collaborator
582 Views
1 Reply
Message 1 of 2

Dynamic block in dynamic block

bwang-tecoustics
Collaborator
Collaborator

I was trying to embed one dynamic block in another dynamic block. I have block A, which has A1, A2 & A3 in it and I can select by visibility. I now want to add block B in block A. But block B has B1, B2 to B5. The mapping between the A & B may change from time to time.

 

For example, for project 1, I set A1 with B1 in it, and A2 has B2, A3 has B3.

But for project 2, I want A1 has B1, A2 has B4, and A3 has B5. This means, if I select the visibility of A2, I want the block B change to B4 automatically in block A.

 

Is there a way to achieve this?

0 Likes
583 Views
1 Reply
Reply (1)
Message 2 of 2

MetalFingerz
Advocate
Advocate

@bwang-tecoustics wrote:

I was trying to embed one dynamic block in another dynamic block. I have block A, which has A1, A2 & A3 in it and I can select by visibility. I now want to add block B in block A. But block B has B1, B2 to B5. The mapping between the A & B may change from time to time.

 

For example, for project 1, I set A1 with B1 in it, and A2 has B2, A3 has B3.

But for project 2, I want A1 has B1, A2 has B4, and A3 has B5. This means, if I select the visibility of A2, I want the block B change to B4 automatically in block A.

 

Is there a way to achieve this?


Hi,

 

It is possible to achieve it.

 

1. If you're working on a pre-2011 autocad, you can use the "visibility-add-eng" lisp, which makes it possible to create multiple visibility parameters within a block. It is said to work on most recent autocads but with many bugs and dysfunctions. If you have Autocad 2010, you can create your blocks in it and use them in the most recents versions. Editing those blocks will probably "corrupt" them, I didn't try it so I can't really tell.

-> https://forums.autodesk.com/t5/dynamic-blocks/you-gotta-try-visibility-add-eng-v1-1/td-p/2521041

 

2. Otherwise, you can create a list of the 15 possible combinations (3 As times 5 Bs) and make them visibility states. It looks quite laborious but it gets the job done. That's what I would do because it's the simplest way. Above all if I don't need to change the blocks individually.

 

3. The last solution is probably what you'll want to do as it is a solution that uses lookup tables to simulate multiple visibility states.

To make it short, it starts by mapping all possible combinations (which is solution 2.), then create look up tables associated with a dummy parameter for each block, then a third look up table  that links the two previous lookup tables and finally a last look up table to link the 3rd one with the visibility states.

It's quite long to do obviously but it probably meets your needs because with that, you can manually change the visibility of each block without having to look for the combination in your visibility list. It's the handier solution.

The solution was found by user Libbya and below are posts where he explains the process.

- > http://forums.autodesk.com/t5/dynamic-blocks/using-lookup-tables-to-specify-visibility-states/td-p/5...

- > http://forums.autodesk.com/t5/dynamic-blocks/ootb-multiple-visibility-states-solution/td-p/4961288

- > http://forums.autodesk.com/t5/dynamic-blocks/how-to-make-a-double-lookup/m-p/5785708/highlight/true#...

- > http://forums.autodesk.com/t5/dynamic-blocks/lookup-multi-vis-how-to-screencast/m-p/5849853#M19084

0 Likes