The Autodesk.Revit.DB.ProfilePlaneLocation
class represents a position of a profile plane on an element face. The profile plane location is determined by three parameters: the Offset
, the Rotation
, and the Edge
.
The ProfilePlaneLocation
class has the following properties:
Offset
: a double
value representing the distance from the element face to the profile plane in the element space. Positive values move the profile plane away from the face, while negative values move it closer to the face.
Rotation
: a double
value representing the angle (in radians) by which the profile plane is rotated around an axis perpendicular to the element face. Positive values rotate the plane counter-clockwise, while negative values rotate it clockwise.
Edge
: a Curve
object representing an edge of the element face that the profile plane is aligned with. The edge can be a straight line or a curve.
The ProfilePlaneLocation
class is typically used in the context of a FamilyInstance
object, where it determines the position of a profile plane used to create a sweep or a blend between two or more geometries. To create a profile plane location, use the NewProfilePlaneLocation
method of the Element
class, passing in the offset, rotation, and edge parameters.
// Create a profile plane location
var offset = 1.0;
var rotation = 0.0;
var edge = new Line(new XYZ(0,0,0), new XYZ(1,0,0));
var profilePlaneLocation = Element.NewProfilePlaneLocation(offset, rotation, edge);
// Use the profile plane location to create a sweep
var profile = new List<Curve> { new Line(new XYZ(0,0,0), new XYZ(0,1,0)) };
var pathCurve = new Line(new XYZ(0.5,0,0), new XYZ(0.5,1,0));
var sweep = Element.Sweep(profile, pathCurve, profilePlaneLocation);
The ProfilePlaneLocation
class is related to the following classes:
Element
: the base class for all Revit elements, including FamilyInstance
.
Curve
: the base class for all Revit curves, including Line
and Arc
.
FamilyInstance
: a Revit element representing an instance of a family, which can be a door, a window, a piece of furniture, etc.
Sweep
: a Revit element representing a swept blend between a profile and a path.