<?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: What are the states of the attribute &amp;quot;drawflags&amp;quot; under the visual tree in an object? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525533#M35493</link>
    <description>&lt;P&gt;Can anyone explain, what does this draw flags do?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2016 10:02:59 GMT</pubDate>
    <dc:creator>arunTTT2P</dc:creator>
    <dc:date>2016-09-26T10:02:59Z</dc:date>
    <item>
      <title>What are the states of the attribute "drawflags" under the visual tree in an object?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525531#M35491</link>
      <description>&lt;P&gt;The standard value is "0". A luminous plane gets the value "64". I can set this value for other objects, too. Which other states are there? What happens then? &lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 09:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525531#M35491</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2016-09-26T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: What are the states of the attribute "drawflags" under the visual tree in an object?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525532#M35492</link>
      <description>&lt;P&gt;It's a bit mask, you can find the (complete? &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@phil.bobo&lt;/A&gt;) list of flags by searching for &lt;EM&gt;DRAW_FLAG&lt;/EM&gt; under the main tree, the first result should lead you to &lt;EM&gt;MAIN:/project/exec/globals/fsmacros&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Here's the list in 16.2:&lt;/P&gt;&lt;PRE&gt;#define DRAW_FLAG_BILLBOARD_MASK 0x3
#define DRAW_FLAG_ONE_SIDED 0x4
#define DRAW_FLAG_TWO_SIDED 0x8
#define DRAW_FLAG_NO_DEPTH_TEST 0x10
#define DRAW_FLAG_REFLECTIVE 0x20
#define DRAW_FLAG_LUMINOUS 0x40
#define DRAW_FLAG_SCALE_CHILDREN 0x80
#define DRAW_FLAG_IGNORE_PICKING 0x100
#define DRAW_FLAG_NO_ON_DRAW 0x200
#define DRAW_FLAG_NO_ON_PRE_DRAW 0x400
#define DRAW_FLAG_SKIP_ALL_DRAW 0x800
#define DRAW_FLAG_CENTER_PORT_NAMES 0x1000
#define DRAW_FLAG_INOUT_PORT_NAMES 0x2000&lt;/PRE&gt;&lt;P&gt;So if you were to set the drawflags attribute to, for example:&lt;/P&gt;&lt;PRE&gt;DRAW_FLAG_LUMINOUS | DRAW_FLAG_SCALE_CHILDREN&lt;/PRE&gt;&lt;P&gt;You'd get the equivalent of checking the corresponding boxes in the object's properties.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 09:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525532#M35492</guid>
      <dc:creator>allister_wilson</dc:creator>
      <dc:date>2016-09-26T09:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: What are the states of the attribute "drawflags" under the visual tree in an object?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525533#M35493</link>
      <description>&lt;P&gt;Can anyone explain, what does this draw flags do?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2016 10:02:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525533#M35493</guid>
      <dc:creator>arunTTT2P</dc:creator>
      <dc:date>2016-09-26T10:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: What are the states of the attribute "drawflags" under the visual tree in an object?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525534#M35494</link>
      <description>&lt;P&gt;You can also set certain flags using bit-wise operators in FlexScript or C++:&lt;/P&gt;&lt;PRE&gt;// make an object draw luminous
set(drawflags(so()),get(drawflags(so())) | DRAW_FLAG_LUMINOUS);
&lt;/PRE&gt;
&lt;PRE&gt;// make an object not draw luminous
set(drawflags(so()),get(drawflags(so())) &amp;amp;~ DRAW_FLAG_LUMINOUS);
&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Sep 2016 16:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/what-are-the-states-of-the-attribute-quot-drawflags-quot-under/m-p/13525534#M35494</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-09-26T16:10:46Z</dc:date>
    </item>
  </channel>
</rss>

