<?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 Command Manager - Trim Surface in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901644#M41119</link>
    <description>&lt;P&gt;A forum search has revealed that the Surface feature tools are not currently supported in the API, and as the sheet metal features are failing where the surface features are not, I appear to be forced down the path of using the Command Manager to attempt to automate a process, and the CM is a new beast to me.&amp;nbsp; (My Autodesk rep has already looked over the sheet metal failures and has pointed me to surfaces, please avoid the desire to try and solve the sheet metal issues I haven't provided details on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently at a loss on how to make selections via the CM and was hoping that someone might provide some example code, I should be able to figure out how to apply it to my routines from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command requires that I pick the 2d sketch to define the Cutting Tool (a pre-select failed to work here), then select the faces to remove, and then finally to accept the choices to complete the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do know the 3d points for any of the edges I wish to choose and would be a snap to just pick a UCS point to select an item; but again here I need a crash course on how to make these selections and advance the command progression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone able to provide some pointers, and preferably an example I could adapt?&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="llorden4_0-1643036241743.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1015330i5452DFE3F8CAB1BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="llorden4_0-1643036241743.png" alt="llorden4_0-1643036241743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2023 15:03:04 GMT</pubDate>
    <dc:creator>llorden4</dc:creator>
    <dc:date>2023-09-25T15:03:04Z</dc:date>
    <item>
      <title>Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901644#M41119</link>
      <description>&lt;P&gt;A forum search has revealed that the Surface feature tools are not currently supported in the API, and as the sheet metal features are failing where the surface features are not, I appear to be forced down the path of using the Command Manager to attempt to automate a process, and the CM is a new beast to me.&amp;nbsp; (My Autodesk rep has already looked over the sheet metal failures and has pointed me to surfaces, please avoid the desire to try and solve the sheet metal issues I haven't provided details on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently at a loss on how to make selections via the CM and was hoping that someone might provide some example code, I should be able to figure out how to apply it to my routines from there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command requires that I pick the 2d sketch to define the Cutting Tool (a pre-select failed to work here), then select the faces to remove, and then finally to accept the choices to complete the command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do know the 3d points for any of the edges I wish to choose and would be a snap to just pick a UCS point to select an item; but again here I need a crash course on how to make these selections and advance the command progression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone able to provide some pointers, and preferably an example I could adapt?&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="llorden4_0-1643036241743.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1015330i5452DFE3F8CAB1BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="llorden4_0-1643036241743.png" alt="llorden4_0-1643036241743.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 15:03:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901644#M41119</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2023-09-25T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901735#M41120</link>
      <description>&lt;P&gt;Just to clarify...are you talking about using the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-60D6E12D-1471-4AD9-9748-67D7EE63333D" target="_blank" rel="noopener"&gt;CommandManager.Pick()&lt;/A&gt; method here, or are you talking about using the CommandManager to &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-96D70A8A-8FA1-4D76-AC73-7A45AB547808" target="_blank" rel="noopener"&gt;execute a command&lt;/A&gt; that initiates the 'Trim Surface' user interface tool, ...or both?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 15:32:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901735#M41120</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-01-24T15:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901797#M41121</link>
      <description>&lt;P&gt;I've already got the command successfully executed, I need picking &amp;amp; advancing details; thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 15:49:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901797#M41121</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-24T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901878#M41122</link>
      <description>To be very clear, I'm attempting to make the selections "without" user input (mouse activity). If this isn't an option, then that'd be good to know too.</description>
      <pubDate>Mon, 24 Jan 2022 16:15:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10901878#M41122</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-24T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10902253#M41123</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/560097"&gt;@llorden4&lt;/a&gt; &amp;amp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4074296"&gt;@J.Oye&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see now that there doesn't appear to be an API method for creating a new &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-365A389E-597F-43F1-A745-39451EA818C7" target="_blank" rel="noopener"&gt;TrimFeature&lt;/A&gt; object, not even from the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-C0D63E7D-5A78-4B0C-9DAB-C84F41A53F5B" target="_blank" rel="noopener"&gt;TrimFeatures&lt;/A&gt; object, or the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-841301D5-72AE-43B3-97D1-B119535D4BE4" target="_blank" rel="noopener"&gt;PartFeatures&lt;/A&gt; object.&amp;nbsp; I don't think I've ever attempted to create one by code before.&amp;nbsp; It seems to progress automatically from 'cutting tool' selection to 'faces to remove' selection, without needing to click any button or keyboard key.&amp;nbsp; That little detail makes it even more challenging to imagine what we would need to do from a code standpoint to advance from the first selection to the next.&amp;nbsp; Would using a simple line of code like&amp;nbsp; oDoc.SelectSet.Select(oObject) or oDoc.SelectSet.SelectMultiple(oObjectCollection) cause it to move from one to the other I wander.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as identifying the entities/objects to select, have you considered using the oObject.AttributeSets property that most Inventor objects have to identify, then the oDoc.AttributeManager methods to find those items?&amp;nbsp; It's not always the most convenient process, but is a pretty popular technique in Inventor automation.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:25:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10902253#M41123</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-01-24T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10904048#M41124</link>
      <description>&lt;P&gt;And for those curious as to why we're pursuing the surface feature route, the sheet metal loft path vomited up this flat layout after making needed end cuts for a coped fit.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="thumbnail_image.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1015805i0BECAC06B47F53EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="thumbnail_image.png" alt="thumbnail_image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2023 15:15:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10904048#M41124</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2023-09-25T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10904911#M41125</link>
      <description>&lt;P&gt;Is it possible to use&amp;nbsp;SplitFeature instead of&amp;nbsp;TrimFeature?&amp;nbsp;&lt;/P&gt;&lt;P&gt;SplitFeature has API support and when you need to create sheet metal part finally, you can select appropriate faces for&amp;nbsp;ThickenFeature. Finally you can hide the source surface body.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 16:35:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10904911#M41125</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-01-25T16:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10905094#M41126</link>
      <description>&lt;P&gt;Will give that a try, I'm not making any headway with the the command manager option.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 17:25:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10905094#M41126</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-25T17:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10906962#M41127</link>
      <description>&lt;P&gt;I manually went through the modelling process with Split Face and was able to make the cut, and while it did make the desired cut, it also leaves all the cut pieces/faces in the model.&amp;nbsp; I've now got to Delete Face for each piece that remains, what a mess but it does appear to give me a good flat pattern once it's all done.&amp;nbsp; Once I figure out a routine to separate &amp;amp; delete the junk faces from the desired faces I should be able to make this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a Frankenstein solution, but a solution none the less.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 10:06:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10906962#M41127</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-26T10:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Command Manager - Trim Surface</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10909065#M41128</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104556"&gt;@Michael.Navara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running into a new obstacle with this suggestion, got time to take a quick look here this thread and share more of that experience?&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/delete-face-feature-v2022-2/td-p/10907627" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/delete-face-feature-v2022-2/td-p/10907627&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 23:38:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/command-manager-trim-surface/m-p/10909065#M41128</guid>
      <dc:creator>llorden4</dc:creator>
      <dc:date>2022-01-26T23:38:33Z</dc:date>
    </item>
  </channel>
</rss>

