Sets new profile that defines the shape of the Fabric Sheet bending.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 16.0.0.0 (16.0.0.0)
Since:
2016
Syntax
| C# |
|---|
public void SetBendProfile(
CurveLoop bendProfile
) |
| Visual Basic |
|---|
Public Sub SetBendProfile ( _
bendProfile As CurveLoop _
) |
| Visual C++ |
|---|
public:
void SetBendProfile(
CurveLoop^ bendProfile
) |
Parameters
- bendProfile
- Type: Autodesk.Revit.DB..::..CurveLoop
A profile that defines the bending shape of the fabric sheet.
The profile can be provided without fillets (eg. for U shape, only three lines not three lines and two arcs),
if so, then fillets (two arcs) will be automatically generated basing on the Bend Diameter parameter defined in the Fabric Wire system family.
If the provided profile has no corners (has a tangent defined at each point except the ends), no fillets will be generated.
The provided profile defines the center-curve of a wire.
Examples
CopyC#
private void ModifyBentFabricSheet(Document document, FabricSheet bentFabricSheet)
{
CurveLoop newBendingProfile = CurveLoop.CreateViaOffset(bentFabricSheet.GetBendProfile(), 0.5, new XYZ(0, 0, -1));
bentFabricSheet.SetBendProfile(newBendingProfile);
TaskDialog.Show("Revit", string.Format("Bent Fabric Sheet ID='{0}' modified successfully.", bentFabricSheet.Id.IntegerValue));
}
CopyVB.NET
Private Sub ModifyBentFabricSheet(document As Document, bentFabricSheet As FabricSheet)
Dim newBendingProfile As CurveLoop = CurveLoop.CreateViaOffset(bentFabricSheet.GetBendProfile(), 0.5, New XYZ(0, 0, -1))
bentFabricSheet.SetBendProfile(newBendingProfile)
TaskDialog.Show("Revit", String.Format(, bentFabricSheet.Id.IntegerValue))
End Sub
Exceptions
See Also