<?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: Pipe Support - Python Custom Script Component - Show Calculated Value in Plant3D Component Properties in AutoCAD Plant 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/13264821#M17294</link>
    <description>&lt;P&gt;Hello!Did you found any solution?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 13:35:43 GMT</pubDate>
    <dc:creator>alexandru_stroeV3CKE</dc:creator>
    <dc:date>2025-01-16T13:35:43Z</dc:date>
    <item>
      <title>Pipe Support - Python Custom Script Component - Show Calculated Value in Plant3D Component Properties</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/11227223#M17291</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created custom pipe support with python scripting, everything is working ok, I have my input values:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sebastianoleksy_0-1654860595427.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1078402i71A0777B8D8B143E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sebastianoleksy_0-1654860595427.png" alt="sebastianoleksy_0-1654860595427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And here is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sebastianoleksy_1-1654867400507.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1078462i2CE5FC7D0CB55934/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sebastianoleksy_1-1654867400507.png" alt="sebastianoleksy_1-1654867400507.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the entered by user "L" , the script is calculating "PL" length of the inner profile, it changes in increments of 50mm as those are&amp;nbsp;prefabricated inner profile lengths.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sebastianoleksy_0-1654867369392.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1078461i053F8FD4B2ED0302/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sebastianoleksy_0-1654867369392.png" alt="sebastianoleksy_0-1654867369392.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm aware that is probably not the most elegant way of writing this in code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; But it works and it changes inner profile length in desired way, and everything checks out on model. My problem is following, now I need some way to return this calculated “PL” value to show it in Plant3D component properties, and make it so it would update when I change the "L" value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 13:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/11227223#M17291</guid>
      <dc:creator>sebastian.oleksy</dc:creator>
      <dc:date>2022-06-10T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe Support - Python Custom Script Component - Show Calculated Value in Plant3D Component Properties</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/11233708#M17292</link>
      <description>&lt;P&gt;You can add as many functions to the file as you want, just put it above the main functions 'activate'.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 10:34:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/11233708#M17292</guid>
      <dc:creator>George.Endrulat</dc:creator>
      <dc:date>2022-06-14T10:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe Support - Python Custom Script Component - Show Calculated Value in Plant3D Component Properties</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/11245792#M17293</link>
      <description>&lt;P&gt;thank you very much George for reply, but I'm not seeing how I could use that in my case. Maybe you could explain it a little bit more, it might be that I'm not seeing something obvious since my coding experience is close to zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My "PL" value is calculated based on variables defined as @Anonymous, and from what I know in order to show it on Plant3D I would need to define the "PL" as&amp;nbsp;@Anonymous with some initial value. But by doing this the "PL" won't update based on calculations and will just stay with that initial value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you suggesting to move calculating the "PL" to the function before the "activate", and then use that value when I define "PL" as @Anonymous? But then how to use the variables defined in @Anonymous that are used to calculate "PL"?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 09:24:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/11245792#M17293</guid>
      <dc:creator>sebastian.oleksy</dc:creator>
      <dc:date>2022-06-20T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe Support - Python Custom Script Component - Show Calculated Value in Plant3D Component Properties</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/13264821#M17294</link>
      <description>&lt;P&gt;Hello!Did you found any solution?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 13:35:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/13264821#M17294</guid>
      <dc:creator>alexandru_stroeV3CKE</dc:creator>
      <dc:date>2025-01-16T13:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pipe Support - Python Custom Script Component - Show Calculated Value in Plant3D Component Properties</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/13280743#M17295</link>
      <description>&lt;P&gt;Hello, I would also like to know if have found the solution for this as well?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 19:10:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/pipe-support-python-custom-script-component-show-calculated/m-p/13280743#M17295</guid>
      <dc:creator>jeremypatterson</dc:creator>
      <dc:date>2025-01-24T19:10:37Z</dc:date>
    </item>
  </channel>
</rss>

