Fail to pass directshape into the family

Hi,

Im trying to pass a Brep geometry into Revit through Directshape and at the same time create a family from it. The geometry it passes well into Revit but not into the family. When I open the family it seems to be empty. What Im missing or doing wrong? Thank you in advance!

Hi PRib,

The New Component Family component doesn’t take families at this time. the Direct Shape at this point is an in-place family.

Create a new family then open the family to add direct shapes, parameters, materials in the family document.

Hei @Japhy. Thank you for your reply.

I have tried to follow your instructions. I have created a new (generic model template) family and add the direct shape, parameters, etc. Thats how it looks.

After running GH, It seems the geometry got passed and the new parameters for area created in the family types. However I cant see them in the properties tab and in addition the native materials parameter disappeared. (the last I guess it is because Im passing a Directshape geometry - What could I do different to keep the material parameter?)

When Im placing the family into the main model I get to see the parameters in the properties, but the area value from GH doesnt go through.

It seems to me that when Im pushing the geometry into the family, the “Element parameter” is not passing the area value for any reason I cant really figure it out.
When I skip the family and push the geometry from GH directly into the main model, then the “Element parameter” gets activated and the area values are passing and showing in the property tab.

Dio you have any tips for what im missing?
Im sorry about the mess and thank you in advance.

Can you post the family? Hard to tell why the custom area parameter isn’t showing from the screenshots.

If you use a Component Family Form you will get the Material Parameter as expected.

I have created the family in Revit and just when inside the family I have pushed the GH to bring the geometry in. I see you have done it all in GH.
However I have used directshape geometry (image of the gh above) and not the component family form, which it is probably why the materials parameter disappears.

Here using the direcshape component.

And here using the AddForm component

I have also tried with the AddForm component and I get the material parameter to work well in Revit as you are showing - even if I dont query materials in gh, but the Area parameter doesnt. Only when deployed directly in the main model…

Thank you for taking some time to look into it. Really appreciated :wink:

RI_Directshape_Wall.rfa (6.6 MB)
RI_Family form Wall.rfa (6.5 MB)

When adding a material to a directshape its always going to via Paint, not a material parameter. You can add a custom material parameter for scheduling purposes but it won’t control the material on the direct shape.

Adding the parameters into the Family.
image

Then modifying the Element Instance and Element Type in the Project.

image

Thank you @Japhy. The workflow worked perfectly.
Really appreciated!!

Hei @Japhy,

One more question, which I hope we give me some input on. :slight_smile:
Im having difficulties to pass the new area parameter into the IFC. I wonder if the Area parameter in Revit is a read-only parameter or if it can be overwritten by the new area value?
For now the area parameter it does show in the element properties, but not at all when I export the IFC.

do you have Export Property Sets checked in your IFC export settings?

Actually not and the reason was to filter out other parameters that are not needed in the IFC (as well as reduce the size of the file) . It is the only way?

Only way that i’m aware off, you could look at 3rd party IFC export applications that might have more options.

thank you @Japhy for you feedback.

It’s been a long time since I last exported an Ifc with parameters from Revit but as far as I remember you can load your own property sets into the Ifc settings.