<?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 add a custom script to variants--varmain in AutoCAD Plant 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10788485#M20089</link>
    <description>&lt;P&gt;I agree.&amp;nbsp; It is best not to mix custom scripts with the out-of-the-box variants scripts.&lt;/P&gt;&lt;P&gt;Keep in mind that you can always call any custom script such as your &lt;STRONG&gt;elbow45&lt;/STRONG&gt; within the current script like so:&lt;/P&gt;&lt;P&gt;At the top of your script after you import packages...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Import Python Packages&lt;BR /&gt;from aqa.math import *&lt;BR /&gt;import math&lt;BR /&gt;from varmain.primitiv import *&lt;BR /&gt;from varmain.var_basic import *&lt;BR /&gt;from varmain.custom import *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Add Custom Python Packages&lt;BR /&gt;import os&lt;BR /&gt;import sys&lt;BR /&gt;sys.path.append(os.path.normpath(sys.PnP3dNativeContentCustomScriptsPath))&lt;BR /&gt;from &lt;STRONG&gt;elbow45&lt;/STRONG&gt; import *&lt;/P&gt;</description>
    <pubDate>Mon, 29 Nov 2021 16:15:34 GMT</pubDate>
    <dc:creator>ZZikic</dc:creator>
    <dc:date>2021-11-29T16:15:34Z</dc:date>
    <item>
      <title>How to add a custom script to variants--varmain</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10772555#M20086</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;In my customscripts folder, It has many scripsub. So I want to add them to&amp;nbsp; variants.zip---varmain like&amp;nbsp; I can import a script from variants.zip&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from varmain.supportsub.csgcsub.csgc001 import&amp;nbsp; CSGC001.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried many ways to add them. In my custom scrip, I make a copy a custom scrip, eg: elbow45.pyc then I insert them to variants.zip\varmain\arcsub\cpbdsub. However, It not working. Someone that success with it please tell for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thank to your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="traiduong014969_0-1637545651716.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/992098i0AA6B54DEE589C34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="traiduong014969_0-1637545651716.png" alt="traiduong014969_0-1637545651716.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 01:50:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10772555#M20086</guid>
      <dc:creator>traiduong014969</dc:creator>
      <dc:date>2021-11-22T01:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom script to variants--varmain</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10773010#M20087</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6377672"&gt;@traiduong014969&lt;/a&gt;&amp;nbsp;is there any specifc resaon to aad the custom script in to the varmain folder?You can import you sub script from other location also.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 08:30:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10773010#M20087</guid>
      <dc:creator>rajendra.prajapat</dc:creator>
      <dc:date>2021-11-22T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom script to variants--varmain</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10788416#M20088</link>
      <description>&lt;P&gt;I recommend not mixing custom files with installed files. It's easier to keep track of your files if they are separated into their own directories.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 15:45:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10788416#M20088</guid>
      <dc:creator>matt.worland</dc:creator>
      <dc:date>2021-11-29T15:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom script to variants--varmain</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10788485#M20089</link>
      <description>&lt;P&gt;I agree.&amp;nbsp; It is best not to mix custom scripts with the out-of-the-box variants scripts.&lt;/P&gt;&lt;P&gt;Keep in mind that you can always call any custom script such as your &lt;STRONG&gt;elbow45&lt;/STRONG&gt; within the current script like so:&lt;/P&gt;&lt;P&gt;At the top of your script after you import packages...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Import Python Packages&lt;BR /&gt;from aqa.math import *&lt;BR /&gt;import math&lt;BR /&gt;from varmain.primitiv import *&lt;BR /&gt;from varmain.var_basic import *&lt;BR /&gt;from varmain.custom import *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Add Custom Python Packages&lt;BR /&gt;import os&lt;BR /&gt;import sys&lt;BR /&gt;sys.path.append(os.path.normpath(sys.PnP3dNativeContentCustomScriptsPath))&lt;BR /&gt;from &lt;STRONG&gt;elbow45&lt;/STRONG&gt; import *&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 16:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/10788485#M20089</guid>
      <dc:creator>ZZikic</dc:creator>
      <dc:date>2021-11-29T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom script to variants--varmain</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/12959913#M20090</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm developing my custom script for pipe support customization.&lt;BR /&gt;For now, I use primitive like box, arc3d, cylinder, etc to create the support including the steel profile.&lt;BR /&gt;Is there any variant/varmain I can call in my script so there's no need to use primitive? Maybe function like modeling steel profile of Equal Angle, C Shape, H Shape profile, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 06:23:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/12959913#M20090</guid>
      <dc:creator>Fahad_Ghoerobi</dc:creator>
      <dc:date>2024-08-15T06:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a custom script to variants--varmain</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/12973030#M20091</link>
      <description>&lt;P&gt;I haven't found any additional Primitives and use the ones provided to us.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to create your own Profile Shape python files, where you can pass in the parameters to build an Equal Angle or other profile. Then in your support script, just call which ever profile you need for that support.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 18:32:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-add-a-custom-script-to-variants-varmain/m-p/12973030#M20091</guid>
      <dc:creator>matt.worland</dc:creator>
      <dc:date>2024-08-21T18:32:36Z</dc:date>
    </item>
  </channel>
</rss>

