<?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 Combine steps in one feature in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13799124#M176959</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;I am new to Inventor, and I want to combine multiple features in one node in the model browser.&lt;BR /&gt;I have created a clientfeature called DuPod Feature1, and I want all the following steps (from Work Point 2 until Split 1) to be merged under this node.&lt;BR /&gt;I am using Inventor 2026 and C# .Net 8.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MustafaSalaheldin_0-1757132554896.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1568117iB0FB73BA6DECE033/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MustafaSalaheldin_0-1757132554896.png" alt="MustafaSalaheldin_0-1757132554896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Sep 2025 04:24:20 GMT</pubDate>
    <dc:creator>Mustafa.Salaheldin</dc:creator>
    <dc:date>2025-09-06T04:24:20Z</dc:date>
    <item>
      <title>Combine steps in one feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13799124#M176959</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I am new to Inventor, and I want to combine multiple features in one node in the model browser.&lt;BR /&gt;I have created a clientfeature called DuPod Feature1, and I want all the following steps (from Work Point 2 until Split 1) to be merged under this node.&lt;BR /&gt;I am using Inventor 2026 and C# .Net 8.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MustafaSalaheldin_0-1757132554896.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1568117iB0FB73BA6DECE033/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MustafaSalaheldin_0-1757132554896.png" alt="MustafaSalaheldin_0-1757132554896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 04:24:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13799124#M176959</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2025-09-06T04:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combine steps in one feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13800998#M176966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1227311"&gt;@Mustafa.Salaheldin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the small example how to create &lt;A href="https://help.autodesk.com/view/INVNTOR/2025/ENU/?guid=GUID-ClientFeature" target="_blank"&gt;ClientFeature&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Usually it is used for features created by API, not for manually created features.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;void Main()
{
    var part = ThisApplication.ActiveDocument as PartDocument;

    var compDef = part.ComponentDefinition;

    //Assumes there are at least two surface bodies in the part
    var body1 = compDef.SurfaceBodies[1];
    var body2 = compDef.SurfaceBodies[2];

    //Crate model features which should be combined in ClientFeature
    var workPoint1 = compDef.WorkPoints.AddFixed(
        ThisApplication.TransientGeometry.CreatePoint(0, 0, 0)
    );
    var workPoint2 = compDef.WorkPoints.AddFixed(
        ThisApplication.TransientGeometry.CreatePoint(0, 0, 0.5)
    );

    var workAxis1 = compDef.WorkAxes.AddByTwoPoints(workPoint1, workPoint2);

    //Keep input work points at the root of the model tree.
    workAxis1.ConsumeInputs = false;

    var workPlane1 = compDef.WorkPlanes.AddByLineAndPoint(workAxis1, workPoint2);

    var toolBodies = ThisApplication.TransientObjects.CreateObjectCollection();
    toolBodies.Add(body2);
    var combineFeature1 = compDef.Features.CombineFeatures.Add(body1, toolBodies, PartFeatureOperationEnum.kJoinOperation);

    var body3 = combineFeature1.SurfaceBody;
    var splitFeature1 = compDef.Features.SplitFeatures.SplitBody(workPlane1, body3);

    //Create ClientFeature
    var clientFeatureDefinition = compDef.Features.ClientFeatures.CreateDefinition(
        "SampleFeature",
        workPoint1,
        splitFeature1,
        null
    );
    compDef.Features.ClientFeatures.Add(clientFeatureDefinition, "YOUR-ADDIN-CLSID-GUID-HERE");
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 12:33:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13800998#M176966</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2025-09-08T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Combine steps in one feature</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13802684#M176981</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104556"&gt;@Michael.Navara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 10:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combine-steps-in-one-feature/m-p/13802684#M176981</guid>
      <dc:creator>mustafa_bakrE8NT7</dc:creator>
      <dc:date>2025-09-09T10:33:59Z</dc:date>
    </item>
  </channel>
</rss>

