Autodesk.Revit.DB.Mechanical.DuctFittingAndAccessoryData是Revit中用于描述管道配件和附件的类。
Autodesk.Revit.DB.Mechanical.DuctFittingAndAccessoryData fittingData = new Autodesk.Revit.DB.Mechanical.DuctFittingAndAccessoryData();
fittingData.Angle = 45;
fittingData.Width = 12;
fittingData.Height = 8;
fittingData.Depth = 6;
fittingData.Diameter = 10;
fittingData.Offset = 2.5;
fittingData.EndConnectionType = Autodesk.Revit.DB.Mechanical.DuctEndTypeEnum.Discrete;
fittingData.StartConnectionType = Autodesk.Revit.DB.Mechanical.DuctEndTypeEnum.Round;
以上代码创建了一个新的管道配件/附件数据类的实例,并设置了其各个属性值。