Autodesk.Revit.DB.Structure.RebarShapeSegment 是Revit中用于定义筋形状的一部分。
Type: 筋段的类型,可选值为 Arc, Line, Spiral。Width: 筋段的宽度。Radius: 筋段的半径,仅当 Type 为 Arc 或 Spiral 时有效。Angle: 筋段的角度,仅当 Type 为 Arc 时有效。Height: 筋段的高度,仅当 Type 为 Line 时有效。Pitch: 筋段的螺旋距离,仅当 Type 为 Spiral 时有效。PitchAngle: 筋段的螺旋角度,仅当 Type 为 Spiral 时有效。Clone(): 返回一个包含相同属性的新的 RebarShapeSegment 实例。以下示例展示如何创建一个 Arc 类型的筋段:
RebarShapeSegment arcSegment = new RebarShapeArc(
0.5, // 半径
30.0, // 角度
RebarShapeArcOrientation.Clockwise // 方向
);
创建一个 Line 类型的筋段:
RebarShapeSegment lineSegment = new RebarShapeLine(0.5);
lineSegment.Height = 1.0;
创建一个 Spiral 类型的筋段:
RebarShapeSegment spiralSegment = new RebarShapeSpiral(
0.5, // 半径
30.0, // 螺线角度
0.05 // 螺线距离
);