M

AnalyticalModel.GetCurve

Description:
Returns the single curve of the Analytical Model, if it is only one curve.
public Curve GetCurve()
Curve Single curve of the Analytical Model.
public void GetColumnCurve(FamilyInstance familyInst)
{
    // get AnalyticalModel from structural column
    if (familyInst.StructuralType == StructuralType.Column)
    {
        AnalyticalModel modelColumn = familyInst.GetAnalyticalModel();
        // column should be represented by a single curve
        if (modelColumn.IsSingleCurve() == true)
        {
            Curve columnCurve = modelColumn.GetCurve();
        }
    }
}