I am a new user of Dynamo and would like to know how I can reduce the number of triangles of selected elements in a Revit model using the Dynamo script.
There was a similar problem here : [Reduce Mesh], but in this case I would like to bring the selected elements and then extract meshes from those Revit elements in Dynamo instead of importing .obj file. Is this possible ? If so what steps do you suggest I take ?
Please let me know if you require any clarifications
I come across that error frequently when working with large objects and meshes in Dynamo, and it tends to be a bit of a dead end for me. From what I can gauge it’s related to naked edges, possibly falling within a tolerance range that Revit or Dynamo have applied to them in order to close that edge and its related faces.
Commenting on this thread so I can follow the outcome or reasoning behind it if it’s determined.
It’s pretty much this - the geometry contained in the Revit import is broken on the Dynamo end, either as a result of how Revit imported it, stored it, or sent it back to Dynamo. Revit has reduced tolerances from what is needed for mfg (by design and a good thing) which means that it has implemented a LOT of ‘ignore that issue and fake it this way’ code dealing with geometry stuff over the years. You can see these as dbg_info statements in Revit journals around geometry stuff.
There are ways around this, but they will all entail using the exporter to get good geometry out of the file prior to bringing it into Dynamo and using that.
@faisal.ramady what is your end goal after bringing the reduced complexity mesh into Dynamo?
Thank you for confirming Gavin’s explanation. Just to give you the bigger picture we are trying to get the a BIM federation uploaded to a cloud based platform where we can view the model in the browser. There are memory constraints in the browser (up to 3GB) and the furniture in the building takes up >90% of the total memory. We would like to reduce the complexity of the furniture using dynamo and bring the simplified furniture’s back into the Revit federation so we can upload into the platform. I am open to any suggestions at this point
I believe the code works when you only have geometries with planar surfaces, I have furniture (with those wheel chairs) that have curved surfaces. I ran the python script for fun and I get the following error message fyi .
I think the process would have to be something like:
Get all the over-modeled furniture families in the document, and save them out to a new rfa (save as library is best for this) so you have a backup and to give you something you can more readily process in chunks.
For each furniture family in the document, open the family document, get the mesh geometry from the 3D view, and export to an intermediate file format (ie: .sat, .obj) which Dynamo can import.
Import the intermediate file and process it to simplify the number of faces.
There is no “easy button” for this, so if you don’t want to spend awhile focusing on the ins and outs of mesh editing, consider processing them with something like meshmixer.
Delete the mesh geometry elements, and import the edited mesh as a new direct shape.
If you went the external processing method, you can restart at #2, and import from the edited eternal mesh instead.
Save the family as a new .rfa, and load it into the file.
A better solution would be to use a more robust cloud platform, or to disable the furniture display entirely and use a simplified version generated externally from Revit for your geometry display (ie: export a 3D view of just the furniture to FormIt, edit there and import that into your cloud platform).