Sets the Curve Loop that defines the geometry of the Analytical Surface element.
Namespace: Autodesk.Revit.DB.StructureAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void SetOuterContour(
CurveLoop outerContour
)
Parameters
- outerContour CurveLoop
-
New Curve Loop for the Analytical Surface element.
Exceptions
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();
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();
}
}
VB
Using transaction As Transaction = New Transaction(document, "Edit Analytical Panel outer contour")
transaction.Start()
Dim profileloop As CurveLoop = 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()
End Using
End IfVB
Using transaction As Transaction = New Transaction(document, "Edit Analytical Panel outer contour")
transaction.Start()
Dim profileloop As CurveLoop = 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()
End Using
End If
See Also
Reference