How to assign materials according to some parameters value?

How to assign materials according to some parameters value?

Anonymous
Not applicable
2,566 Views
8 Replies
Message 1 of 9

How to assign materials according to some parameters value?

Anonymous
Not applicable

Hello,

I have a family (a line-type based family)  that when loaded to the project needs to change colours depending on a parameter (psi nr).. It's a family that will be used for a thermal bridge, so i want to have it Red when the values are 0>psi nr>0.1 and Green when the value is 0.1>psi nr.

  As you cand asign formulas to materials Is there any possibility to do that in some other magical way? 

See the attached files

Thank you

0 Likes
Accepted solutions (1)
2,567 Views
8 Replies
Replies (8)
Message 2 of 9

ToanDN
Consultant
Consultant
Create different elements with different materials or object styles and use visibility parameters. Control the visibility parameter using a formula.
Message 3 of 9

Anonymous
Not applicable

sorry, but may be i dont know, how is it possible to have 2 elements with param and constrains in the same place? I dont need to have 2 elements one close to another and set up visibility for each of them.

0 Likes
Message 4 of 9

ToanDN
Consultant
Consultant
You can have as many elements occupying the same place as you need. Turning which one on or off is based on the criteria from your formula.
0 Likes
Message 5 of 9

Anonymous
Not applicable

If i have an element with contrains and i copy the same element in the same place, how i can manage to paste the same constrains? sorry may be it is obvious, i am a beginner

0 Likes
Message 6 of 9

Sahay_R
Mentor
Mentor

Select the element that you are talking about. CTRL-C. Open a new family of the same category (or Generic Model). CTRL-V. Take a look at the parameters - the parameters of the geometry will have magically appeared in the new family.

 

Then click Load Into Project, and load this family into the final family.

 

This will give you less constraints to worry about, and significantly more control in positioning the geometry. You can copy it wherever you want with no problems.

 

Now, if you also need to have control over the parameters of the nested family, then you will need to associate the parameters from the nested family to the corresponding parameters in the host family.


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
Message 7 of 9

ToanDN
Consultant
Consultant
Accepted solution

You can nest a family with 3 types into your family then associate the parameters.  The [psi_nr] parameter you have is a text and cannot be used to drive a formula.  In the revised family I renamed it and created a new one as number parameter.

 

See the attached file with the color of the element changes when its psi_nr value changes.

 

Capture1.PNGCapture.PNG

 

You will need to enter the model text value manually because it cannot read the value from a number parameter.  Another approach is using label and shared parameter, but let address it later.

Message 8 of 9

Anonymous
Not applicable

I got it, thank you so much for your patience 🙂  

0 Likes
Message 9 of 9

birch98
Explorer
Explorer

Does this solution work only for line based generic models?
Ive been trying to re-create this in  generic model family template (simple spheres) but was not able to make it work.

 

0 Likes