AnalyticalElementGetCurve Method |
Returns the curve of the Analytical Element.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
SyntaxPublic Function GetCurve As Curve
public:
Curve^ GetCurve()
member GetCurve : unit -> Curve
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.
Examplepublic void GetColumnCurve(AnalyticalElement member)
{
if (member.StructuralRole == AnalyticalStructuralRole.StructuralRoleColumn)
{
if (member.IsSingleCurve() == true)
{
Curve columnCurve = member.GetCurve();
}
}
}
See Also