Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66690

Re: CreateAddInCommandBinding for Duct/Pipe Sizing command

$
0
0

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,


Viewing all articles
Browse latest Browse all 66690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>