- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to change the transparency of a material's appearance. The image below depicts the point I'm dealing with; I want to change the amount of transparency.
First I search for the material in the material manager, then I go to the appearance properties and finally I edit the transparency amount
The approach via C# I'm trying is this:
string targetMaterialName = "Telhado cerâmico";
FilteredElementCollector collector = new FilteredElementCollector(document)
.OfClass(typeof(Material));
Material targetMaterial = collector.OfType<Material>().FirstOrDefault(m => m.Name == targetMaterialName);
AppearanceAssetElement appearanceAsset = doc.GetElement(targetMaterial.AppearanceAssetId) as AppearanceAssetElement;
But when I enter the element, I can't find properties to operate the transparency of the appearance. It's worth saying that I want to change the transparency of the appearance and not that of the material (Material.Transparency)
Solved! Go to Solution.