Rhino Brep to Revit with Add Form fails

Hi,

I am wondering if it’s possible that direct shape and add form have produce the same geometry. If I try to insert the referenced Rhino Breps to Revit it fails via AddForm but produces the right geometry (no meshes) with direct shape. I’d rather like to use AddForm for the flexibilty of material adjustments in Revit…

200703_SolidImport_AddFormFail.3dm (4.5 MB)

Hi Tom,

Routines to convert from Brep to Form and DirectShape share most of the code the difference is what is acceptable for Form and for DirectShape.

DirectShape accepts closed Solids, collections of unconnected faces, and meshes. When we convert to DirectShape first try to keep closed Breps as closed Solids, if this fails try converto to a collection of faces and do meshes as a last resort.
Form is diferent it do not accept meshes or collections of faces. So if your Brep is closed and the first approach fails it fails.

In this case if having exploded faces in four family is acceptable you can deconstruct your Brep in faces and move these faces as diferent forms.

On any case it will help to us if you can share part of this geometry that fails.

1 Like

Hi Kike,

I included the geometry in the original post. How can I distinguish in GH between Solid and Brep when I have closed geomtry anyway? The goal whould always be to produce Forms with closed Breps but I don’t see the parameter I could tweak to get the Form to work, when I have all Breps closed.
This is the other case I am still wondering how this happens:

Hi, I used Rhino Inside with “directshape” component in Revit 2019 few month ago and it worked. It recognised all the closed Brep without any problems. Now I need to update model in Revit 2020 and I have some troubles. I checked and all the rhino Brep are “closed Breps”, however items 1 and 4 give me some problems passing trought rhino inside.
I read that could be a problem of tolerances smaller than 1mm. Unfortunately I can not change geometry or tolerances. Is there a solution to solve the item? Is it possible to add the area parameter to the directshape from gh?

20210708-2020P016-DIOR-Esportazione Rhino Inside.gh (609.3 KB)

Hi @paolo.colombo,

Have not tried yet your file, but I see on your screenshot that the fourth Brep is invalid.

Are you using same geometry as few months ago?
If is the same geometry, have you scaled that geometry? If you scale it up without scaling the tolerance it may become invalid if you modify it in Rhino.

Rhino.Inside will not try to transfer geometry Rhino says is invalid.
Without more details the only solution I see is repairing that Brep using 1mm tolerance. Revit requires this to consider a Solid as closed.

About area parameter, currently we don’t have a component to create those kind of parameters but you can create a project or shared instance-parameter and bind it to the category you plan to assign to your DirectShape from the Revit UI.
Once the parameter is created you can compute the Area and assign the value to this parameter from Grasshopper with no problem.

Many thanks Kike,
geometries are a bit different from ones used few month ago, anyway they were modelled with the same approach. I fix the problem scaling the model, passing from mm to m.

About Area parameter I was thinking to create a shared instance-parameter and assign values automaticly using gh-excell-dynamo…there is an easiest way to assign values to these shared parameters?

Sorry but I started learning rhino inside now

best regards

If you split your geometry into Mullions and Panels, you can compute the area of the panels using the biggest face of each panel, if this value is accurate enough, and assign it to “Custom-Area” previously created from the Revit UI.