<?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: If createinstance() is deprecated, how to create a plane via code? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585723#M82681</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you, 
 &lt;A rel="user" href="https://answers.flexsim.com/users/32023/sebascava.html" nodeid="32023"&gt;@Sebastián Cañas&lt;/A&gt; ! However, this brings me to another question. If a Visual Tool is a generic visual object, how to distinguish among the possibilities? (Text, Billboard, Plane, USD Stage, ...). Relying on shape numbers is a weak modeling approach, as those lists might change from version to version. It is the same that happens with frame and shape references for people or flowItems. I was looking for a more robust approach. Would you have any suggestions, please? Thank you!
&lt;/DIV&gt;</description>
    <pubDate>Fri, 20 Dec 2024 14:56:54 GMT</pubDate>
    <dc:creator>guiroehe</dc:creator>
    <dc:date>2024-12-20T14:56:54Z</dc:date>
    <item>
      <title>If createinstance() is deprecated, how to create a plane via code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585721#M82679</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 25.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello,&lt;BR /&gt;the documentation states createinstance() is deprecated and Object.create() should be used instead. However, a plane is a library/VisualTool, so not recognized as Object. What is the current recommended method to create a plane via code?&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Dec 2024 21:57:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585721#M82679</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2024-12-19T21:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: If createinstance() is deprecated, how to create a plane via code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585722#M82680</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/44384/guiroehe.html" nodeid="44384"&gt;@Gui Vaccaro&lt;/A&gt; ,&lt;/P&gt;&lt;PRE&gt;Object.create("VisualTool");&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Dec 2024 22:10:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585722#M82680</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2024-12-19T22:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: If createinstance() is deprecated, how to create a plane via code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585723#M82681</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you, 
 &lt;A rel="user" href="https://answers.flexsim.com/users/32023/sebascava.html" nodeid="32023"&gt;@Sebastián Cañas&lt;/A&gt; ! However, this brings me to another question. If a Visual Tool is a generic visual object, how to distinguish among the possibilities? (Text, Billboard, Plane, USD Stage, ...). Relying on shape numbers is a weak modeling approach, as those lists might change from version to version. It is the same that happens with frame and shape references for people or flowItems. I was looking for a more robust approach. Would you have any suggestions, please? Thank you!
&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Dec 2024 14:56:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585723#M82681</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2024-12-20T14:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: If createinstance() is deprecated, how to create a plane via code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585724#M82682</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/44384/guiroehe.html" nodeid="44384"&gt;@Gui Vaccaro&lt;/A&gt; , after creating a &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/25.0/Reference/3DObjects/VisualTool/VisualTool.html#app" target="_blank"&gt;Visual Tool&lt;/A&gt; you could set the property &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/25.0/Reference/PropertiesPanels/VisualPanels/VisualTool/VisualTool.html#visualDisplay" target="_blank"&gt;Visual Display&lt;/A&gt; of it to create any of the shapes that's available. For example using this code:&lt;/P&gt;&lt;PRE&gt;Object vt = Object.create("VisualTool");
vt.setProperty("VisualDisplay", "Text");&lt;/PRE&gt;&lt;P&gt;However, then you should set size, color or any other property in order to fit your needs using the methods for &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/25.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#app" target="_blank"&gt;Object Class&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;As far as I checked, objects like USD Stage or Walls are not part of the VisualTool, you should check the proper class to use Object.create().&lt;/P&gt;&lt;P&gt;I think that could be the approach I'd suggest with what's available right now.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Dec 2024 21:01:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585724#M82682</guid>
      <dc:creator>SebastianCanasV</dc:creator>
      <dc:date>2024-12-20T21:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: If createinstance() is deprecated, how to create a plane via code?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585725#M82683</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you, 
 &lt;A rel="user" href="https://answers.flexsim.com/users/32023/sebascava.html" nodeid="32023"&gt;@Sebastián Cañas&lt;/A&gt;​!
&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Dec 2024 17:37:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/if-createinstance-is-deprecated-how-to-create-a-plane-via-code/m-p/13585725#M82683</guid>
      <dc:creator>guiroehe</dc:creator>
      <dc:date>2024-12-30T17:37:26Z</dc:date>
    </item>
  </channel>
</rss>

