As I explain in this post on Data β Process β Data β β¦ β Data β Process β Data Pipelines, the data flow in AEC projects can be mapped out into these pipelines.
From @RamonvanderHeijden I learned that I should use Rhino for Geometry + Data (Attribute User Text), files such as Excel or JSON
for other types of structured data, and Grasshopper
or Python
for the processes β
|
β
|
β
|
β
|
β
|
β
|
β
|
I really loved Speckle and wanted to use Speckle
as the database, because of its awesome features (integration with many softwares, visualization, collaboration, no files, etc.) β
β
|
β
β
|
β
β
|
β
However, building Speckle objects that have Geometry + Attribute User Text + Colors in Grasshopper is VERY confusing, there really is no way to do it right it seems (see this notion site of mine).
Besides, Grasshopper for Rhino 8 now has these Rhino Data Types components in the new Rhino category. So, if we were able to build these Rhino objects with all the Geometry + Attribute User Text + Colors and then be able to create Speckle Objects directly from these objects, then Speckle in Grasshopper should become sensible. Unfortunately, there is no Speckle in Grasshopper support yet for these Rhino Data Type objects.
No worries though, Iβve finally found a pretty neat solution to go β
β
using the Next-Gen connector for Rhino 8 and the Rhino Data Type Grasshopper components
- Load geometry required for GH script from Speckle. The models that you load from Speckle will end up in the nested layer:
Project βProject Nameβ: Model βmodel/nameβ > FileName.3dm > LayerName
In case that geometry is updated, the Next-Gen Rhino connector will indicate this. See image below. - Query the geometry that you loaded from Speckle in the GH script using the new Query Model component. Iβd recommend querying by object Name, see image below.
- Operate on / process the queried Geometry + Attribute User Text
- Push the processed Geometry + Attribute User Text + Colors to Rhino using Cache Content component. The geometry you export from Grasshopper will end up in the layer you specify with the (Model Layer) β Model Object component(s). See image below and also note in that image how attribute User Text and colors are attached to objects. Similarly materials and other render properties can also be defined using the new Rhino Data Type components.
- Publish data to Speckle from Rhino using the Next-Gen connector. An Update button will appear in the Next-Gen connector (see image above), whenever the Geometry + Attribute User Text + Colors you push to Rhino are updated.
TA-DA:
β
β
β
β
β
β
Give it a try yourself!
Left: input models, right: output model:
Grasshopper script from the screenshots:
TransverseSections.gh (33.6 KB)