Element.GetMaterialIds
Description:
Gets the element ids of all materials present in the element.
Gets the element ids of all materials present in the element.
Remarks:
The returned collection of materials will be empty in any of the following situations:
The returned collection of materials will be empty in any of the following situations:
- The returnPaintMaterials flag is false, and the Category.HasMaterialQuantities property of the element's Category is false.
- The returnPaintMaterials flag is true, and the the element does not have any painted faces.
public ICollection<ElementId> GetMaterialIds(
bool returnPaintMaterials
)