Document.Paint
Description:
Paint the element's face with specified material.
Paint the element's face with specified material.
Overloads (2):
public void Paint(
ElementId elementId,
Face face,
FamilyParameter familyParameter
)
-
elementIdThe element that the face belongs to.
-
faceThe painted element's face.
-
familyParameterThe family parameter associated with a material.
-
The element elementId does not exist in the document. -or- The element materialId does not exist in the document. -or- The face doesn't belongs to the element. -or- The family parameter doesn't specify a material element. -or- The element's face cannot be painted.
-
A non-optional argument was NULL
-
This document is not modifiable. -or- This operation is valid only in family.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.