<?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 回复： How to set the transparency and RGB color of python script in AutoCAD Plant 3D Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11345655#M23409</link>
    <description>&lt;P&gt;Maybe have a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forum.dynamobim.com/t/change-layer-transparency-in-autocad-file/47346/2" target="_blank" rel="noopener"&gt;https://forum.dynamobim.com/t/change-layer-transparency-in-autocad-file/47346/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you have to wangle it a bit, I don't know how plant 3d will react to this script of&amp;nbsp;&lt;A href="https://forum.dynamobim.com/u/Paolo_Emilio_Serra1" target="_blank" rel="noopener"&gt;Paolo_Emilio_Serra1,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I guess its worth the try if needed so badly&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 05:30:04 GMT</pubDate>
    <dc:creator>stephanYN6LU</dc:creator>
    <dc:date>2022-08-08T05:30:04Z</dc:date>
    <item>
      <title>How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10301755#M23400</link>
      <description>&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;I want to use Python script to create components, but I can't find a way to set the transparency and RGB color of 3D solid.&lt;BR /&gt;Does any expert know the solution to this problem?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 04:37:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10301755#M23400</guid>
      <dc:creator>李榕华|Ronghua.LI</dc:creator>
      <dc:date>2021-05-10T04:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10306755#M23401</link>
      <description>&lt;P&gt;You cannot do this inside of Python scripts for parts.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 22:58:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10306755#M23401</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2021-05-11T22:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10309776#M23402</link>
      <description>&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;I know that there is no corresponding function in that document.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;But I found a way to set the color in &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593421"&gt;@h_eger&lt;/a&gt;&amp;nbsp; reply.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-plant-3d-forum/python-script-assistance/m-p/9653065#M44779" target="_blank"&gt;已解决: Re: Python script assistance - Autodesk Community - AutoCAD Plant 3D&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;I hope there are other functions that can meet this requirement.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 03:12:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10309776#M23402</guid>
      <dc:creator>李榕华|Ronghua.LI</dc:creator>
      <dc:date>2021-05-13T03:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10309856#M23403</link>
      <description>&lt;P&gt;Dear &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7246310"&gt;@李榕华|Ronghua.LI&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there are also limits in Python scripting this is where they are exceeded.&lt;BR /&gt;This function cannot be influenced with Python scripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1636004"&gt;@jabowabo&lt;/a&gt;&amp;nbsp; has already answered your question.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 04:46:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10309856#M23403</guid>
      <dc:creator>h_eger</dc:creator>
      <dc:date>2021-05-13T04:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10309866#M23404</link>
      <description>&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;All right. I gave up.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="book antiqua,palatino" size="5" color="#19254d"&gt;Thanks&amp;nbsp;&lt;/FONT&gt;&lt;SPAN style="color: #19254d; font-family: 'book antiqua', palatino; font-size: x-large;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #19254d; font-family: 'book antiqua', palatino; font-size: x-large;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/593421"&gt;@h_eger&lt;/a&gt;&lt;SPAN style="color: #19254d; font-family: 'book antiqua', palatino; font-size: x-large;"&gt;&amp;nbsp; and &lt;/SPAN&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1636004"&gt;@jabowabo&lt;/a&gt;&lt;SPAN style="color: #19254d; font-family: 'book antiqua', palatino; font-size: x-large;"&gt;&amp;nbsp; 's reply.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 04:56:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10309866#M23404</guid>
      <dc:creator>李榕华|Ronghua.LI</dc:creator>
      <dc:date>2021-05-13T04:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10629254#M23405</link>
      <description>&lt;P&gt;Hello everyone.&lt;BR /&gt;I was playing around with this color thing today again after finding out that it might work with changing colors of blocks inside a python script.&lt;/P&gt;&lt;P&gt;After some trail and error i did find out that .setColor() works perfectly on pythonscripts for plant 3D.&lt;/P&gt;&lt;P&gt;It uses the Color index RGB where for example 100=green 255=black and so on!&lt;/P&gt;&lt;P&gt;This is how i have done it on one of my scripts.&lt;/P&gt;&lt;P&gt;The only disadvantage is .uniteWith() is grabing the color of the object you are uniting to. So if you are looking for a colorful Python script you can group objects and then make a color for the group or just assign the color for each block and skip the unite part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Body2 = CYLINDER(s, R=D2/2.0, H=FL1, O=0.0).rotateY(90).translate((-L2/2.0-FL1, 0.0, 0.0))&lt;BR /&gt;Body2.setColor(12)&lt;BR /&gt;Body3 = CYLINDER(s, R=D2/2.0, H=FL1, O=0.0).rotateY(90).translate((L2/2.0, 0.0, 0.0))&lt;BR /&gt;Body3.setColor(12)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joakimlindh_1-1631875157847.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/966418i1D3F98973867680D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joakimlindh_1-1631875157847.png" alt="joakimlindh_1-1631875157847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 10:41:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10629254#M23405</guid>
      <dc:creator>joakim_lindh</dc:creator>
      <dc:date>2021-09-17T10:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10629929#M23406</link>
      <description>&lt;P&gt;&lt;FONT size="4" color="#17293f"&gt;Have you found a way to set the transparency of objects?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 15:40:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/10629929#M23406</guid>
      <dc:creator>李榕华|Ronghua.LI</dc:creator>
      <dc:date>2021-09-17T15:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11341734#M23407</link>
      <description>&lt;P&gt;Hi, I tried the obj.setColor(12), and there is no error in the "PLANTREGISTERCUSTOMSCRIPTS" command, I restarted the program and ran (TESTACPSCRIPT"SCRIPT") just to find nil, in the command line, with no items drawn. Is there a additional variable that needs to be imported to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sidenote: I have managed to set the color, I concur nou with Joakim that it works&lt;/P&gt;&lt;P&gt;Also, i have tried oobj.setTransparency(40) and have not worked&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 11:23:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11341734#M23407</guid>
      <dc:creator>stephanYN6LU</dc:creator>
      <dc:date>2022-08-05T11:23:49Z</dc:date>
    </item>
    <item>
      <title>回复： How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11343562#M23408</link>
      <description>&lt;P&gt;&lt;FONT size="4" color="#17293f"&gt;I tried the following functions without success.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;    s01.transparency(T)
    s01.Transparency(T)
    s01.setTransparency(T)
    s01.entityTransparency(T)
    s01.entitytransparency(T)
    s01.EntityTransparency(T)
    s01.setEntityTransparency(T)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 06 Aug 2022 06:28:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11343562#M23408</guid>
      <dc:creator>李榕华|Ronghua.LI</dc:creator>
      <dc:date>2022-08-06T06:28:31Z</dc:date>
    </item>
    <item>
      <title>回复： How to set the transparency and RGB color of python script</title>
      <link>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11345655#M23409</link>
      <description>&lt;P&gt;Maybe have a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forum.dynamobim.com/t/change-layer-transparency-in-autocad-file/47346/2" target="_blank" rel="noopener"&gt;https://forum.dynamobim.com/t/change-layer-transparency-in-autocad-file/47346/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you have to wangle it a bit, I don't know how plant 3d will react to this script of&amp;nbsp;&lt;A href="https://forum.dynamobim.com/u/Paolo_Emilio_Serra1" target="_blank" rel="noopener"&gt;Paolo_Emilio_Serra1,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I guess its worth the try if needed so badly&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 05:30:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-plant-3d-forum/how-to-set-the-transparency-and-rgb-color-of-python-script/m-p/11345655#M23409</guid>
      <dc:creator>stephanYN6LU</dc:creator>
      <dc:date>2022-08-08T05:30:04Z</dc:date>
    </item>
  </channel>
</rss>

