Add Material Parameter to imported objects/families in Revit

Hi,

I was wondering if there is a way to add a material parameter to an imported object such as a generic model or imported family, so that it can be changed under the properties later in revit?

I know I can apply during the import process, but I want to be able to change it later if necessary, without having to go through the process again.

In the definition attached, the last option applies the parameter to all imported families, but I only want the option for individual imports if that makes sense




Transfer to Revit.gh (19.4 KB)
test import.3dm (239.0 KB)
?

Thanks for any help!

Creating a Instance parameter in the family and associating the Breps material will allow you to change the material on each placed family. Alternatively you can create Type parameter that will allow you to change material by Family Type.

If not by Associated parameter the material will be assigned by the Family Category or per object like in your definition.

Hi Japhy,

Thank you for your reply. I was hoping to be able to integrate that process into the definition rather than doing it in Revit. Not sure if it is possible though.

Regards
Chris

It gets a bit more tricky if you are creating a shared parameter. Is this something you are looking to do to a lot of families at one time?

The association is available in the Revit API, so not impossible.

Hi Japhy,

Thanks again for your response.

No its something that I wish to apply as a case-by-case scenario. The last part of the definition above will apply the parameter to all families that have been imported, but I don’t really want to do it that way, as it may affect the families already imported…Probably overkill, but just want to be sure!

Forgive me if i am misunderstanding your suggestions, my knowledge in this area is very limited!

Regards
Chris