<?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: Setting Pipe Size in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/13041529#M29256</link>
    <description>&lt;P&gt;Hello Allan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you was able to figure out the issue?, I have similar situation trying to update slope parameter&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 14:59:50 GMT</pubDate>
    <dc:creator>jose_loaiza5W6L6</dc:creator>
    <dc:date>2024-09-24T14:59:50Z</dc:date>
    <item>
      <title>Setting Pipe Size</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9976988#M29251</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;Happy New Year to you all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to change a pipe size using a pre-defined array. Everything goes fine throughout the code, until when I try to set the size parameter's value to any of the pre-defined values, an exception is thrown saying that the parameter is read-only. I already tried using transactions and not using them as well, but no further progress was made.&lt;/P&gt;&lt;P&gt;I searched for any other way on doing it but wasn't successful.&lt;/P&gt;&lt;P&gt;Can anyone come up with an idea?&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 17:16:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9976988#M29251</guid>
      <dc:creator>allan.moraes</dc:creator>
      <dc:date>2021-01-04T17:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Pipe Size</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977000#M29252</link>
      <description>&lt;P&gt;Try it out in the user interface.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you change the pipe size for an individual element?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think so.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can only change it for the entire run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The run controls the pipe size of its member elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore, the&amp;nbsp;pipe size of each individual element is read-only.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use RevitLookup to explore the model and research where this setting is stored in the pipe run, and set it there to modify all its member elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 17:20:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977000#M29252</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2021-01-04T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Pipe Size</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977023#M29253</link>
      <description>&lt;P&gt;I'm sorry Jeremy, maybe I didn't make myself clear.&lt;/P&gt;&lt;P&gt;I'm actually trying to change it's diameter, as it can be done by selecting a pipe in the project (as in the attached). Is that possible?&lt;/P&gt;&lt;P&gt;And you said about using a pipe run, how am I able to do that, I'm sorry for the newbie questions, but I've been facing real trouble to find information about Revit API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 17:30:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977023#M29253</guid>
      <dc:creator>allan.moraes</dc:creator>
      <dc:date>2021-01-04T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Pipe Size</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977098#M29254</link>
      <description>&lt;P&gt;You should use this BuiltInParameter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="210104_2100_005.jpg" style="width: 768px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/862272iFDADA0EC3C6B69B0/image-dimensions/768x531?v=v2" width="768" height="531" role="button" title="210104_2100_005.jpg" alt="210104_2100_005.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;In Python it looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;parameter = element.Parameter[BuiltInParameter.RBS_PIPE_DIAMETER_PARAM]
with DB.Transaction(doc, 'Set Pipe Diameter') as t:
    t.Start()
    parameter.Set(value)
    t.Commit()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 18:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977098#M29254</guid>
      <dc:creator>architect.bim</dc:creator>
      <dc:date>2021-01-04T18:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Pipe Size</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977121#M29255</link>
      <description>&lt;P&gt;Thank you guys. You helped a lot, now let me continue on my research here. By the way the code for that in C#&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4552025"&gt;@architect.bim&lt;/a&gt;&amp;nbsp;was:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Element pipeElement = pipe as Element;&lt;BR /&gt;Transaction trans = new Transaction(document);&lt;BR /&gt;trans.Start("Pipe Resize By Size");&lt;BR /&gt;Parameter sizeParameter = pipeElement.get_Parameter(BuiltInParameter.RBS_PIPE_DIAMETER_PARAM);&lt;BR /&gt;sizeParameter.Set(size);&lt;BR /&gt;trans.Commit();&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 18:10:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/9977121#M29255</guid>
      <dc:creator>allan.moraes</dc:creator>
      <dc:date>2021-01-04T18:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Pipe Size</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/13041529#M29256</link>
      <description>&lt;P&gt;Hello Allan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you was able to figure out the issue?, I have similar situation trying to update slope parameter&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 14:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/setting-pipe-size/m-p/13041529#M29256</guid>
      <dc:creator>jose_loaiza5W6L6</dc:creator>
      <dc:date>2024-09-24T14:59:50Z</dc:date>
    </item>
  </channel>
</rss>

