<?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: Orphan Attributes! in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8897735#M13901</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3865419"&gt;@JeromeBriot&lt;/a&gt;. It seems that I need to read the documentation more carefully!&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 08:31:02 GMT</pubDate>
    <dc:creator>nnikbin</dc:creator>
    <dc:date>2019-07-09T08:31:02Z</dc:date>
    <item>
      <title>Orphan Attributes!</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8895706#M13899</link>
      <description>&lt;P&gt;Attributes will remain in design after deletion of their parents. In fact their parents will become nullptr (in C++). It can potentially cause exceptions if you iterate through all design attributes and try to work with their parents without nullptr checking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it by design or a bug?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 12:59:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8895706#M13899</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2019-07-08T12:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Orphan Attributes!</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8897653#M13900</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taken from &lt;A href="http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-BAF017FE-10B8-4612-BDE2-0EF5D4C6F800" target="_blank" rel="noopener"&gt;the documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Something that might seem a little odd at first is that it is possible to get an attribute whose parent entity no longer exists. In that case, calling the parent property will return null. One example of where you can get an unattached attribute is in the case of B-Rep entities (faces, edges, and vertices of a model). When an attribute is created on a B-Rep entity it is never automatically deleted because the lifetime of that entity is unknown. For example, if you add an attribute to an edge and then the edge is filleted, that edge is consumed and no longer exists in the model and the parent property of the attribute will return null. However, it's possible that the edge can come back in the future; the fillet can be deleted or suppressed and then the parent property of the attribute will return the edge. Because attributes can exist without an owner, it's important to always check the return value of the parent property to verify that you did get back an entity.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 07:51:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8897653#M13900</guid>
      <dc:creator>JeromeBriot</dc:creator>
      <dc:date>2019-07-09T07:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Orphan Attributes!</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8897735#M13901</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3865419"&gt;@JeromeBriot&lt;/a&gt;. It seems that I need to read the documentation more carefully!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 08:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/orphan-attributes/m-p/8897735#M13901</guid>
      <dc:creator>nnikbin</dc:creator>
      <dc:date>2019-07-09T08:31:02Z</dc:date>
    </item>
  </channel>
</rss>

