<?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 Creating a shell feature and removing a face created in the step before in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9903992#M125521</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to create a shell feature but it gives me back an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oThickness As Double = 1

Dim Shellfeatures As ShellFeatures = pDef.Features.ShellFeatures

Dim oFaces As FaceCollection = invApp.TransientObjects.CreateFaceCollection
Dim oFace As Face

For Each oFace In pDef.SurfaceBodies.Item(1).Faces
oFaces.Add(oFace)
Next

Dim Shelldef As ShellDefinition = pDef.Features.ShellFeatures.CreateShellDefinition(oFaces, oThickness, ShellDirectionEnum.kOutsideShellDirection)

Dim NewShellFeat As ShellFeature = Shellfeatures.Add(Shelldef)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part has been sculpted and then splitted. One of the two bodies resulting from the split has no visibilty, the other one is the one supposed to make the shell. How can I get this to work and then also how do I specifiy which face to delete so the part becomes hollow? The face that needs to be deleted is the one created during the split.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Omar&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 12:43:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-30T12:43:06Z</dc:date>
    <item>
      <title>Creating a shell feature and removing a face created in the step before</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9903992#M125521</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to create a shell feature but it gives me back an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oThickness As Double = 1

Dim Shellfeatures As ShellFeatures = pDef.Features.ShellFeatures

Dim oFaces As FaceCollection = invApp.TransientObjects.CreateFaceCollection
Dim oFace As Face

For Each oFace In pDef.SurfaceBodies.Item(1).Faces
oFaces.Add(oFace)
Next

Dim Shelldef As ShellDefinition = pDef.Features.ShellFeatures.CreateShellDefinition(oFaces, oThickness, ShellDirectionEnum.kOutsideShellDirection)

Dim NewShellFeat As ShellFeature = Shellfeatures.Add(Shelldef)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part has been sculpted and then splitted. One of the two bodies resulting from the split has no visibilty, the other one is the one supposed to make the shell. How can I get this to work and then also how do I specifiy which face to delete so the part becomes hollow? The face that needs to be deleted is the one created during the split.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Omar&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 12:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9903992#M125521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-30T12:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shell feature and removing a face created in the step before</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9904151#M125522</link>
      <description>&lt;P&gt;here also a screenshot to make it more clear what I am trying to achieve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shell_feature.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/850194i4E7E20C36A6E34DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shell_feature.JPG" alt="Shell_feature.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 13:29:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9904151#M125522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-30T13:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a shell feature and removing a face created in the step before</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9904684#M125523</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will post in both blog posts, but I added a subroutine for the shell procedure to the rule I posted last time.&amp;nbsp; I will also attached the file i was using to play with the non-watertight scenario to your&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/creating-boundary-patches-in-3d-sketch/m-p/9904325/highlight/false#M118579" target="_blank" rel="noopener"&gt;Original Post&lt;/A&gt; .&amp;nbsp; I'm still having issues with using the patches I can make, so some more work needs to be done there, but the process for a watertight mesh import works as desired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attaching only attaching the full rule to your&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/creating-boundary-patches-in-3d-sketch/m-p/9904325/highlight/false#M118579" target="_blank" rel="noopener"&gt;Original Post&lt;/A&gt; the rule as a .txt file so you don't have to read through an entire blog post.&amp;nbsp; Let me know if you need anymore help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the shell subroutine:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub ShellThis(Body As SurfaceBody, Def As PartComponentDefinition)
	
	Dim OurNewFace As FaceCollection = ThisApplication.TransientObjects.CreateFaceCollection
	'Select the face we created with our split feature
	For Each f As Face In Body.Faces
		If f.CreatedByFeature.Type = ObjectTypeEnum.kSplitFeatureObject
			OurNewFace.Add(f)
		End If
	Next
	'Define Shell and create Shell Feature
	Dim ShellFeatDef As ShellDefinition = Def.Features.ShellFeatures.CreateShellDefinition(OurNewFace,"5 mm", ShellDirectionEnum.kOutsideShellDirection)
	Dim ShellFeat As ShellFeature = Def.Features.ShellFeatures.Add(ShellFeatDef)

End Sub&lt;/LI-CODE&gt;&lt;P&gt;The FaceCollection wants to be only the faces to remove from the shell procedure.&amp;nbsp; I was wrong about the last indexed face being the one created by the split feature, so I'm getting the correct face by checking each face's CreatedBy Property before adding to the collection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 16:41:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/creating-a-shell-feature-and-removing-a-face-created-in-the-step/m-p/9904684#M125523</guid>
      <dc:creator>J-Camper</dc:creator>
      <dc:date>2020-11-30T16:41:10Z</dc:date>
    </item>
  </channel>
</rss>

