<?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 Show Inventor &amp;quot;Extrude&amp;quot; Dialog Box Using a VBA Macro in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603868#M94577</link>
    <description>&lt;P&gt;Can&amp;nbsp; anybody help???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible, using a VBA macro to show the "Extrude" dialog box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro that runs whenever I press the save button. One of the things the macro does is to check the extrusion size to standard material thicknesses. This is used for parts that require laser cutting. If the extrusion thickness is not a standard thickness then I want to automatically show the "Extrusion" dialog box so that the user can simply change the extrusion size. Is it possible to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Darren&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 20:34:44 GMT</pubDate>
    <dc:creator>isocam</dc:creator>
    <dc:date>2019-02-18T20:34:44Z</dc:date>
    <item>
      <title>Show Inventor "Extrude" Dialog Box Using a VBA Macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603868#M94577</link>
      <description>&lt;P&gt;Can&amp;nbsp; anybody help???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible, using a VBA macro to show the "Extrude" dialog box?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro that runs whenever I press the save button. One of the things the macro does is to check the extrusion size to standard material thicknesses. This is used for parts that require laser cutting. If the extrusion thickness is not a standard thickness then I want to automatically show the "Extrusion" dialog box so that the user can simply change the extrusion size. Is it possible to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 20:34:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603868#M94577</guid>
      <dc:creator>isocam</dc:creator>
      <dc:date>2019-02-18T20:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show Inventor "Extrude" Dialog Box Using a VBA Macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603881#M94579</link>
      <description>&lt;P&gt;With the commandmanager this should be possible.&lt;/P&gt;
&lt;P&gt;Dim cmd as thisapplication.commanđmanager("command")&lt;/P&gt;
&lt;P&gt;Cmd.execute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 20:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603881#M94579</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2019-02-18T20:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Show Inventor "Extrude" Dialog Box Using a VBA Macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603886#M94580</link>
      <description>&lt;P&gt;Hi, you can do that using the CommandManager like so:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VBA:&lt;/P&gt;
&lt;PRE&gt;'~~~~~Get the Part document~~~~~
Dim oDoc As Inventor.PartDocument
Set oDoc = ThisApplication.ActiveEditDocument

'~~~~~Get the Extrude feature~~~~~
Dim oFeature As Inventor.PartFeature
Set oFeature = oDoc.ComponentDefinition.Features.ExtrudeFeatures(1)

'~~~~~Select and edit extrude feature~~~~~~
oDoc.SelectSet.Clear
oDoc.SelectSet.Select oFeature

Dim oControlDef As Inventor.ControlDefinition
Set oControlDef = ThisApplication.CommandManager.ControlDefinitions("EditExtrudeCtxCmd")
oControlDef.Execute&lt;/PRE&gt;
&lt;P&gt;iLogic:&lt;/P&gt;
&lt;PRE&gt;'~~~~~Get the Part document~~~~~
Dim oDoc As Inventor.PartDocument = ThisDoc.Document

'~~~~~Get the Extrude feature~~~~~
Dim oFeature As Inventor.PartFeature = oDoc.ComponentDefinition.Features.ExtrudeFeatures(1)

'~~~~~Select and edit extrude feature~~~~~~
oDoc.SelectSet.Clear
oDoc.SelectSet.Select(oFeature)

Dim oControlDef As Inventor.ControlDefinition = ThisApplication.CommandManager.ControlDefinitions("EditExtrudeCtxCmd")
oControlDef.Execute&lt;/PRE&gt;
&lt;P&gt;Tailor as necessary to work with your existing code and get the appropriate Extrude feature.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 20:49:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/show-inventor-quot-extrude-quot-dialog-box-using-a-vba-macro/m-p/8603886#M94580</guid>
      <dc:creator>DRoam</dc:creator>
      <dc:date>2019-02-18T20:49:02Z</dc:date>
    </item>
  </channel>
</rss>

