2026 Method
Changes 0
M

Material.Create

Description:
Creates a new material.
public static ElementId Create(
	Document document,
	string name
)
  • document
    The document in which to create the material.
  • String
    name
    The name of the new material.
Return Value ElementId Identifier of the new material.
  • name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- The given value for name is already in use as a material element name.
  • A non-optional argument was null