<?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: Light bulb v.s. Visible in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762632#M7535</link>
    <description>&lt;P&gt;It's possible that isLightBulbOn can return True and isVisible will return False.&amp;nbsp; The isLightBulbOn gets and sets whether the eye (which used to be a light bulb) is turned on or not.&amp;nbsp; The isVisible indicates the current visibility state of the body.&amp;nbsp; The browser below illustrates a case where isLightBulbOn is True but isVisible is False because the body is set to display but the light bulb for its parent component is off, which turns off the visibility of everything in the component.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Nov 2021 06:00:32 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2021-11-17T06:00:32Z</dc:date>
    <item>
      <title>Light bulb v.s. Visible</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762487#M7534</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the difference between isLightBulbOn and isVisible? I have tried both of them on a body under root component and it seems like they do exactly the same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody explain the difference(s)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 03:46:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762487#M7534</guid>
      <dc:creator>j.han97</dc:creator>
      <dc:date>2021-11-17T03:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Light bulb v.s. Visible</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762632#M7535</link>
      <description>&lt;P&gt;It's possible that isLightBulbOn can return True and isVisible will return False.&amp;nbsp; The isLightBulbOn gets and sets whether the eye (which used to be a light bulb) is turned on or not.&amp;nbsp; The isVisible indicates the current visibility state of the body.&amp;nbsp; The browser below illustrates a case where isLightBulbOn is True but isVisible is False because the body is set to display but the light bulb for its parent component is off, which turns off the visibility of everything in the component.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 06:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762632#M7535</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-11-17T06:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Light bulb v.s. Visible</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762662#M7536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;For my understanding, isVisible represents the actual state of the visibility of the object (body/occurrence), while isLightBulbOn might not. In a more direct way, if isVisible is True, the object must be visible. If isLightBulbOn is True, the object might not be visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Is this statement correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have several questions in mind but I guess I can just experiment with it myself. Just one question I would like to ask: Is there any case/exception where setting these properties will fail? For example, when parent component has isVisible as False and I try to let one of its bodies to have isVisible = True.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 06:30:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762662#M7536</guid>
      <dc:creator>j.han97</dc:creator>
      <dc:date>2021-11-17T06:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Light bulb v.s. Visible</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762711#M7537</link>
      <description>&lt;P&gt;I would have to experiment to see what the behavior is when setting the isVisible property.&amp;nbsp; I know that originally, the BrepBody object only had the isVisible property and later the isLightBulbOn was added when it was recognized there is different behavior and it wasn't possible to get the current visibility state.&amp;nbsp; Because the isVisible property existed as a read-write property, changing it to read-only would break existing programs.&amp;nbsp; I just did a test and setting the isVisible property is the equivalent of setting the isLightBulbOn but getting it always returns the current state.&amp;nbsp; This means there are cases where you can set it to True but when you get it it will return False.&amp;nbsp; It's best to consider IsVisible as read-only and use IsLightBulbOn to change the visibilty.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 06:56:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762711#M7537</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2021-11-17T06:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Light bulb v.s. Visible</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762766#M7538</link>
      <description>&lt;P&gt;I see. Based on what I found in my testing and the information from Brian:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. In many situations, isVisible property cannot be set (return error). Hence, it is best to be used as a read only property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I can set a child occurrence's isLightBulbOn property to TRUE when its parent occurrence's isLightBulbOn property is FALSE. However, this will not change anything, i.e., the child occurrence is still not visible, and the value of child occurrence's isLightBulbOn property remains to be FALSE.&lt;/P&gt;&lt;P&gt;This means that in order to show a hidden object, one has to check the isLightBulbOn property of its paths (parent, parent of parent, etc) as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;&amp;nbsp;for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 07:35:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/light-bulb-v-s-visible/m-p/10762766#M7538</guid>
      <dc:creator>j.han97</dc:creator>
      <dc:date>2021-11-17T07:35:44Z</dc:date>
    </item>
  </channel>
</rss>

