<?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: Custom Python Supports calling other custom scripts in AutoCAD Plant 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/12356145#M21128</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8312876"&gt;@rajendra.prajapat&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Do You ever develop custom Python support based on company pipe support standards?&lt;BR /&gt;I'm planning to develop a custom Python support based on my company's pipe support standard.&lt;/P&gt;&lt;P&gt;Do You have any advice on how I do it and where to start?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 07:34:41 GMT</pubDate>
    <dc:creator>Fahad_YK</dc:creator>
    <dc:date>2023-11-06T07:34:41Z</dc:date>
    <item>
      <title>Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10643192#M21115</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;We currently use python scripts for custom supports. I have been trying to find a way to add new 'primitive' shapes that I can use in the scripts. For example, instead of creating 3 BOXES every time I need to make a channel shape, I just want to write a script creating our most used channel sizes, then call that channel script once in the final support script. Is this possible?&lt;/P&gt;&lt;P&gt;I have called OOTB python scripts into my custom support scripts just by including, for example, "from varmain.divsub.cbolt6_001 import CBOLT6_001". But I am not sure how to translate that to use a script from the custom path. I have also tried to add my own compiled custom scripts to the 'variants.zip' folder and then calling them using the same import style but didn't have success. I'm assuming because the activation of the OOTB and custom scripts are different.&lt;/P&gt;&lt;P&gt;If anyone could offer assistance it would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 17:38:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10643192#M21115</guid>
      <dc:creator>dmckagueN6VZ3</dc:creator>
      <dc:date>2021-09-23T17:38:42Z</dc:date>
    </item>
    <item>
      <title>Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10643974#M21116</link>
      <description>&lt;P&gt;&lt;FONT size="4" color="#17293f"&gt;You can refer to the following link:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4" color="#17293f"&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-scripting/m-p/6900759#M26125" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-scripting/m-p/6900759#M26125&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 01:23:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10643974#M21116</guid>
      <dc:creator>李榕华|Ronghua.LI</dc:creator>
      <dc:date>2021-09-24T01:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10644587#M21117</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7699538"&gt;@dmckagueN6VZ3&lt;/a&gt;&amp;nbsp; please use below lines to call the python script from custom script folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import os&lt;BR /&gt;import sys&lt;BR /&gt;sys.path.insert(0, 'C:\AutoCAD Plant 3D 2021 Content\CPak Common\CustomScripts')&lt;/P&gt;&lt;P&gt;from (script name) import *&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 08:48:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10644587#M21117</guid>
      <dc:creator>rajendra.prajapat</dc:creator>
      <dc:date>2021-09-24T08:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10644957#M21118</link>
      <description>&lt;P&gt;Our custom scripts and shared folder are on a network drive. Would it still work the same if I just enter the network path instead of the C:\ drive path or will it have to be stored local?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 12:12:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10644957#M21118</guid>
      <dc:creator>dmckagueN6VZ3</dc:creator>
      <dc:date>2021-09-24T12:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10644979#M21119</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7699538"&gt;@dmckagueN6VZ3&lt;/a&gt;&amp;nbsp;just replace the path and checked.if it will not work then please let me know.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 12:20:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10644979#M21119</guid>
      <dc:creator>rajendra.prajapat</dc:creator>
      <dc:date>2021-09-24T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10645060#M21120</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8312876"&gt;@rajendra.prajapat&lt;/a&gt;,&lt;BR /&gt;I see you are adding it to the first position, is there a benefit to adding it there instead of appending it to the end?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 12:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10645060#M21120</guid>
      <dc:creator>matt.worland</dc:creator>
      <dc:date>2021-09-24T12:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10645320#M21121</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/274274"&gt;@matt.worland&lt;/a&gt;&amp;nbsp;no benefits , it is just practice.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 14:47:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10645320#M21121</guid>
      <dc:creator>rajendra.prajapat</dc:creator>
      <dc:date>2021-09-24T14:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10645679#M21122</link>
      <description>&lt;P&gt;Thanks, one thing we have noticed is that it can be added multiple times. Be sure to check if it exists before adding:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;scriptpath = os.path.normpath(sys.PnP3dNativeContentCustomScriptsPath)
if scriptpath not in sys.path:
  sys.path.append(scriptpath)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Sep 2021 17:28:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10645679#M21122</guid>
      <dc:creator>matt.worland</dc:creator>
      <dc:date>2021-09-24T17:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10652580#M21123</link>
      <description>&lt;P&gt;Looks to be working from the network path given. I have not added it to a catalog or spec and tested yet but it works when testing the script with (TESTASCRIPT "").&lt;BR /&gt;However, I am having another issue now. I can call my secondary script and use it in another, but whenever I try to rotate or translate the object created with the script it will not run. Below is a small snippit of my test code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def TESTW4(s, N = 0.0, D = 3.50, L = 72.0, ID = 'SPS-W4', **kw):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Location Parameters&lt;BR /&gt;R1 = D / 2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Structural members&lt;BR /&gt;s1 = W4x13(s, E = L/2)&lt;BR /&gt;s1.rotateX(90)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I leave out the line "s1.rotateX(90)", it works fine and creates my W4x13 beam from my secondary script. But if I add that line, or a translate or anything else, I get the error "Geometry can not be generated with the given parameters.nil". There are no errors when registering the script though. Is this not possible?&lt;BR /&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 14:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10652580#M21123</guid>
      <dc:creator>dmckagueN6VZ3</dc:creator>
      <dc:date>2021-09-28T14:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10654043#M21124</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7699538"&gt;@dmckagueN6VZ3&lt;/a&gt;&amp;nbsp; check the indention error.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 04:12:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10654043#M21124</guid>
      <dc:creator>plantinfo28</dc:creator>
      <dc:date>2021-09-29T04:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10654069#M21125</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7699538"&gt;@dmckagueN6VZ3&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please use this&amp;nbsp;s1.rotateX(90.0).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 04:17:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10654069#M21125</guid>
      <dc:creator>rajendra.prajapat</dc:creator>
      <dc:date>2021-09-29T04:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10763383#M21126</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to creat quickly L or C or H channel without 2 BOX or 3 BOX in python ?&lt;/P&gt;&lt;P&gt;What is the command? if you have experience or you can creat quickly. Pls teach me.&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 13:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/10763383#M21126</guid>
      <dc:creator>phantri.bl</dc:creator>
      <dc:date>2021-11-17T13:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/12167602#M21127</link>
      <description>&lt;P&gt;In the sub-function return the body - I tried and it works.&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;def W4x13(s, N = 0.0, D = 3.50, L = 72.0, ID = 'SPS-W4', **kw):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;o1=BOX(..........)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return o1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Aug 2023 06:58:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/12167602#M21127</guid>
      <dc:creator>l_fatych</dc:creator>
      <dc:date>2023-08-13T06:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Python Supports calling other custom scripts</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/12356145#M21128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8312876"&gt;@rajendra.prajapat&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Do You ever develop custom Python support based on company pipe support standards?&lt;BR /&gt;I'm planning to develop a custom Python support based on my company's pipe support standard.&lt;/P&gt;&lt;P&gt;Do You have any advice on how I do it and where to start?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 07:34:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-supports-calling-other-custom-scripts/m-p/12356145#M21128</guid>
      <dc:creator>Fahad_YK</dc:creator>
      <dc:date>2023-11-06T07:34:41Z</dc:date>
    </item>
  </channel>
</rss>

