<?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 add colors in color pallet using code? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535276#M43247</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi FlexSim Support Team,&lt;/P&gt;
 &lt;P&gt;How to add colors in color pallet using code?&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Feb 2022 06:35:35 GMT</pubDate>
    <dc:creator>__ANON_USER__1</dc:creator>
    <dc:date>2022-02-03T06:35:35Z</dc:date>
    <item>
      <title>How to add colors in color pallet using code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535276#M43247</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi FlexSim Support Team,&lt;/P&gt;
 &lt;P&gt;How to add colors in color pallet using code?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Feb 2022 06:35:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535276#M43247</guid>
      <dc:creator>__ANON_USER__1</dc:creator>
      <dc:date>2022-02-03T06:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add colors in color pallet using code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535277#M43248</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can find out how FlexSim does it manually. You explore the structure of adding colors to a pallet in the view structure. Here is question dealing with a similar request.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/questions/44310/where-to-find-quick-propertie-functions-in-the-tre.html"&gt;https://answers.flexsim.com/questions/44310/where-to-find-quick-propertie-functions-in-the-tre.html&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Feb 2022 06:46:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535277#M43248</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2022-02-03T06:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to add colors in color pallet using code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535278#M43249</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi Brijesh,&lt;/P&gt;&lt;P&gt;Here's a model in which the code inside it looks into a global table for adding a new color into the color palette. The function_s commands were taken from the add color button execution codes. You can refer to those commands to further customize the script as per your requirements.&lt;/P&gt;&lt;PRE&gt;Table GT = Table("GlobalTable1");
treenode ColorPallet = Model.find("Tools/ColorPalettes/ColorPalette2")
for(int k=1;k&amp;lt;=GT.numRows;k++)
{

function_s(ColorPallet, "addNewColor");
treenode colorNode = function_s(ColorPallet, "getColorNode", k);
colorNode.value = GT&lt;K&gt;[1];
treenode RValueNode = colorNode.subnodes[1];
RValueNode.value = GT&lt;K&gt;[2];

treenode GValueNode = colorNode.subnodes[2];
GValueNode.value = GT&lt;K&gt;[3];

treenode BValueNode = colorNode.subnodes[3];
BValueNode.value = GT&lt;K&gt;[4];
}

&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/K&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arun KR&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48231-colorpalettecode.fsm" target="_blank"&gt;ColorPaletteCode.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Feb 2022 07:00:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-add-colors-in-color-pallet-using-code/m-p/13535278#M43249</guid>
      <dc:creator>arunTTT2P</dc:creator>
      <dc:date>2022-02-03T07:00:03Z</dc:date>
    </item>
  </channel>
</rss>

