The StructuralSectionPipeStandard class is a structural section component in Autodesk Revit. It is used to represent standard pipe sections in a structural model.
Diameter (read-only): the diameter of the pipe section in feet.WallThickness (read-only): the thickness of the pipe section's wall in feet.Duplicate(): creates a copy of the StructuralSectionPipeStandard object.Dispose(): releases the resources associated with the StructuralSectionPipeStandard object.The StructuralSectionPipeStandard object can be used to define the properties of pipe sections used in a structural model. It is used in conjunction with other structural components like beams and columns.
// create a new standard pipe section
StructuralSectionPipeStandard pipeSection = new StructuralSectionPipeStandard(0.5, 0.03);
// get the diameter of the pipe section
double diameter = pipeSection.Diameter;
// get the wall thickness of the pipe section
double wallThickness = pipeSection.WallThickness;
// create a copy of the pipe section
StructuralSectionPipeStandard copiedPipeSection = pipeSection.Duplicate();
// release resources associated with the pipe section
pipeSection.Dispose();