Need your assistance, as I have created Sweep (Solid) and used material type as Glass for same.
Its behave correctly with transparent behavior in RFA file, but adding same RFA into RVT, the behavior of Sweep is not transparent (its seems to be solid).
Gelöst! Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
Project Material Parameters RULE.
...by that, I mean that the Family "Glass" Material may be different from the Project's "Glass" Material. The Project's "Glass" Material is the one the Family uses in this case.
Hello,
Can you guide how do i achieve that using revit api, currently i am using below mentioned code to change material type of Sweep to glass in family.
var p = sweep.get_Parameter(BuiltInParameter.MATERIAL_ID_PARAM);
IEnumerable<Element> materials = new FilteredElementCollector(doc).OfClass(typeof(Material))
.Cast<Material>().Where(q => q.MaterialClass == "Glass");
foreach (Material m in materials)
{
if (m.Name == "Glass")
{
p.Set(m.Id);
}
}
Also have checked, Glass material in family as well as in project are same. can you help me, what will be the possible cause for this?
Can you attach the revit file
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Just noticed your code. you might also want to consider taking that part to the Revit API forum...
https://forums.autodesk.com/t5/revit-api-forum/bd-p/160
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Please find attachment for both RFA and RVT file.
Visual Style used for same is “Realistic”.
It is what Barth already told you to do... See GIF below if it helps
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.