此类代表Revit中的机械管道管件。机械管道管件是连接机械管道元素(例如管道或风罩)的连接器。
该类没有公共方法,但您可以使用以下方法从MechanicalFitting获取链接的信息。
下面的示例演示如何创建一个新的机械管道管件并设置其属性。
// Create a new MechanicalFitting
MechanicalFitting newFitting = MechanicalFitting.Create(doc,
new XYZ(0, 0, 0), Pipe.Create(doc,
new XYZ(0, 0, -10), new XYZ(0, 0, 0)));
// Set the properties of the MechanicalFitting
newFitting.ConnectionType = ConnectorProfileType.WeldNeckFlange;
newFitting.EndDesignation = "WD-1234";
newFitting.Flow = FlowDirectionType.Out;
newFitting.Length = 10.0;
newFitting.Material = "Stainless steel";
newFitting.SystemClassification = SystemClassificationType.HVAC;