Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Glass Material type on Sweep not working in RVT file

7 ANTWORTEN 7
GELÖST
Antworten
Nachricht 1 von 8
RakeshBSalwe
408 Aufrufe, 7 Antworten

Glass Material type on Sweep not working in RVT file

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).

7 ANTWORTEN 7
Nachricht 2 von 8
barthbradley
als Antwort auf: RakeshBSalwe

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.  

Nachricht 3 von 8
RakeshBSalwe
als Antwort auf: barthbradley

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);
   }
}

 

Nachricht 4 von 8
RakeshBSalwe
als Antwort auf: barthbradley

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?

Nachricht 5 von 8
RDAOU
als Antwort auf: RakeshBSalwe

@RakeshBSalwe 

 

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


Nachricht 6 von 8
RDAOU
als Antwort auf: RakeshBSalwe

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


Nachricht 7 von 8
RakeshBSalwe
als Antwort auf: RDAOU

Please find attachment for both RFA and RVT file. 

Visual Style used for same is “Realistic”.

 

Nachricht 8 von 8
RDAOU
als Antwort auf: RakeshBSalwe

@RakeshBSalwe 

 

It is what Barth already told you to do... See GIF below if it helps

 

mAT FIX.gif

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.

In Foren veröffentlichen  

Autodesk Design & Make Report