2027 Method
Changes 0
M

Material.IsMaterialOrValidDefault

Description:
Validates whether the specified element id is a material element.
public static bool IsMaterialOrValidDefault(
	Element pElem,
	ElementId materialId
)
  • pElem
    An element which will be applied the material
  • materialId
    The element id to be checked.
Return Value Boolean True if the element a material element or invalidElementId, which means take material from category, false otherwise.