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?
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.
@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ā.
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: