<?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 Do I Remove People Module Components? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510155#M23387</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you add any of the objects from the People section of the library (3D or Process Flow) then a bunch of other People objects will be added to your model to facilitate building a People model.&lt;/P&gt;&lt;P&gt;Here's a script you could run to remove any People objects in your model:&lt;/P&gt;&lt;PRE&gt;Array types = ["Locations", "Staff", "Transports", "Equipment"];
treenode tools = Model.find("Tools");
for (int i = 1; i &amp;lt;= types.length; i++) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;string type = types&lt;I&gt;;
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;treenode group = tools.find("Groups/" + type);
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (group) group.destroy();
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;treenode list = tools.find("GlobalLists/" + type);
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (list) list.destroy();
}
Array otherNodes = ["People", "PeopleSettings", "PeopleTables", "ModuleDependencies/People", "ColorPalettes/ClothesPalette", "ColorPalettes/HairPalette", "DownBehaviors/OffSchedule", "DownBehaviors/Lunch", "DownBehaviors/Break1", "DownBehaviors/Break2",&amp;nbsp;
"Toolbox/Lists/People", "Toolbox/Groups/People", "Toolbox/DownBehavior/People", "Toolbox/ColorPalettes/People", "Toolbox/PeopleTables"];
for (int i = 1; i &amp;lt;= otherNodes.length; i++) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;tools.find(otherNodes&lt;I&gt;)?.destroy();
}
Array peopleObjs = [];
forobjecttreeunder(model()) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;string class = getname(first(classes(a)));
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (class.startsWith("People::")) peopleObjs.push(a);
}
for (int i = 1; i &amp;lt;= peopleObjs.length; i++)
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;peopleObjs&lt;I&gt;.destroy();
treenode flows = tools.find("ProcessFlow");
if (flows) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;for (int i = flows.subnodes.length; i &amp;gt; 0; i--) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;treenode flow = flows.subnodes&lt;I&gt;;
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (getvarnum(flow, "type") == 4 || getvarnum(flow, "PeopleArrivalsFlow") == 1)
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;flow.destroy();
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;}
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 18 Nov 2021 22:26:49 GMT</pubDate>
    <dc:creator>Matthew_Gillespie</dc:creator>
    <dc:date>2021-11-18T22:26:49Z</dc:date>
    <item>
      <title>How Do I Remove People Module Components?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510153#M23385</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;For some reason my model now has People module 'items' in it..&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1637269579732.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508148iD2845C0D3BD025FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="1637269579732.png" alt="1637269579732.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I am not using any people module items. I believe they came in when I created a visual shape and pointed it to modules\People\shapes\locations\metalchair.3ds.&lt;/P&gt;
 &lt;P&gt;FlexSim is not letting me remove any of these items since they are protected. How do I remove them? They are not needed. Thanks - Stan&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Nov 2021 21:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510153#M23385</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-18T21:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Remove People Module Components?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510154#M23386</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 I removed them by deleting their nodes in the tree. For some I had to unprotect them first. My concern is there are some remnants in the bowels of the model that may cause problems later. Is there a better way? 
&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Nov 2021 21:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510154#M23386</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-18T21:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Remove People Module Components?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510155#M23387</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you add any of the objects from the People section of the library (3D or Process Flow) then a bunch of other People objects will be added to your model to facilitate building a People model.&lt;/P&gt;&lt;P&gt;Here's a script you could run to remove any People objects in your model:&lt;/P&gt;&lt;PRE&gt;Array types = ["Locations", "Staff", "Transports", "Equipment"];
treenode tools = Model.find("Tools");
for (int i = 1; i &amp;lt;= types.length; i++) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;string type = types&lt;I&gt;;
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;treenode group = tools.find("Groups/" + type);
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (group) group.destroy();
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;treenode list = tools.find("GlobalLists/" + type);
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (list) list.destroy();
}
Array otherNodes = ["People", "PeopleSettings", "PeopleTables", "ModuleDependencies/People", "ColorPalettes/ClothesPalette", "ColorPalettes/HairPalette", "DownBehaviors/OffSchedule", "DownBehaviors/Lunch", "DownBehaviors/Break1", "DownBehaviors/Break2",&amp;nbsp;
"Toolbox/Lists/People", "Toolbox/Groups/People", "Toolbox/DownBehavior/People", "Toolbox/ColorPalettes/People", "Toolbox/PeopleTables"];
for (int i = 1; i &amp;lt;= otherNodes.length; i++) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;tools.find(otherNodes&lt;I&gt;)?.destroy();
}
Array peopleObjs = [];
forobjecttreeunder(model()) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;string class = getname(first(classes(a)));
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (class.startsWith("People::")) peopleObjs.push(a);
}
for (int i = 1; i &amp;lt;= peopleObjs.length; i++)
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;peopleObjs&lt;I&gt;.destroy();
treenode flows = tools.find("ProcessFlow");
if (flows) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;for (int i = flows.subnodes.length; i &amp;gt; 0; i--) {
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;treenode flow = flows.subnodes&lt;I&gt;;
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;if (getvarnum(flow, "type") == 4 || getvarnum(flow, "PeopleArrivalsFlow") == 1)
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;flow.destroy();
&lt;SPAN style="white-space:pre;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;}
}&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Nov 2021 22:26:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510155#M23387</guid>
      <dc:creator>Matthew_Gillespie</dc:creator>
      <dc:date>2021-11-18T22:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Remove People Module Components?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510156#M23388</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Understood and thank you! - Stan
&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Nov 2021 13:42:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-do-i-remove-people-module-components/m-p/13510156#M23388</guid>
      <dc:creator>stan_e_davis</dc:creator>
      <dc:date>2021-11-19T13:42:27Z</dc:date>
    </item>
  </channel>
</rss>

