<?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 Access the freeform feature API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12038443#M154103</link>
    <description>&lt;P&gt;Hiii.....I want to get the API to convert the solid face into FreeForm Feature.Can anyone help with the same?&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="supriya_chaugule_0-1686906103573.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228528iB4EF02095D7B29C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supriya_chaugule_0-1686906103573.png" alt="supriya_chaugule_0-1686906103573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 09:02:22 GMT</pubDate>
    <dc:creator>supriya_chaugule</dc:creator>
    <dc:date>2023-06-16T09:02:22Z</dc:date>
    <item>
      <title>Access the freeform feature API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12038443#M154103</link>
      <description>&lt;P&gt;Hiii.....I want to get the API to convert the solid face into FreeForm Feature.Can anyone help with the same?&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="supriya_chaugule_0-1686906103573.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1228528iB4EF02095D7B29C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supriya_chaugule_0-1686906103573.png" alt="supriya_chaugule_0-1686906103573.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 09:02:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12038443#M154103</guid>
      <dc:creator>supriya_chaugule</dc:creator>
      <dc:date>2023-06-16T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access the freeform feature API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12039139#M154132</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13989289"&gt;@supriya_chaugule&lt;/a&gt;.&amp;nbsp; I do not think there is any API code for that specific task.&amp;nbsp; There are API objects for &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-FreeformFeatures" target="_blank" rel="noopener"&gt;FreeFormFeatures&lt;/A&gt;, &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-FreeformFeature" target="_blank" rel="noopener"&gt;FreeFormFeature&lt;/A&gt;, &amp;amp; &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-FreeformFeatureProxy" target="_blank" rel="noopener"&gt;FreeFormFeatureProxy&lt;/A&gt;, but no Add or Copy type method for creating new ones, or converting someting else to a FreeFormFeature.&amp;nbsp; So, the best I could come up with is some simple code that basically attempts to simulate the manual process, which is:&amp;nbsp; Pre-select all the faces of the body, then execute that convert command, then just simulate clicking the OK button, without specifying any options.&amp;nbsp; This worked OK for me in a simple block type part example.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oPDoc As PartDocument = ThisDoc.Document
Dim oBody As SurfaceBody = oPDoc.ComponentDefinition.SurfaceBodies.Item(1)
Dim oFaces As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
For Each oFace In oBody.Faces
	oFaces.Add(oFace)
Next
Dim oCDs As ControlDefinitions = ThisApplication.CommandManager.ControlDefinitions
Dim oCD1 As ControlDefinition = oCDs.Item("TSplineConvertToTSplineCmd")
Dim oCD2 As ControlDefinition = oCDs.Item("AppContextual_OKCmd")
oPDoc.SelectSet.SelectMultiple(oFaces)
oCD1.Execute
oCD2.Execute&lt;/LI-CODE&gt;
&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN&gt;&lt;STRONG&gt; ACCEPT SOLUTION &lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@7401B55A0A518861312A0F851CD29320/emoticons/1f44d.png" alt=":thumbs_up:" title=":thumbs_up:" /&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 14:12:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12039139#M154132</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-06-16T14:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Access the freeform feature API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12043631#M154184</link>
      <description>&lt;P&gt;Hii&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp; I am able to get the edit option from command manager.But how can I get the control points or the faces from that freeform face. Here attaching the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;public void freeFormSurface()&lt;BR /&gt;{&lt;BR /&gt;PartDocument oDoc = (PartDocument)mApplication.ActiveDocument;&lt;BR /&gt;SurfaceBody oBody = oDoc.ComponentDefinition.SurfaceBodies[1] as SurfaceBody;&lt;BR /&gt;ObjectCollection oFaces = mApplication.TransientObjects.CreateObjectCollection();&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;oFaces.Add(oBody.Faces[7]);&lt;BR /&gt;ControlDefinitions oCDs = mApplication.CommandManager.ControlDefinitions;&lt;BR /&gt;ControlDefinition oCD1 = oCDs["TSplineConvertToTSplineCmd"];&lt;BR /&gt;ControlDefinition oCD2 = oCDs["AppContextual_OKCmd"];&lt;/P&gt;&lt;P&gt;oDoc.SelectSet.SelectMultiple(oFaces);&lt;BR /&gt;oCD1.Execute();&lt;BR /&gt;oCD2.Execute();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ControlDefinition oCD3 = oCDs["FinishTSplineCmd"];&lt;BR /&gt;oCD3.Execute();&lt;/P&gt;&lt;P&gt;PartComponentDefinition compDef = oDoc.ComponentDefinition;&lt;/P&gt;&lt;P&gt;FreeformFeature ff = compDef.Features.FreeformFeatures[1];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ff.IsInEditMode= true;&lt;/P&gt;&lt;P&gt;}&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="supriya_chaugule_0-1687168061718.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1229581i1977818850559779/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supriya_chaugule_0-1687168061718.png" alt="supriya_chaugule_0-1687168061718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How do i get this control points from API?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 09:48:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12043631#M154184</guid>
      <dc:creator>supriya_chaugule</dc:creator>
      <dc:date>2023-06-19T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Access the freeform feature API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12046541#M154237</link>
      <description>&lt;P&gt;That sounds like a fantastic forum for individuals interested in Inventor iLogic, API, and VBA programming! Having a dedicated platform to share knowledge, ask questions, and discuss topics related to programming, creating add-ins, macros, and working with the API or iLogic tools can be immensely valuable for both beginners and experienced users.&lt;/P&gt;&lt;P&gt;For those looking to expand their skills or solve specific challenges within Inventor, this forum provides an opportunity to interact with a community of like-minded individuals who share a passion for Inventor's automation capabilities. It creates a space where users can exchange ideas, share tips and tricks, and collaborate on various projects.&lt;/P&gt;&lt;P&gt;Being part of a forum dedicated to Inventor iLogic, API, and VBA can have several benefits. It allows users to:&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 12:05:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12046541#M154237</guid>
      <dc:creator>Phuffakerson</dc:creator>
      <dc:date>2023-06-20T12:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Access the freeform feature API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12047477#M154260</link>
      <description>&lt;P&gt;Although I pretty much never use FreeForm in my work, but I looked into this a little bit more today.&amp;nbsp; I still have not found a good way to get access or control the individual divider lines or interior vertexes of the FreeForm feature, while it is in edit mode.&amp;nbsp; There are likely several more obscure, specific commands for the tools involved in editing FreeFormFeatures, but executing commands by code is generally not a popular way of controlling that sort of thing, in favor of direct API objects and their methods, properties &amp;amp; such.&amp;nbsp; My guess it that they simply have not exposed that much functionality for accessing and controlling FreeForm related stuff in Inventor's API or iLogic yet.&amp;nbsp;&amp;nbsp; It does not sound to me like an ability that would be in high demand by a lot of users, so it likely has not gotten as much API development as some of the other stuff.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 17:44:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12047477#M154260</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-06-20T17:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Access the freeform feature API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12048529#M154276</link>
      <description>&lt;P&gt;Is there any other way where we can get the access of control points ? So we can use that for changing the shape of face or transform it in any direction.I want to do something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="supriya_chaugule_0-1687319236868.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1230508iE19A4C7E898CE237/image-size/medium?v=v2&amp;amp;px=400" role="button" title="supriya_chaugule_0-1687319236868.png" alt="supriya_chaugule_0-1687319236868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 03:47:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/access-the-freeform-feature-api/m-p/12048529#M154276</guid>
      <dc:creator>supriya_chaugule</dc:creator>
      <dc:date>2023-06-21T03:47:35Z</dc:date>
    </item>
  </channel>
</rss>

