<?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: Testing a Python script - TESTACPSCRIPT in AutoCAD Plant 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9189309#M40870</link>
    <description>&lt;P&gt;Dear &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3499869"&gt;@DGRL&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first step:&lt;BR /&gt;create in your content folder&lt;BR /&gt;"AutoCAD Plant 3D 2020 Content" under "CPak Common" the folder with the name "CustomScripts"&lt;BR /&gt;All custom scripts are stored and processed in this folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;second step:&lt;BR /&gt;add the file "PnP3dACPAdapter.arx" via "APPLOAD" in AutoCAD Plant 3D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;third step:&lt;BR /&gt;execute the "PLANTREGISTERCUSTOMSCRIPTS" command in an open Plant 3D drawing.&lt;BR /&gt;We compile the processing file HE_BOX.pyc from the script HE_BOX.py.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fourth step:&lt;BR /&gt;with the LISP routine "(TESTACPSCRIPT "HE_BOX")&lt;BR /&gt;the script HE_BOX.pyc is loaded and executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that was it.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Dec 2019 06:56:45 GMT</pubDate>
    <dc:creator>h_eger</dc:creator>
    <dc:date>2019-12-08T06:56:45Z</dc:date>
    <item>
      <title>Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657146#M40861</link>
      <description>&lt;P&gt;I cannot get&amp;nbsp;TESTACPSCRIPT to run correctly, it returns nil. (similar to thread below).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- My script is&amp;nbsp;in 'C:\AutoCAD Plant 3D 2018 Content\CPak Common\CustomScripts'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- I have PnP3dACPAdapter.arx loaded&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- I have run&amp;nbsp;PLANTREGISTERCUSTOMSCRIPTS without errors and it has created the metadata files&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I run (TESTACPSCRIPT "BOX01") it returns 'nil'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do I begin troubleshooting this? Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-scripts/td-p/7086045" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-plant-3d-forum/custom-python-scripts/td-p/7086045&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 14:09:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657146#M40861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-01T14:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657255#M40862</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did find another post which talked about restarting Plant3D. So in this order...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;PLANTREGISTERCUSTOMSCRIPTS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. restart Plant3D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp;(arxload "PnP3dACPAdapter.arx")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;(TESTACPSCRIPT "Box01")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe I'm reproducing the steps correctly, so the error may be in my script? Hard to tell without a debugger??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from varmain.primitiv import *&lt;BR /&gt;from varmain.custom import *&lt;BR /&gt;from math import *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@Anonymous(Group="Valve", TooltipShort="Box", TooltipLong="Test Box as a Valve", LengthUnit="in")&lt;BR /&gt;@group("MainDimensions")&lt;BR /&gt;@param(L=LENGTH, TooltipShort="Length")&lt;BR /&gt;@param(W=LENGTH, TooltipLong="Width")&lt;BR /&gt;@param(H=LENGTH, TooltipShort="Height")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;def box01(s, L=1,W=1,H=1, OF=0,**kw):&lt;BR /&gt;s=BOX(s, L, W, H)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[TABS] where needed. like I said it compiles and generates the metadata. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 16:11:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657255#M40862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-01T16:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657292#M40863</link>
      <description>&lt;P&gt;Well, I'm getting there. After the last post I noticed some grammatical&amp;nbsp;mistakes and unneeded parameters. I&amp;nbsp;was also able to get an example script to work. But with my test script I'm getting this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Geometry can not be generated with the given parameters.nil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm curious&amp;nbsp;what the '**kw' are for at the end of the def statement? Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from varmain.primitiv import *&lt;BR /&gt;from varmain.custom import *&lt;BR /&gt;from math import *&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;@Anonymous(Group="Vessel", TooltipShort="Box", TooltipLong="Test Box as a Valve", LengthUnit="in")&lt;BR /&gt;@group("MainDimensions")&lt;BR /&gt;@param(L=LENGTH, TooltipShort="Length")&lt;BR /&gt;@param(W=LENGTH, TooltipShort="Width")&lt;BR /&gt;@param(H=LENGTH, TooltipShort="Height")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;def Box01(s, L=10,W=20,H=30,**kw):&lt;BR /&gt; s=BOX(s, L, W, H)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 17:30:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657292#M40863</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-01T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657302#M40864</link>
      <description>&lt;P&gt;Unbelievable! So as it turns out I couldn't&amp;nbsp;set the primitives default parameters directly. I feel like I'm starting the year off right! Now the hard part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;from varmain.primitiv import *&lt;BR /&gt;from varmain.custom import *&lt;BR /&gt;from math import *&lt;/P&gt;
