Sets the Curve Loop that defines the geometry of the Analytical Surface element.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since:
2023
Syntax
| C# |
|---|
public void SetOuterContour(
CurveLoop outerContour
) |
| Visual Basic |
|---|
Public Sub SetOuterContour ( _
outerContour As CurveLoop _
) |
| Visual C++ |
|---|
public:
void SetOuterContour(
CurveLoop^ outerContour
) |
Remarks
Examples
CopyC#
using (Transaction transaction = new Transaction(document, "Edit Analytical Panel outer contour"))
{
transaction.Start();
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)));
analyticalPanel.SetOuterContour(profileloop);
transaction.Commit();
}
}
Exceptions
See Also