该类型位于Revit的Autodesk.Revit.DB.Architecture命名空间中,用于定义楼梯的末端连接类型。
StairsEndConnectionType
对象:StairsEndConnectionType connectionType = new StairsEndConnectionType();
StairsEndConnectionType
对象的属性:connectionType = StairsEndConnectionType.Round;
StairsEndConnectionType
对象应用于楼梯族:StairsType stairsType = //获取楼梯族类型对象
stairsType.EndConnection = connectionType;
以下代码示例演示如何将楼梯族的末端连接类型设置为圆形轮廓:
StairsType stairsType = //获取楼梯族类型对象
StairsEndConnectionType connectionType = new StairsEndConnectionType();
connectionType = StairsEndConnectionType.Round;
stairsType.EndConnection = connectionType;
该示例将在Revit中将楼梯族的末端连接类型设置为圆形轮廓。