&lt;P&gt;@Anonymous(Group="Vessel", TooltipShort="Box", TooltipLong="Test Box as a Valve", LengthUnit="in")&lt;BR /&gt;@group("MainDimensions")&lt;BR /&gt;@param(Lx=LENGTH, TooltipShort="Length")&lt;BR /&gt;@param(Wx=LENGTH, TooltipShort="Width")&lt;BR /&gt;@param(Hx=LENGTH, TooltipShort="Height")&lt;/P&gt;
&lt;P&gt;def Box01(s, Lx=10,Wx=20,Hx=30,**kw):&lt;BR /&gt; s=BOX(s, L=Lx, W=Wx, H=Hx)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jan 2018 17:45:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7657302#M40864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-01T17:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7662223#M40865</link>
      <description>&lt;P&gt;Dear @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;try this script:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;import aqa.math&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;BR /&gt;&lt;BR /&gt;@activate(Group="Vessel", TooltipShort="HE_Box", TooltipLong="Test Box as a Valve", LengthUnit="mm")&lt;BR /&gt;@group("MainDimensions")&lt;BR /&gt;@param(L=LENGTH, TooltipShort="Length")&lt;BR /&gt;@param(W=LENGTH, TooltipShort="Width")&lt;BR /&gt;@param(H=LENGTH, TooltipShort="Height")&lt;BR /&gt;@group(Name="meaningless enum")&lt;BR /&gt;@enum(1, "align X")&lt;BR /&gt;@enum(2, "align Y")&lt;BR /&gt;@enum(3, "align Z")&lt;BR /&gt;&lt;BR /&gt;def HE_BOX(s, D = 500.0, W = 250.0, H = 1000.0, ID = 'HE_BOX', **kw):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BOX(s, L=W, W=H, H=D).translate((0, 0, H / 2.0))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.setPoint((0, 0, 0), (0, 0, -1))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s.setPoint((0, 0, H), (0, 0, 1))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 21:01:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7662223#M40865</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2018-01-03T21:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7814829#M40866</link>
      <description>&lt;P&gt;Well, your script didn't work either!!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 07:45:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7814829#M40866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T07:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7816304#M40867</link>
      <description>&lt;P&gt;Dear @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;and it works !!!&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://autode.sk/2FdFVD8" target="_blank"&gt;http://autode.sk/2FdFVD8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 15:21:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7816304#M40867</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2018-02-28T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7925279#M40868</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When we use testacpscript in Plant what is in "" is not the name of the file but the description/name of the function.&lt;/P&gt;&lt;P&gt;So, in&amp;nbsp;in the&amp;nbsp;code is "HE_BOX" as below (attention to Caps).&lt;/P&gt;&lt;P&gt;def HE_BOX(s, D = 500.0, W = 250.0, H = 1000.0, ID = 'HE_BOX', **kw):&lt;/P&gt;&lt;P&gt;After entering "(arxload "PnP3dACPAdapter.arx")" in Plant command line i should use:&lt;/P&gt;&lt;P&gt;(testacpscript "&lt;SPAN&gt;HE_BOX&lt;/SPAN&gt;")&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:52:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/7925279#M40868</guid>
      <dc:creator>jpnoronha</dc:creator>
      <dc:date>2018-04-11T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9188886#M40869</link>
      <description>&lt;P&gt;EDIT EDIT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just got it to run&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the thread&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593421"&gt;@h_eger&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i ask you what commands you used to make the script run?&lt;/P&gt;&lt;P&gt;I followed the whole thread but the script you provided in blue does not seems to work in P3D 2020&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2019 16:51:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9188886#M40869</guid>
      <dc:creator>DGRL</dc:creator>
      <dc:date>2019-12-07T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9189309#M40870</link>
      <description>&lt;P&gt;Dear &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3499869"&gt;@DGRL&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first step:&lt;BR /&gt;create in your content folder&lt;BR /&gt;"AutoCAD Plant 3D 2020 Content" under "CPak Common" the folder with the name "CustomScripts"&lt;BR /&gt;All custom scripts are stored and processed in this folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;second step:&lt;BR /&gt;add the file "PnP3dACPAdapter.arx" via "APPLOAD" in AutoCAD Plant 3D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;third step:&lt;BR /&gt;execute the "PLANTREGISTERCUSTOMSCRIPTS" command in an open Plant 3D drawing.&lt;BR /&gt;We compile the processing file HE_BOX.pyc from the script HE_BOX.py.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;fourth step:&lt;BR /&gt;with the LISP routine "(TESTACPSCRIPT "HE_BOX")&lt;BR /&gt;the script HE_BOX.pyc is loaded and executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that was it.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 06:56:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9189309#M40870</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2019-12-08T06:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9230865#M40871</link>
      <description>&lt;P&gt;Thank you sir,&lt;/P&gt;&lt;P&gt;It is very useful..&lt;/P&gt;&lt;P&gt;Please keep sharing python related more information whatever you have!!!!&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 14:03:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9230865#M40871</guid>
      <dc:creator>jignesh.chauhan</dc:creator>
      <dc:date>2020-01-04T14:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9246321#M40872</link>
      <description>&lt;P&gt;Good Day. I would like to ask.. What is the use of the group declared meaningless enum as well as the align values below it. Still new this custom scripting.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 06:36:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9246321#M40872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-13T06:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9248376#M40873</link>
      <description>&lt;P&gt;I've followed this procedure with the same script with HE_Box but it still returns a nil value upon testing. I've tried a lot of scripts that I believe works but when I run it in on my AutoCAD then check the catalog, it doesn't appear at all.&lt;BR /&gt;I'm really lost in this process. Is their any setup or procedure to perform first before using the command or is their any standard format to be followed in syntax?? Because I followed all of the instruction here and still doesn't generate the component..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 00:38:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/9248376#M40873</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-14T00:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/10241767#M40874</link>
      <description>&lt;P&gt;I cannot see a .pyc file appearing in the CustomScripts directory. Should there be?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should the file with the script not end in .txt, but .py?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 16:53:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/10241767#M40874</guid>
      <dc:creator>mlandmann</dc:creator>
      <dc:date>2021-04-15T16:53:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/10241849#M40875</link>
      <description>&lt;P&gt;Dear &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8272942"&gt;@mlandmann&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the file extension is * .PY&lt;BR /&gt;After you have executed the command "PLANTREGISTERCUSTOMSCRIPT" (in Plant 3D) the `* .PYC files are created.&lt;BR /&gt;Please read the documentation through which I sent you in the other post!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 17:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/10241849#M40875</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2021-04-15T17:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/10425364#M40876</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created a simple Python app for testing custom scripts outside Plant 3D. It won't let you test if geometry is generated as intended, you can however find and fix syntax errors without the need to restart Plant 3D each time you change your script. The app covers all the primitive shapes, but another shapes from custom scripts or decompiled Plant scripts can be added running additional script.&lt;/P&gt;&lt;P&gt;&lt;A title="Plant 3D Script Tester" href="https://github.com/AndrzejLach89/AutoCAD-Plant-3D-Script-Tester" target="_self"&gt;https://github.com/AndrzejLach89/AutoCAD-Plant-3D-Script-Tester&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 06:56:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/10425364#M40876</guid>
      <dc:creator>andrzej.lach89</dc:creator>
      <dc:date>2021-06-28T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12040480#M40877</link>
      <description>&lt;P&gt;Hi, I am trying to make some modifications to my script to test if I get the right geometry. But everytime i make a change and load the script into P3D using PLANTREGISTERCUSTOMSCRIPT, and followup with TESTACPSCRIPT, it shows me the very first version of the script geometry. The changes are not reflected in the geometry. What am I doing wrong here?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 06:47:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12040480#M40877</guid>
      <dc:creator>theshoaib.mughal</dc:creator>
      <dc:date>2023-06-17T06:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12040748#M40878</link>
      <description>&lt;P&gt;Okay, Now I have figured out a way to adjust the script. The geometry is all good and finalized. Now, I am having trouble getting this script component in the catalog. I don't know what to do here. I have compiled the script, produced the standard images, and TESTACPSCRIPT as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="PNG_32" style="width: 32px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228941i8AD0DCD38FAFD20D/image-size/large?v=v2&amp;amp;px=999" role="button" title="LD_FO_C_32.png" alt="PNG_32" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PNG_32&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="PNG_64" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228944iC51EC66C702036E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="LD_FO_C_64.png" alt="PNG_64" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PNG_64&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="PNG_200" style="width: 200px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228942iD43D641316CB4B6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="LD_FO_C_200.png" alt="PNG_200" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PNG_200&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="PythonScript MetaData" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228946i628D54DCAD1F5194/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScriptMetaData.png" alt="PythonScript MetaData" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PythonScript MetaData&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="CustomCatalog and its Content Folder (housing the PNGs)" style="width: 617px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228947iDCED5005E9132511/image-size/large?v=v2&amp;amp;px=999" role="button" title="CatalogFolder.png" alt="CustomCatalog and its Content Folder (housing the PNGs)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;CustomCatalog and its Content Folder (housing the PNGs)&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="CreateComponent window from Catalog" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228949i8620836307B356E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="CreateCustomPart.png" alt="CreateComponent window from Catalog" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;CreateComponent window from Catalog&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="CustomScript Folder with compiled script in it" style="width: 617px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228948i1C7B7A5BDF24CD53/image-size/large?v=v2&amp;amp;px=999" role="button" title="CustomScriptFolder.png" alt="CustomScript Folder with compiled script in it" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;CustomScript Folder with compiled script in it&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I go to the Specs editor and try to Create a New Component, it shows me my component there but without any image. What is this and why is this? Any help??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the screenshots&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 11:40:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12040748#M40878</guid>
      <dc:creator>theshoaib.mughal</dc:creator>
      <dc:date>2023-06-17T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12044454#M40879</link>
      <description>&lt;P&gt;Try to change the name of your py file to match the name of your function LD_FO_C.py&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 15:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12044454#M40879</guid>
      <dc:creator>matt.worland</dc:creator>
      <dc:date>2023-06-19T15:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Testing a Python script - TESTACPSCRIPT</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12049898#M40880</link>
      <description>&lt;P&gt;Testing script command is (TESTACPSCRIPT "xYZabCd"). Remember the quoted words "&lt;SPAN&gt;xYZabCd" are the name of your function butt the name of script file. Also it's case sensitive.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this thing is not the problem then you have problem with code. Keep in mind 'PKANTREGISTERCUSTOMSCRIPT' command throws error only for improper syntax meaning of you forgot a comma, choosing a bracket etc. &amp;nbsp;It doesn't give error in geometry problem. Say for example you are subtracting one box from another but the according to your code the boxes are placed ina such a way that they do not overlap anywhere. This way testing will result in error because that's now an autocad function error. Also, indentation is very important if you use conditions such as 'if' or 'while' etc. It sometimes happen that you misplace an indentation and that may result a line of coke either exit the condition barrier or enters it which is not originally intended. Check for those. Use Notepad++ for editing (after changing is language to python)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope you got the idea&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 12:18:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/testing-a-python-script-testacpscript/m-p/12049898#M40880</guid>
      <dc:creator>theshoaib.mughal</dc:creator>
      <dc:date>2023-06-21T12:18:40Z</dc:date>
    </item>
  </channel>
</rss>

