The Autodesk.Revit.DB.FaceDetailNode
class represents a node in a hierarchical tree structure of face details in Revit.
DetailLevel
: Gets or sets the detail level of the face detail node.Face
: Gets or sets the face associated with the face detail node.Nodes
: Gets a collection of child nodes of the face detail node.AddNode
: Adds a child node to the face detail node.RemoveNode
: Removes a child node from the face detail node.The FaceDetailNode
class is used in conjunction with the Autodesk.Revit.DB.FaceDetailUtils
class to create and manipulate face details in a Revit document.
A face detail is a special type of view that allows you to focus on a particular region of a model's geometry. You can create face details in a variety of ways, including selecting faces, sketching areas, or using reference planes.
// Create a new face detail node
var faceDetailNode = new FaceDetailNode();
// Set the detail level
faceDetailNode.DetailLevel = ViewDetailLevel.Fine;
// Set the face
faceDetailNode.Face = someFace;
// Add a child node
var childNode = new FaceDetailNode();
faceDetailNode.AddNode(childNode);
// Remove the child node
faceDetailNode.RemoveNode(childNode);
Autodesk.Revit.DB.FaceDetail
Autodesk.Revit.DB.FaceDetailUtils