Assigning different types of handle to doors and windows

Hi,

I am doing some GH door and windows scripts and would like to know how to assign a list of handles ex: 4 types so I can choose/change the handle after putting the door to its host.

The handles can be internalized blocks from rhinoceros?

I was just working on a similar thing a few days ago. If you reference the block as a Text in grasshopper (you have to type in the name of the block) you can pull in different kinds of hardware.

1 Like

@Leo13 you can also reference geometry from Rhino in Grasshopper (multiple Breps, for example), and connect it to a Data component. VisualARQ doesn’t support lists from the Brep component, but it does it for the ā€œDataā€ component instead. This way, you can select the ā€œinternalise dataā€ option in that Data component, so all objects are stored in that component. Once the geometry is internalised inside the Data component, you can disconnect it from the Brep component. You can do this with different Data components so they store different ā€œhandlesā€.

3 Likes

If instead of being a brep it would be better if it is already a block? So I could take advantage of insert point?

Also, if I want to be able to choose between different handle bases, like squared round, and so on.. how could it be done?

I came across this situation and I don’t understand why it doesn’t work.

Hi @Leo13,

Using Block instances as input parameters for Grasshopper Styles might be not possible right now.
If you are using Rhino 8, you may have noticed that there are 2 ā€œBlock Instanceā€ components.

One of them (the one like in your screenshot), is the VisualARQ one, inherited from VisualARQ 2 for Rhino 7 (VisualARQ 3 has kept it in order to be used in Rhino 7). This one can’t ā€œinternalise dataā€ across documents.
The other ā€œBlock Instanceā€ component, native in Rhino 8, can ā€œinternaliseā€ data, but it’s not compatible with the VisualARQ Grasshopper Styles.
So for Grasshopper Styles, you can use ā€œBlock definitionsā€ instead, and reference them by Name in a Value list, for example (if you need to pick one option or another). But of course, you need that these block definitions already exist in the document where you will use the Grasshopper Style.

You can use a Value list and Stream filter to pick one option or another, as I’ve shown in the previous post:

Just make sure the geometry you pick for each option, is located in the same reference point. Or depending on the geometry complexity of the handle, you can consider creating it directly in Grasshopper.

There are 3 red components here:

  1. Block instance: It gives you error because the ā€œBlockā€ input requires a Block definition, not a Block instance.
  2. Block Decompose: Same as previous one. You need to plug there a Block definition.
  3. Explode Blocks. I can’t find this component. Is it from a third-party Add-on? it might be not compatible with the VisualARQ Block Instance component.