Hello,
You can get and set the duct diameter, width and height via these parameters:
Diameter:RBS_CURVE_DIAMETER_PARAM
Width: RBS_CURVE_WIDTH_PARAM
Height: RBS_CURVE_HEIGHT_PARAM
For example, you want to increase the width of your rectangle duct by 100mm. Here is the code fragment.
Parameter param = duct.get_Parameter(BuiltInParameter.RBS_CURVE_WIDTH_PARAM); double width = param.AsDouble(); param.Set(width + 100);
You can always create new ones also, using NewDuct and NewPipe method.
Hope it helps, Cheers,