<?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 splitBodyFeature.count to zero after split in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11679675#M4669</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to split a shell with a construction plane. The shell is shown on the picture below: it is made of 3 faces making 1 shell which is also 1 lump. But it is as single BRepBody from the API point of view, as it is a single object in my Fusion UI tree (see picture).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sans titre.png" style="width: 445px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1162724i8B4765F89A521760/image-dimensions/445x316?v=v2" width="445" height="316" role="button" title="Sans titre.png" alt="Sans titre.png" /&gt;&lt;/span&gt;To split this shell (selected in "recup_object" which is a BRepBody), I wrote the following code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    splitBodyFeats = rootComp.features.splitBodyFeatures
    splitBodyInput = splitBodyFeats.createInput(recup_object, planeOne,True)
    splitBodyFeat = splitBodyFeats.add(splitBodyInput)    &lt;/LI-CODE&gt;&lt;P&gt;When executing, two bodies are created in my Fusion Model, but I am unable to access them in the API because the "splitBodyFeat " object count property is equal to 0, whereas I am expecting it to contain the collection of bodies created, accessible with the bodies property.&lt;/P&gt;&lt;P&gt;In the reference manual, it is written that the body of the createInput method should be "Input solid body or open bodies to be split": is my issue coming from the fact that my recup_object is not a solid body? (isSolid property is False).&lt;/P&gt;&lt;P&gt;In any case, since this seems not to be working, what would be the solution? Is there a specific method/feature to split shells like this?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jan 2023 19:54:15 GMT</pubDate>
    <dc:creator>sebastien.pouvreau</dc:creator>
    <dc:date>2023-01-14T19:54:15Z</dc:date>
    <item>
      <title>splitBodyFeature.count to zero after split</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11679675#M4669</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am trying to split a shell with a construction plane. The shell is shown on the picture below: it is made of 3 faces making 1 shell which is also 1 lump. But it is as single BRepBody from the API point of view, as it is a single object in my Fusion UI tree (see picture).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Sans titre.png" style="width: 445px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1162724i8B4765F89A521760/image-dimensions/445x316?v=v2" width="445" height="316" role="button" title="Sans titre.png" alt="Sans titre.png" /&gt;&lt;/span&gt;To split this shell (selected in "recup_object" which is a BRepBody), I wrote the following code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;    splitBodyFeats = rootComp.features.splitBodyFeatures
    splitBodyInput = splitBodyFeats.createInput(recup_object, planeOne,True)
    splitBodyFeat = splitBodyFeats.add(splitBodyInput)    &lt;/LI-CODE&gt;&lt;P&gt;When executing, two bodies are created in my Fusion Model, but I am unable to access them in the API because the "splitBodyFeat " object count property is equal to 0, whereas I am expecting it to contain the collection of bodies created, accessible with the bodies property.&lt;/P&gt;&lt;P&gt;In the reference manual, it is written that the body of the createInput method should be "Input solid body or open bodies to be split": is my issue coming from the fact that my recup_object is not a solid body? (isSolid property is False).&lt;/P&gt;&lt;P&gt;In any case, since this seems not to be working, what would be the solution? Is there a specific method/feature to split shells like this?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jan 2023 19:54:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11679675#M4669</guid>
      <dc:creator>sebastien.pouvreau</dc:creator>
      <dc:date>2023-01-14T19:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: splitBodyFeature.count to zero after split</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11680597#M4670</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9338920"&gt;@sebastien.pouvreau&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SplitBodyFeature object does not have a Count property.&lt;/P&gt;
&lt;P&gt;To check the number of bodies after splitting, it is possible to do the following&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;print(splitBodyFeat.bodies.count)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 15 Jan 2023 13:31:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11680597#M4670</guid>
      <dc:creator>kandennti</dc:creator>
      <dc:date>2023-01-15T13:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: splitBodyFeature.count to zero after split</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11689050#M4671</link>
      <description>&lt;P&gt;This seems like a bug to me. I would also expect the bodies property of the SplitBodyFeature to return the bodies created due to the split. I think there is a fairly simple workaround. Before creating the split, you can create a list containing all the current bodies. After the split, you can get all the existing bodies. You can check each body in the "after" list to see if it exists in the "before" list. If it doesn't, then it was created by the split feature. You can compare two bodies to see if they're the same by using the "==" operator in an if statement.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 19:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11689050#M4671</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2023-01-18T19:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: splitBodyFeature.count to zero after split</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11719435#M4672</link>
      <description>&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;, it seems like a bug indeed. I used your workaround, much more elegant than what I was doing before :). I hope this will be solved sometime: is there a way to raise a ticket for the API developpers?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 18:18:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11719435#M4672</guid>
      <dc:creator>sebastien.pouvreau</dc:creator>
      <dc:date>2023-01-31T18:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: splitBodyFeature.count to zero after split</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11720773#M4673</link>
      <description>&lt;P&gt;I've had a ticket created for the bug. Unfortunately, there's no way to track this outside of Autodesk. I don't know when it will be fixed, but they have been actively working on API fixes and enhancements lately, so I'm guessing it won't be too long.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 06:40:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/splitbodyfeature-count-to-zero-after-split/m-p/11720773#M4673</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2023-02-01T06:40:18Z</dc:date>
    </item>
  </channel>
</rss>

