SetOuterContour Method


Analytical Surface Base Set Outer Contour Method

Sets the Curve Loop that defines the geometry of the Analytical Surface element.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void SetOuterContour(
	CurveLoop outerContour
)

Parameters

outerContour CurveLoop
New Curve Loop for the Analytical Surface element.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null
Remarks
Curve Loop must be planar and not self-intersecting.
Example
C#
   using (Transaction transaction = new Transaction(document, "Edit Analytical Panel outer contour"))
   {
      transaction.Start();

      //create a new curve loop
      CurveLoop profileloop = new CurveLoop();
      profileloop.Append(Line.CreateBound(
         new XYZ(0, 0, 0), new XYZ(5, 0, 0)));
      profileloop.Append(Line.CreateBound(
         new XYZ(5, 0, 0), new XYZ(5, 5, 0)));
      profileloop.Append(Line.CreateBound(
         new XYZ(5, 5, 0), new XYZ(-2, 5, 0)));
      profileloop.Append(Line.CreateBound(
         new XYZ(-2, 5, 0), new XYZ(0, 0, 0)));

      //Sets the new contour for analytical panel
      analyticalPanel.SetOuterContour(profileloop);

      transaction.Commit();
   }
}
See Also
ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →