AnalyticalSurfaceBase.SetOuterContour
Method
Description:
Sets the Curve Loop that defines the geometry of the Analytical Surface element.
Sets the Curve Loop that defines the geometry of the Analytical Surface element.
Remarks:
Curve Loop must be planar and not self-intersecting.
Curve Loop must be planar and not self-intersecting.
Examples
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();
}
}
Parameters
Parameter | Type | Description |
---|---|---|
outerContour | CurveLoop | New Curve Loop for the Analytical Surface element. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |