<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set and retrieve a size of created ducts with API? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4344252#M79088</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the duct's shape from the duct's parameter.&lt;/P&gt;
&lt;P&gt;For the round duct, you can get and set the duct diameter via this parameter:&amp;nbsp;RBS_CURVE_DIAMETER_PARAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the rectangle duct, get and set the height and width via these two parameters: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Width:&amp;nbsp;RBS_CURVE_WIDTH_PARAM&lt;/P&gt;
&lt;P&gt;Height:&amp;nbsp;RBS_CURVE_HEIGHT_PARAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, you want to increase a round diameter by 10mm. Here is the code fragment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;
&lt;P&gt;Parameter param = duct.get_Parameter(BuiltInParameter.&lt;SPAN&gt;RBS_CURVE_DIAMETER_PARAM);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;double diameter = param.AsDouble();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;param.Set(diameter+10);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2013 10:48:06 GMT</pubDate>
    <dc:creator>Joe.Ye</dc:creator>
    <dc:date>2013-07-26T10:48:06Z</dc:date>
    <item>
      <title>How to set and retrieve a size of created ducts with API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4335642#M79087</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to set and retrieve a size(diameter of round ducts, height and width of rect ducts) of created ducts with API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using VS C#2010.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 04:54:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4335642#M79087</guid>
      <dc:creator>nur91m</dc:creator>
      <dc:date>2013-07-19T04:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set and retrieve a size of created ducts with API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4344252#M79088</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get the duct's shape from the duct's parameter.&lt;/P&gt;
&lt;P&gt;For the round duct, you can get and set the duct diameter via this parameter:&amp;nbsp;RBS_CURVE_DIAMETER_PARAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for the rectangle duct, get and set the height and width via these two parameters: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Width:&amp;nbsp;RBS_CURVE_WIDTH_PARAM&lt;/P&gt;
&lt;P&gt;Height:&amp;nbsp;RBS_CURVE_HEIGHT_PARAM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, you want to increase a round diameter by 10mm. Here is the code fragment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;
&lt;P&gt;Parameter param = duct.get_Parameter(BuiltInParameter.&lt;SPAN&gt;RBS_CURVE_DIAMETER_PARAM);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;double diameter = param.AsDouble();&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;param.Set(diameter+10);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2013 10:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4344252#M79088</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-07-26T10:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set and retrieve a size of created ducts with API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4345253#M79089</link>
      <description>Yes, it works. )) Thanks for your help Joe.Ye.</description>
      <pubDate>Sat, 27 Jul 2013 02:27:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/4345253#M79089</guid>
      <dc:creator>nur91m</dc:creator>
      <dc:date>2013-07-27T02:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set and retrieve a size of created ducts with API?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/12286969#M79090</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to increase the input parameter of duct cross section? since in my case it's not recatngular or oval, it needs more parameter to be defined.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:09:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-set-and-retrieve-a-size-of-created-ducts-with-api/m-p/12286969#M79090</guid>
      <dc:creator>seyedehmaedeh_aghili</dc:creator>
      <dc:date>2023-10-05T14:09:35Z</dc:date>
    </item>
  </channel>
</rss>

