Revit 2025 API
Fabric |
Returns the array of pairs [parameter ID, length] that correspond to segments of a bent fabric sheet (like A, B, C, D etc.).
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public IDictionary<ElementId, double> GetSegmentParameterIdsAndLengths( bool rounded )
Public Function GetSegmentParameterIdsAndLengths ( rounded As Boolean ) As IDictionary(Of ElementId, Double)
public: IDictionary<ElementId^, double>^ GetSegmentParameterIdsAndLengths( bool rounded )
member GetSegmentParameterIdsAndLengths : rounded : bool -> IDictionary<ElementId, float>
Parameters
- rounded Boolean
- Set to true to return rounded values for segments lengths.
Return Value
IDictionaryElementId, DoubleArray of pairs [parameter ID, length] that correspond to segments of a bent fabric sheet (like A, B, C, D etc.) is returned for bend fabric sheet. For flat fabric sheet (not bent) empty array is returned.

This method does not provide alphabetical nor any other order of returned parameters.

private void GetBentFabricSheetData(FabricSheet fabricSheet) { string fabricNumber = fabricSheet.FabricNumber; IDictionary<ElementId, double> idsAndLengths = fabricSheet.GetSegmentParameterIdsAndLengths(true); StringBuilder displayInfo = new StringBuilder(); displayInfo.AppendLine(string.Format("Parameter Ids and segment lengths for FabricSheet {0}:", fabricNumber)); foreach (ElementId key in idsAndLengths.Keys) { displayInfo.AppendLine(string.Format("Parameter Id: {0}, Length: {1}", key, idsAndLengths[key])); } TaskDialog.Show("Revit", displayInfo.ToString()); }
Private Sub GetBentFabricSheetData(fabricSheet As FabricSheet) Dim fabricNumber As String = fabricSheet.FabricNumber Dim idsAndLengths As IDictionary(Of ElementId, Double) = fabricSheet.GetSegmentParameterIdsAndLengths(True) Dim displayInfo As New StringBuilder() displayInfo.AppendLine(String.Format("Parameter Ids and segment lengths for FabricSheet {0}:", fabricNumber)) For Each key As ElementId In idsAndLengths.Keys displayInfo.AppendLine(String.Format("Parameter Id: {0}, Length: {1}", key, idsAndLengths(key))) Next TaskDialog.Show("Revit", displayInfo.ToString()) End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also