<Code Lib>
M

AnalyticalElement.GetCurve

Description:
Returns the curve of the Analytical Element.
Remarks:
If the Analytical Element cannot be expressed as a single curve, an exception is thrown.

public Curve GetCurve()

Curve The curve of the Analytical Element.

public void GetColumnCurve(AnalyticalElement member)
{
   // get AnalyticalElement from structural column
   if (member.StructuralRole == AnalyticalStructuralRole.StructuralRoleColumn)
   {
      // column should be represented by a single curve
      if (member.IsSingleCurve() == true)
      {
         Curve columnCurve = member.GetCurve();
      }
   }
}

Loading…