Returns the curve of the Analytical Element.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public Curve GetCurve()
Return Value
Curve
The curve of the Analytical Element.
Exceptions
Remarks
If the Analytical Element cannot be expressed as a single curve, an exception is thrown.
Example
C#
public void GetColumnCurve(AnalyticalElement member)
{
if (member.StructuralRole == AnalyticalStructuralRole.StructuralRoleColumn)
{
if (member.IsSingleCurve() == true)
{
Curve columnCurve = member.GetCurve();
}
}
}
See Also
Reference