Dynamic door, multiple visibility or lookup table

Dynamic door, multiple visibility or lookup table

Richard.Vivanco
Advisor Advisor
1,415 Views
16 Replies
Message 1 of 17

Dynamic door, multiple visibility or lookup table

Richard.Vivanco
Advisor
Advisor

Hi

Im working in a dynamic block for a door. 

Right now i can change the size using a lookup table and the swing angle using a visibility parameter.  
I want to add a control so the user can change the handle model (L or sphere handle).  One option is to add all the combination in the visitility parameter but it generates a large list (5 swing angles and 2 types of handle= 10 options in the list)  

I think it would be more useful if the user works with 3 controllers.  One for the size, another for the angle, and one more for the handle.   I try using vaeng.lsp but autocad 2019 crash from time to time.
Please anyone can give me some ideas?

I attach the cad file, 2018 version, and one image.
Thanks.
Richard 


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Accepted solutions (4)
1,416 Views
16 Replies
Replies (16)
Message 2 of 17

Libbya
Mentor
Mentor

I think you might have uploaded the wrong file.  It does not match the jpg you attached and nothing in it works at all.  

 

 

Message 3 of 17

Richard.Vivanco
Advisor
Advisor

Hi

Thanks for your interest.

Please when you open the file, dont select open in block editor in the warning message.  Select No, and then  you can edit the block without problem.

Thanks.


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 4 of 17

Libbya
Mentor
Mentor
Accepted solution

I believe this shows how to do what you want to do.

 

 

0 Likes
Message 5 of 17

Richard.Vivanco
Advisor
Advisor

Thanks this is what i need.

I will implement this solution.

 

 


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 6 of 17

Richard.Vivanco
Advisor
Advisor

Hi

It works fine but some times the handle doesnt update automatically.  First I must change the angle swing to update the handle.  


This situation is random, sometime all works fine.  I dont understand why.

Maybe because the use of double lookup?  

Thanks.


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 7 of 17

Libbya
Mentor
Mentor

Post the block.  I have a feeling it is because the as-drawn input point position does not match a row on the table.  If you post the block with any inquiry, it avoids guesswork.  

0 Likes
Message 8 of 17

Richard.Vivanco
Advisor
Advisor

Hi

This is the block im working.  When you open the file, in the popup menu click no,  insert the block and then you can edit without problem .    This is another thing im not understand, why when i click yes in this popup menu, the dinamyc block looks different, is like a block inside another block,  when i explode it in the block editor, all the parameters and actions dissapear...... This another theme, sorry about that.

Thanks for you support.

 

 


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 9 of 17

Libbya
Mentor
Mentor
Accepted solution

As I suspected, your placed the point parameter 'freehand' instead of placing at a specific position.  The X and Y positions of the point parameter are used as 'memory' to remember your selections on the single lookup tables.  Because of this, the as-drawn position of the point parameter must match a row on each selection lookup table that uses its position as memory.  Simply move the point parameter to the 1,1 position and the selection lookups and double lookup work immediately upon insertion.  

 

 

Message 10 of 17

Libbya
Mentor
Mentor
Accepted solution

To get rid of the 'open in block editor' dialog when opening the file, copy the block to a new blank file and then save it as your original file.  The 'block authoring elements' will be gone from model space, as will be the pop-up dialog and confusion when opening the file.  

0 Likes
Message 11 of 17

Richard.Vivanco
Advisor
Advisor

Thanks a lot,  both problems are resolved.

One more thing, its possible to update automatically the fields without regen or save the file?   


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 12 of 17

Libbya
Mentor
Mentor

You cannot update fields without a regen but you can use a block properties table to force the value of the attribute and in that case a regen is not needed.  I also did a bit of other cleanup in the block.  See screencast.  

 

 

0 Likes
Message 13 of 17

Richard.Vivanco
Advisor
Advisor

Thanks a lot Libbya, in few minutes i learned a lot.

I will implement from start the new block with this new features.

 


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 14 of 17

Richard.Vivanco
Advisor
Advisor

The last one, only for curiosity.

If you want 3 or more handles, you need one more point parameter, another double lookup ( 3-4 in the input )  and then mix  x position, y position, second x position and so on?

Thanks.

 


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 15 of 17

Libbya
Mentor
Mentor

It depends on what you want controlled by that additional selection input.  If it is going to add more visibility options, then you would need another point parameter and use the X or Y as memory.  You would not use another double lookup but rather you would add the necessary additional visibility states, add the point parameter to the input table of the existing double lookup, then add the additional matching rows to the visibility table. 

 

If you wanted the additional grip to make changes that did not require additional visibility states, then you could add just a single lookup to control the parameter values.  No need for an additional point parameter in that case, and no need for any additional double lookup.    

0 Likes
Message 16 of 17

Richard.Vivanco
Advisor
Advisor
Accepted solution

Thanks

I create all the block again with 3 handles and works fine.  As you said is not necessary to add another point parameter. I understand that you use  X for the handle  and Y is for the angle

Only need to add a third type of handle in one look up parameter,  and  a new combination in the double look up.  With this logic, you can add many types of handles.

The field now shows the updated lenght, thanks for the tip.

The only "problem" is when you use the control to change the lenght, appears the text "properties table..." in the last row of the control.  Its possible to hide this text?

I attach the new version of the block.

Thanks for your time and patience.

 

 

 

 


Richard Vivanco V.
Arq. BIM Manager + Autodesk Certified Instructor
Website | Youtube | LinkedIn



EESignature

0 Likes
Message 17 of 17

Libbya
Mentor
Mentor

The block properties table always displays the option to see the properties table.  There is not any way to shut it off.  That is a trade off for the automatic update of the attribute.