I’m trying to reduce the size of our model ( by removing multiple unused attributes ) as we have issues when it loads up on speckle viewer, it seems to be crashing speckle model viewer ( browser )…
I tried utilizing the nodes from legacy and noticed they have changed in the new connectors… I was facing an issue where the model attributes have also changed, as I’m not able to use displayValue which previously held the structural data of the model…
Can anyone guide what the new process would be or if there is any other faster efficient way to reduce the model size .
Are you trying to use the Next-Gen Grasshopper connector to reduce a legacy Revit model? Keep in mind that legacy connectors are only compatible with other legacy connectors and the same with Next-Gen.
The community standup tutorial you linked is in most ways not needed anymore for Next-Gen Revit → PowerBI workflows, as many things have changed including:
A lot of extraneous geometry is removed from objects
Render materials are only sent once in the model, not attached to every object
Parameters are stored as dictionaries in the properties field, instead of objects
So in general your next-gen Revit models are already more lightweight. Also, the Deconstruct node is not meant to be used as part of regular workflows, it is more of a developer node to help you access properties that are normally only seen in developer mode in the viewer.
To reduce your Revit model in Next-Gen Grasshopper, you may want to:
only use objects from certain collections
remove some properties in the properties field
You can refer to the sample scripts that are packaged with your installation of Next-Gen grasshopper for an example of a BI script that works with Revit models. Here’s a quick rundown of the current components you can use to easily create simple objects for powerBI from revit objects:
filtering which objects to use by collection, using the Collection Selector node and a regex query to sort by floors walls and columns. Here I’ve only selected collections that are of floor, wall, or column types and will leave out any other type of object.
create a new, reduced set of properties with the Properties Selector and Create Properties node. Here I’m only getting the category, family, type, level, and volume properties
Many thanks for this, the issue we faced was that one of our models ( only the floor model ) consisted of around 50,000 objects and loading it absolutely crashes the browser itself, then we tried to load it via grasshopper to reduce it’s size and properties… it somewhat freezes the grasshopper whenever a node is attached ( such as speckle object or deconstruct object… )
Can y’all by any chance share that model with us privately? It would do us wonders for being able to stress test performance. Even just a url link that we can access would be great for @alex, and if there’s a revit file you can share too - connectors team will be happy
Let us know, we’re happy to sign whatever NDAs you want us to.