<?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: INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/10004772#M120020</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6518271"&gt;@dutt.thakar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't use the Thicken function in ActveEditDocument&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I also try with Combine function and it works&lt;/P&gt;&lt;P&gt;Do you have any advice for me. Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 17:23:01 GMT</pubDate>
    <dc:creator>Khoa_NguyenDang</dc:creator>
    <dc:date>2021-01-15T17:23:01Z</dc:date>
    <item>
      <title>INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9965879#M119406</link>
      <description>&lt;P&gt;HI all guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create the feature in the ActiveEditDocument link in the attached picture&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I use the same code to create features in IPT, but when I edit 1 component in Assembly, I call the same code but it not work&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do any people know about this, please help me&lt;/P&gt;&lt;P&gt;Thank you so much !!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Khoa_NguyenDang_0-1609175537252.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/860538i0E17EEE368AB97AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Khoa_NguyenDang_0-1609175537252.png" alt="Khoa_NguyenDang_0-1609175537252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 17:14:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9965879#M119406</guid>
      <dc:creator>Khoa_NguyenDang</dc:creator>
      <dc:date>2020-12-28T17:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9967109#M119416</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7787526" target="_blank"&gt;@Khoa_NguyenDang&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you looking for something like this?&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container" style="position: relative; height: 0; margin: 0; padding-bottom: 101.5625%;"&gt;&lt;IFRAME width="640" height="650" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;" src="https://screencast.autodesk.com/Embed/Timeline/51e58e4a-1ff3-4f3a-81cb-06c0a9b44423" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" scrolling="no"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Dec 2020 09:49:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9967109#M119416</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2020-12-29T09:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9967500#M119423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6518271"&gt;@dutt.thakar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it like in your video&lt;/P&gt;&lt;P&gt;Can you take a look with your code, thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 14:14:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9967500#M119423</guid>
      <dc:creator>Khoa_NguyenDang</dc:creator>
      <dc:date>2020-12-29T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9967636#M119424</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7787526"&gt;@Khoa_NguyenDang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the code below. I am just creating a circular profile extrude in the code, please change it as per your requirement. Make sure you are in edit state inside the assembly within the part and then run this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oPartDoc As PartDocument&lt;/P&gt;&lt;P&gt;oPartDoc = ThisApplication.ActiveEditDocument&lt;BR /&gt;&lt;BR /&gt;'Set Component Definition&lt;BR /&gt;Dim oCompDef As PartComponentDefinition&lt;BR /&gt;oCompDef = oPartDoc.ComponentDefinition&lt;BR /&gt;&lt;BR /&gt;'Create a sketch on XY Plane&lt;BR /&gt;Dim oSketch As PlanarSketch&lt;BR /&gt;oSketch = oCompDef.Sketches.Add(oCompDef.WorkPlanes.Item(3))&lt;BR /&gt;&lt;BR /&gt;'Draw a Circle&lt;BR /&gt;Call oSketch.SketchCircles.AddByCenterRadius(ThisApplication.TransientGeometry.CreatePoint2d(0, 0), 10)&lt;BR /&gt;&lt;BR /&gt;Dim oProfile As Profile&lt;BR /&gt;oProfile = oSketch.Profiles.AddForSolid&lt;BR /&gt;&lt;BR /&gt;'Create an Extrusion&lt;BR /&gt;Dim oExtrude As ExtrudeFeature&lt;BR /&gt;oExtrude = oCompDef.Features.ExtrudeFeatures.AddByDistanceExtent(oProfile, 10, kSymmetricExtentDirection, kNewBodyOperation)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if you want to detect whether the in-place edit session is active or not. Check the below link, it has some quite useful information.&lt;/P&gt;&lt;P&gt;&lt;A href="https://adndevblog.typepad.com/manufacturing/2013/01/detect-in-place-edit-session-in-inventor.html" target="_blank"&gt;https://adndevblog.typepad.com/manufacturing/2013/01/detect-in-place-edit-session-in-inventor.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/9967636#M119424</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2020-12-29T15:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/10004772#M120020</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6518271"&gt;@dutt.thakar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't use the Thicken function in ActveEditDocument&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I also try with Combine function and it works&lt;/P&gt;&lt;P&gt;Do you have any advice for me. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 17:23:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/10004772#M120020</guid>
      <dc:creator>Khoa_NguyenDang</dc:creator>
      <dc:date>2021-01-15T17:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: INVENTOR API - CREATE FEATURE IN ACTIVEDITDOCUMNET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/10009221#M120063</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7787526"&gt;@Khoa_NguyenDang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the code in VBA for a test and it works perfectly, Check out the below screencast and code as well. The code is in VBA, so please note that you need to convert it to make it work in VB.Net or C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="iframe-container"&gt;&lt;A href="https://knowledge.autodesk.com/community/screencast/7c90e093-d823-469f-b960-06696de684ef" target="_blank"&gt;https://knowledge.autodesk.com/community/screencast/7c90e093-d823-469f-b960-06696de684ef&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oPartDoc As PartDocument&lt;BR /&gt;Set oPartDoc = ThisApplication.ActiveEditDocument&lt;/P&gt;&lt;P&gt;Dim oCompDef As PartComponentDefinition&lt;BR /&gt;Set oCompDef = oPartDoc.ComponentDefinition&lt;/P&gt;&lt;P&gt;Dim oFeat As PartFeature&lt;BR /&gt;FCount = 1&lt;BR /&gt;Dim oFaceCol As FaceCollection&lt;BR /&gt;Set oFaceCol = ThisApplication.TransientObjects.CreateFaceCollection&lt;BR /&gt;For Each oFeat In oCompDef.Features&lt;BR /&gt;If InStr((oFeat.Name), "Patch") Then&lt;BR /&gt;oFaceCol.Clear&lt;BR /&gt;For Each oFace In oFeat.SurfaceBodies.Item(1).Faces&lt;BR /&gt;Call oFaceCol.Add(oFace)&lt;BR /&gt;Dim oThickFeat As ThickenFeature&lt;BR /&gt;Set oThickFeat = oCompDef.Features.ThickenFeatures.Add(oFaceCol, "0.4", kSymmetricExtentDirection, kNewBodyOperation, True)&lt;BR /&gt;oThickFeat.Name = "Thicken-Partition" &amp;amp; FCount&lt;BR /&gt;FCount = FCount + 1&lt;BR /&gt;Next&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;BR /&gt;End Sub&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="iframe-container"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="iframe-container"&gt;Hope this will be helpful.&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Jan 2021 08:56:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inventor-api-create-feature-in-activeditdocumnet/m-p/10009221#M120063</guid>
      <dc:creator>dutt.thakar</dc:creator>
      <dc:date>2021-01-18T08:56:26Z</dc:date>
    </item>
  </channel>
</rss>

