<?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 Python - Pass value to test script in AutoCAD Plant 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8008288#M37970</link>
    <description>&lt;P&gt;Is possible to pass values to a test script?&amp;nbsp; Either directly or by reading from a text file. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 09:58:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-17T09:58:48Z</dc:date>
    <item>
      <title>Python - Pass value to test script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8008288#M37970</link>
      <description>&lt;P&gt;Is possible to pass values to a test script?&amp;nbsp; Either directly or by reading from a text file. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 09:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8008288#M37970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Betreff: Python - Pass value to test script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8010793#M37971</link>
      <description>&lt;P&gt;Dear @Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;these two variants for the test script are available to you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#0000FF"&gt;&lt;SPAN&gt;TESTACPSCRIPT / TESTACPSCRIPT1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;To test and check the geometry body we have the &lt;STRONG&gt;AutoLISP®&lt;/STRONG&gt; function &lt;STRONG&gt;TESTACPSCRIPT&lt;/STRONG&gt; and &lt;STRONG&gt;TESTACPSCRIPT1&lt;/STRONG&gt; created.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;The first parameter at booth script types is the variants name (like "CPFLR")&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;The next parameters for &lt;STRONG&gt;TESTACPSCRIPT&lt;/STRONG&gt; are couples of values: the fieldname and the needed value (like "D1" "300.5").&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;For &lt;STRONG&gt;TESTACPSCRIPT1&lt;/STRONG&gt; we have to set all the parameters inside 1 string (like it’s done inside catalog/spec dbs: “D1=300.5”)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;If a field isn't set the function takes the default values from the &lt;STRONG&gt;variants&lt;/STRONG&gt; definition.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;That looks like:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(TESTACPSCRIPT "CPFLR")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(TESTACPSCRIPT "CPFLR" "D1" "300.5")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(TESTACPSCRIPT "CPFLR" "L" "40" "D1" "300.5" "D2" "88.9")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Or&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(TESTACPSCRIPT1 "CPFLR")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(TESTACPSCRIPT1 "CPFLR" "D1=300.5")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(TESTACPSCRIPT1 "CPFLR" "L=40,D1=300.5,D2=88.9")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;Before we can use &lt;STRONG&gt;TESTACPSCRIPT&lt;/STRONG&gt; or &lt;STRONG&gt;TESTACPSCRIPT1&lt;/STRONG&gt; inside &lt;STRONG&gt;Plant 3D&lt;/STRONG&gt; we have to load &lt;STRONG&gt;PnP3dACPAdapter.arx&lt;/STRONG&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;That can be done with&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;(arxload "PnP3dACPAdapter.arx")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;or with the &lt;STRONG&gt;appload&lt;/STRONG&gt; function&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 08:23:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8010793#M37971</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2018-05-18T08:23:26Z</dc:date>
    </item>
    <item>
      <title>Betreff: Python - Pass value to test script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8010881#M37972</link>
      <description>&lt;P&gt;Thank you. Where is that excerpt from?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 08:55:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8010881#M37972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Betreff: Python - Pass value to test script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8011417#M37973</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 class=""&gt;Internal documentation of Autodesk development&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;</description>
      <pubDate>Fri, 18 May 2018 13:45:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-pass-value-to-test-script/m-p/8011417#M37973</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2018-05-18T13:45:26Z</dc:date>
    </item>
  </channel>
</rss>

