StructuralSectionConcreteRectangleCut
是 Revit Structure 中用于表示矩形剖面混凝土截面的类。该类包含了矩形剖面的尺寸和其他截面相关的属性信息。
public StructuralSectionConcreteRectangleCut(
double b,
double h,
double coverTop,
double coverBottom,
double coverSides
)
b
:截面宽度h
:截面高度coverTop
:顶部混凝土盖厚coverBottom
:底部混凝土盖厚coverSides
:侧面混凝土盖厚Width
public double Width { get; }
double
Height
public double Height { get; }
double
TopCover
public double TopCover { get; }
double
BottomCover
public double BottomCover { get; }
double
SideCover
public double SideCover { get; }
double
// 创建一个 300mm x 500mm 矩形剖面混凝土截面对象
var section = new StructuralSectionConcreteRectangleCut(
0.3, // 宽度 300mm
0.5, // 高度 500mm
0.05, // 顶部混凝土盖厚 50mm
0.05, // 底部混凝土盖厚 50mm
0.05 // 侧面混凝土盖厚 50mm
);
// 输出截面尺寸信息
Console.WriteLine("Width: " + section.Width);
Console.WriteLine("Height: " + section.Height);
Console.WriteLine("Top Cover: " + section.TopCover);
Console.WriteLine("Bottom Cover: " + section.BottomCover);
Console.WriteLine("Side Cover: " + section.SideCover);