Creating dynamic block with a flyout/submenu

Creating dynamic block with a flyout/submenu

Anonymous
Not applicable
2,118 Views
4 Replies
Message 1 of 5

Creating dynamic block with a flyout/submenu

Anonymous
Not applicable

Goodday,

 

I want to create a dynamic block and don't know how i make an action in the block.

 

I first explain what i want to create.

 

I want to create a block with different type of holes,

for example round, slotted, countersunk holes. All these holes have different dimensions.

I can create a block with al the holes drawn in it with different visiblilty states.

The problem is when i place the block into a drawing i have one long list with all the visibiltity states.( YOu can sort them)

What i want is a flyout or submenu in the block.

When i place the block into the drawing i only want first 3 option round holes, slotted holes and countersunc. when ik open that menu i want to see the dimension.

 

I know that its possible because i found a block on the internet with the option. I place it as an attachement in my request.

 

With kind regards,

 

J de Vries

 

0 Likes
2,119 Views
4 Replies
Replies (4)
Message 2 of 5

Libbya
Mentor
Mentor

The example block you posted is a nice block that uses Lookup tables for the sub-menus.  The downside to Lookups in this application is that you must select, exit and reclick the grip for the sub-menu to appear.  The trick that they use in that block is to make the lookup change the visibility state and then a DIFFERENT lookup that is stacked in the same grip location is shown in the selected visibility state.  If you set thelect the show/hide button on the visibility menu you can see all the stacked lookups. 

 

A block properties table might be a better choice in this case as it gives flyout sub-menus and you don't need to exit re-click to get to your final choice.  In the attached example block the block properties table grip is shown.  It allows first the selection of 'shape' (which changes the visibility state) and then the sub-menu option appears for 'radius/apothem'.  Notice that the sub-menu choices for radius/apothem are different for each of the prior selected shape options.  With the block properties table you can create as many sub-menus and choices as you like.  

0 Likes
Message 3 of 5

JBerns
Advisor
Advisor

I have a question related to dynamic block flyout menus. I hope this thread is not too old.

 

I am converting some legacy icon menus to tool palettes. Currently, the user expands the menu to select the component size.

2018-05-10_10-20-04.jpg

Notice that there are sizes available after the W132... level. If the user selects W132C6, the bock is inserted, However, the user could expand another level by hovering over Walking Tooth. More blocks can be selected at this level. This is repeated for the W106 and W124 menus.

 

Is it possible to achieve this selection structure using a DB Block Table? I have been trying for a while now, but have turned to the community for assistance.

 

If this menu structure is not possible with BTABLE, then I will make the menu appear as follows:

W132 >

W132 WT>

W106 >

W106 WT>

W124 >

W124 WT >

 

I have attached a simple block that I was testing.

 

Thanks for your time and attention. I look forward to the replies.

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
Message 4 of 5

Libbya
Mentor
Mentor

Sure, that's possible.  It even seems like your test block demonstrates it.  Any time the selection is not narrowed to a single row, it adds another submenu for selection.  Does that satisfy your question?  

 

 

0 Likes
Message 5 of 5

JBerns
Advisor
Advisor

Andrew,

 

Thanks for the quick reply and solution! I was so close.

I really appreciate that you teach us with videos instead of just uploading a block.

I have attached Rev 1. I welcome your feedback.

I hope this can help someone else.

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes