<?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: in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760403#M168890</link>
    <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Brian:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Great job, working perfectly .... &lt;BR /&gt;
almost.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Probably me, or something I have done wrong, but &lt;BR /&gt;
what I did was copy your clsEvents class module to my default ivb class &lt;BR /&gt;
&amp;nbsp;module and I copied some of your code to create the macro I &lt;BR /&gt;
wanted.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;This is working perfectly, every time I save the &lt;BR /&gt;
macro runs.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Problem: I had/have other modules with macros &lt;BR /&gt;
assigned to buttons on toolbars.&amp;nbsp; The macros run OK from the MACRO, RUN &lt;BR /&gt;
dialog, but when I click the button nothing happens.&amp;nbsp; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Any clues?&amp;nbsp; Have I done something &lt;BR /&gt;
wrong?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I attached a screen shot of my setup.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Brian Ekins (Autodesk)" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:brian.ekins@autodesk.com"&amp;gt;brian.ekins@autodesk.com&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
  in message &lt;A&gt;&lt;BR /&gt;
  href="news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb"&amp;gt;news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Kent's &lt;BR /&gt;
  right.&amp;nbsp; This allows you to have an automatic macro in the &lt;BR /&gt;
  default&lt;BR /&gt;ivb.&amp;nbsp; This allows you to now do a lot of things with VBA that &lt;BR /&gt;
  previously you&lt;BR /&gt;could only do using an Add-In.&lt;BR /&gt;-- &lt;BR /&gt;Brian &lt;BR /&gt;
  Ekins&lt;BR /&gt;Developer Technical Services, Autodesk&lt;BR /&gt;Discussion Q&amp;amp;A: &lt;A&gt;&lt;BR /&gt;
  href="http://www.autodesk.com/discussion"&amp;gt;http://www.autodesk.com/discussion&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Kent &lt;BR /&gt;
  Keller" &amp;lt;&lt;A href="mailto:kent@strobedata.com"&gt;kent@strobedata.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb"&amp;gt;news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  well I haven't had a chance to look at Brian's addin yet either, but as &lt;BR /&gt;
  I&lt;BR /&gt;understood it,&lt;BR /&gt;&amp;gt; the program ran a normal macro such as in your &lt;BR /&gt;
  default.ivb&amp;nbsp; 8^)&amp;nbsp; No need&lt;BR /&gt;to have it in&lt;BR /&gt;&amp;gt; every &lt;BR /&gt;
  file.&amp;nbsp;&amp;nbsp; I am sure Brian will correct me if I am &lt;BR /&gt;
  wrong&amp;lt;G&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; --&lt;BR /&gt;&amp;gt; Kent&lt;BR /&gt;&amp;gt; Assistant &lt;BR /&gt;
  Moderator&lt;BR /&gt;&amp;gt; Autodesk Discussion Forum Moderator &lt;BR /&gt;
  Program&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; "Sean Dotson" &amp;lt;sean at sdotson dot com&amp;gt; &lt;BR /&gt;
  wrote in message&lt;BR /&gt;&amp;gt; &lt;A&gt;&lt;BR /&gt;
  href="news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb"&amp;gt;news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  &amp;gt; Kent, he would still need to have the code to call the add-in in &lt;BR /&gt;
  his&lt;BR /&gt;&amp;gt; &amp;gt; document project (if I understand Brian's example, I haven't &lt;BR /&gt;
  downloaded&lt;BR /&gt;it&lt;BR /&gt;&amp;gt; &amp;gt; yet).&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; If he puts this &lt;BR /&gt;
  in bit of code in each and every part, sooner or later&lt;BR /&gt;it's&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
  going to blow up in any decent sized assy.&amp;nbsp; I've been doing some &lt;BR /&gt;
  more&lt;BR /&gt;&amp;gt; &amp;gt; reading on VBA's memory handling and it's not the best in &lt;BR /&gt;
  the world...&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; --&lt;BR /&gt;&amp;gt; &amp;gt; Sean Dotson, PE&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  &amp;gt; &lt;A href="http://www.sdotson.com"&gt;http://www.sdotson.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
  Check the Inventor FAQ for most common questions&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A&gt;&lt;BR /&gt;
  href="http://www.sdotson.com/faq.html"&amp;gt;www.sdotson.com/faq.html&lt;/A&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 24 Sep 2003 00:10:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2003-09-24T00:10:20Z</dc:date>
    <item>
      <title>Automatic Macro Running</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760389#M168876</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Hi all&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I'm still looking for a solution, and I'm sure &lt;BR /&gt;
it's there.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Is there any method of running a macro &lt;BR /&gt;
automatically when I save a file?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Sep 2003 04:37:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760389#M168876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T04:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic Macro Running</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760390#M168877</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Yes, y&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;ou should use &lt;BR /&gt;
the AutoSave:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;This&amp;nbsp;code should be add into the "Autodesk &lt;BR /&gt;
Inventor Objects\ThisDocument" section.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub AutoSave_DoNothing()&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "This macro do... &lt;BR /&gt;
nothing"&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The message will be prompt each time you save the &lt;BR /&gt;
file (replace the "DoNothig" with your function name).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Xavier&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RuF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  a écrit dans le message de &lt;A&gt;&lt;BR /&gt;
  href="news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb"&amp;gt;news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Hi all&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I'm still looking for a solution, and I'm sure &lt;BR /&gt;
  it's there.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Is there any method of running a macro &lt;BR /&gt;
  automatically when I save a file?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 06:45:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760390#M168877</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T06:45:11Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760391#M168878</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Excellent!! Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Now for making my program better:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;1. Can I add this to a template file so it's &lt;BR /&gt;
available to all parts?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;2. Can something similar be done so the program &lt;BR /&gt;
runs when I commit a feature?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks for the help so far.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Xavier Collet" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:xcollet@hurni.ch"&amp;gt;xcollet@hurni.ch&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb"&amp;gt;news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Yes, y&lt;/FONT&gt;&lt;FONT face="Arial" size="2"&gt;ou should &lt;BR /&gt;
  use the AutoSave:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;This&amp;nbsp;code should be add into the "Autodesk &lt;BR /&gt;
  Inventor Objects\ThisDocument" section.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Public Sub AutoSave_DoNothing()&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "This macro do... &lt;BR /&gt;
  nothing"&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;The message will be prompt each time you save the &lt;BR /&gt;
  file (replace the "DoNothig" with your function name).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Xavier&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"RuF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; a écrit dans le &lt;BR /&gt;
    message de &lt;A&gt;&lt;BR /&gt;
    href="news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb"&amp;gt;news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Hi all&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I'm still looking for a solution, and I'm sure &lt;BR /&gt;
    it's there.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Is there any method of running a macro &lt;BR /&gt;
    automatically when I save a file?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma"&gt;&lt;BR /&gt;
size=2&amp;gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 07:42:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760391#M168878</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T07:42:56Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760392#M168879</link>
      <description>Ruif&lt;BR /&gt;
&lt;BR /&gt;
You may want to read the Subject VBA creation started on the 18th of this month.  Using&lt;BR /&gt;
the Auto macros in your templates is not suggested.   Also read the subject "A limit to&lt;BR /&gt;
the # of VBA project loaded at one time?" thread started on the 16th&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent&lt;BR /&gt;
Assistant Moderator&lt;BR /&gt;
Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Excellent!! Thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Now for making my program better:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 1. Can I add this to a template file so it's available to all parts?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; 2. Can something similar be done so the program runs when I commit a feature?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the help so far.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Rui&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   "Xavier Collet" &lt;XCOLLET&gt; wrote in message&lt;BR /&gt;
news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;   Yes, you should use the AutoSave:&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   This code should be add into the "Autodesk Inventor Objects\ThisDocument" section.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   Public Sub AutoSave_DoNothing()&lt;BR /&gt;
&amp;gt;       MsgBox "This macro do... nothing"&lt;BR /&gt;
&amp;gt;   End Sub&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   The message will be prompt each time you save the file (replace the "DoNothig" with&lt;BR /&gt;
your function name).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   Xavier&lt;BR /&gt;
&amp;gt;     "RuF" &lt;RUI.CAD&gt; a écrit dans le message de&lt;BR /&gt;
news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;     Hi all&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     I'm still looking for a solution, and I'm sure it's there.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Is there any method of running a macro automatically when I save a file?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Thanks&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Rui&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUI.CAD&gt;&lt;/XCOLLET&gt;&lt;/RUI.CAD&gt;</description>
      <pubDate>Tue, 23 Sep 2003 07:45:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760392#M168879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T07:45:09Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760393#M168880</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Those are some of the reasons why I wanted to keep &lt;BR /&gt;
this as an application macro.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Is there any way for a document macro to call an &lt;BR /&gt;
application program to run?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;At least then the document would contain very &lt;BR /&gt;
little code.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Like I said, ideally, I would have an application &lt;BR /&gt;
macro that ran every time a feature in a part was commited, but so far nobody &lt;BR /&gt;
has been able to help me (added to the fact that I'm relatively new to IV and &lt;BR /&gt;
VBA, the scenario doesn't get better).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I've been looking at transactions, although I'm &lt;BR /&gt;
not sure if that's what I want.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks in advance for any input you guys may &lt;BR /&gt;
have.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Kent Keller" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:kent@strobedata.com"&amp;gt;kent@strobedata.com&lt;/A&gt;&amp;gt; wrote in message &lt;BR /&gt;
  &lt;A&gt;&lt;BR /&gt;
  href="news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb"&amp;gt;news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Ruif&lt;BR /&gt;&lt;BR /&gt;You &lt;BR /&gt;
  may want to read the Subject VBA creation started on the 18th of this &lt;BR /&gt;
  month.&amp;nbsp; Using&lt;BR /&gt;the Auto macros in your templates is not &lt;BR /&gt;
  suggested.&amp;nbsp;&amp;nbsp; Also read the subject "A limit to&lt;BR /&gt;the # of VBA &lt;BR /&gt;
  project loaded at one time?" thread started on the &lt;BR /&gt;
  16th&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Kent&lt;BR /&gt;Assistant Moderator&lt;BR /&gt;Autodesk Discussion Forum &lt;BR /&gt;
  Moderator Program&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb"&amp;gt;news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  Excellent!! Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Now for making my program &lt;BR /&gt;
  better:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 1. Can I add this to a template file so it's available &lt;BR /&gt;
  to all parts?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 2. Can something similar be done so the program &lt;BR /&gt;
  runs when I commit a feature?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks for the help so &lt;BR /&gt;
  far.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Rui&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; "Xavier Collet" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:xcollet@hurni.ch"&amp;gt;xcollet@hurni.ch&lt;/A&gt;&amp;gt; wrote in message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb"&amp;gt;news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Yes, you should use the AutoSave:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; This code should &lt;BR /&gt;
  be add into the "Autodesk Inventor Objects\ThisDocument" &lt;BR /&gt;
  section.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Public Sub &lt;BR /&gt;
  AutoSave_DoNothing()&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "This &lt;BR /&gt;
  macro do... nothing"&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; End Sub&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  The message will be prompt each time you save the file (replace the "DoNothig" &lt;BR /&gt;
  with&lt;BR /&gt;your function name).&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Xavier&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "RuF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; a écrit dans le &lt;BR /&gt;
  message de&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb"&amp;gt;news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Hi all&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm still looking for a &lt;BR /&gt;
  solution, and I'm sure it's there.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is &lt;BR /&gt;
  there any method of running a macro automatically when I save a &lt;BR /&gt;
  file?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
Rui&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 09:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760393#M168880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T09:38:36Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760394#M168881</link>
      <description>In that thread I pointed you to Brian had posted a solution.  Someone had a bit of a&lt;BR /&gt;
problem with it so he said he was looking into improving the code as I remember.  Might&lt;BR /&gt;
want to reread the thread.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent&lt;BR /&gt;
Assistant Moderator&lt;BR /&gt;
Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Those are some of the reasons why I wanted to keep this as an application macro.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Is there any way for a document macro to call an application program to run?&lt;BR /&gt;
&amp;gt;&lt;/RUI.CAD&gt;</description>
      <pubDate>Tue, 23 Sep 2003 09:58:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760394#M168881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T09:58:03Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760395#M168882</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks Kent&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Hadn't seen the post in iCF.&amp;nbsp; Going to look &lt;BR /&gt;
at that.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Kent Keller" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:kent@strobedata.com"&amp;gt;kent@strobedata.com&lt;/A&gt;&amp;gt; wrote in message &lt;BR /&gt;
  &lt;A&gt;&lt;BR /&gt;
  href="news:8AEA8105037A629F050858FC8EBB5D94@in.WebX.maYIadrTaRb"&amp;gt;news:8AEA8105037A629F050858FC8EBB5D94@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;In &lt;BR /&gt;
  that thread I pointed you to Brian had posted a solution.&amp;nbsp; Someone had a &lt;BR /&gt;
  bit of a&lt;BR /&gt;problem with it so he said he was looking into improving the code &lt;BR /&gt;
  as I remember.&amp;nbsp; Might&lt;BR /&gt;want to reread the &lt;BR /&gt;
  thread.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Kent&lt;BR /&gt;Assistant Moderator&lt;BR /&gt;Autodesk Discussion Forum &lt;BR /&gt;
  Moderator Program&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb"&amp;gt;news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  Those are some of the reasons why I wanted to keep this as an application &lt;BR /&gt;
  macro.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Is there any way for a document macro to call an &lt;BR /&gt;
  application program to run?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 10:13:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760395#M168882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T10:13:43Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760396#M168883</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I wouldn't even recommend that.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I had a few hundred parts with nothing but a small &lt;BR /&gt;
sub (3-4 lines) and it kept crashing VBA.&amp;nbsp; Inventor was fine but the VBA &lt;BR /&gt;
environment couldn't handle it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I'd look at making it an add-in. (which is what I &lt;BR /&gt;
ended up doing with my document code)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;BR /&gt;-- &lt;BR /&gt;Sean Dotson, PE&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.sdotson.com"&amp;gt;http://www.sdotson.com&lt;/A&gt;&lt;BR /&gt;Check the Inventor &lt;BR /&gt;
FAQ for most common questions&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
href="http://www.sdotson.com/faq.html"&amp;gt;www.sdotson.com/faq.html&lt;/A&gt;&lt;BR /&gt;-----------------------------------------------------------------------&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RuiF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb"&amp;gt;news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Those are some of the reasons why I wanted to &lt;BR /&gt;
  keep this as an application macro.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Is there any way for a document macro to call an &lt;BR /&gt;
  application program to run?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;At least then the document would contain very &lt;BR /&gt;
  little code.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Like I said, ideally, I would have an &lt;BR /&gt;
  application macro that ran every time a feature in a part was commited, but so &lt;BR /&gt;
  far nobody has been able to help me (added to the fact that I'm relatively new &lt;BR /&gt;
  to IV and VBA, the scenario doesn't get better).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I've been looking at transactions, although I'm &lt;BR /&gt;
  not sure if that's what I want.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks in advance for any input you guys may &lt;BR /&gt;
  have.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"Kent Keller" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:kent@strobedata.com"&amp;gt;kent@strobedata.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message &lt;A&gt;&lt;BR /&gt;
    href="news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb"&amp;gt;news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Ruif&lt;BR /&gt;&lt;BR /&gt;You &lt;BR /&gt;
    may want to read the Subject VBA creation started on the 18th of this &lt;BR /&gt;
    month.&amp;nbsp; Using&lt;BR /&gt;the Auto macros in your templates is not &lt;BR /&gt;
    suggested.&amp;nbsp;&amp;nbsp; Also read the subject "A limit to&lt;BR /&gt;the # of VBA &lt;BR /&gt;
    project loaded at one time?" thread started on the &lt;BR /&gt;
    16th&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Kent&lt;BR /&gt;Assistant Moderator&lt;BR /&gt;Autodesk Discussion Forum &lt;BR /&gt;
    Moderator Program&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
    href="news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb"&amp;gt;news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
    Excellent!! Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Now for making my program &lt;BR /&gt;
    better:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 1. Can I add this to a template file so it's &lt;BR /&gt;
    available to all parts?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 2. Can something similar be done so &lt;BR /&gt;
    the program runs when I commit a feature?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks for the &lt;BR /&gt;
    help so far.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Rui&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; "Xavier Collet" &lt;BR /&gt;
    &amp;lt;&lt;A href="mailto:xcollet@hurni.ch"&gt;xcollet@hurni.ch&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
    href="news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb"&amp;gt;news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
    Yes, you should use the AutoSave:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; This code &lt;BR /&gt;
    should be add into the "Autodesk Inventor Objects\ThisDocument" &lt;BR /&gt;
    section.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Public Sub &lt;BR /&gt;
    AutoSave_DoNothing()&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox &lt;BR /&gt;
    "This macro do... nothing"&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; End &lt;BR /&gt;
    Sub&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; The message will be prompt each time you &lt;BR /&gt;
    save the file (replace the "DoNothig" with&lt;BR /&gt;your function &lt;BR /&gt;
    name).&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Xavier&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
    "RuF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; a &lt;BR /&gt;
    écrit dans le message de&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
    href="news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb"&amp;gt;news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
    Hi all&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm still looking for a &lt;BR /&gt;
    solution, and I'm sure it's there.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
    Is there any method of running a macro automatically when I save a &lt;BR /&gt;
    file?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
    Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
  Rui&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 10:27:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760396#M168883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T10:27:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760397#M168884</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I just posted an update of the utility in customer &lt;BR /&gt;
files.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;-Brian&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RuiF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:2CA5200EF577EE745FCBD354CDE7FD20@in.WebX.maYIadrTaRb"&amp;gt;news:2CA5200EF577EE745FCBD354CDE7FD20@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks Kent&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Hadn't seen the post in iCF.&amp;nbsp; Going to look &lt;BR /&gt;
  at that.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"Kent Keller" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:kent@strobedata.com"&amp;gt;kent@strobedata.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message &lt;A&gt;&lt;BR /&gt;
    href="news:8AEA8105037A629F050858FC8EBB5D94@in.WebX.maYIadrTaRb"&amp;gt;news:8AEA8105037A629F050858FC8EBB5D94@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;In &lt;BR /&gt;
    that thread I pointed you to Brian had posted a solution.&amp;nbsp; Someone had &lt;BR /&gt;
    a bit of a&lt;BR /&gt;problem with it so he said he was looking into improving the &lt;BR /&gt;
    code as I remember.&amp;nbsp; Might&lt;BR /&gt;want to reread the &lt;BR /&gt;
    thread.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Kent&lt;BR /&gt;Assistant Moderator&lt;BR /&gt;Autodesk Discussion &lt;BR /&gt;
    Forum Moderator Program&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
    href="news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb"&amp;gt;news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
    Those are some of the reasons why I wanted to keep this as an application &lt;BR /&gt;
    macro.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Is there any way for a document macro to call an &lt;BR /&gt;
    application program to &lt;BR /&gt;
run?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 10:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760397#M168884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T10:35:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760398#M168885</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Not that I'm 100% sure of what an addin is &lt;BR /&gt;
exactly, but I'm almost sure you can't do it with VBA can you?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Sean Dotson" &amp;lt;sean at sdotson dot com&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:EA60C71EEF80B6865DBDDFA5F69C9B82@in.WebX.maYIadrTaRb"&amp;gt;news:EA60C71EEF80B6865DBDDFA5F69C9B82@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I wouldn't even recommend that.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I had a few hundred parts with nothing but a &lt;BR /&gt;
  small sub (3-4 lines) and it kept crashing VBA.&amp;nbsp; Inventor was fine but &lt;BR /&gt;
  the VBA environment couldn't handle it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I'd look at making it an add-in. (which is what I &lt;BR /&gt;
  ended up doing with my document code)&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&lt;BR /&gt;-- &lt;BR /&gt;Sean Dotson, PE&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="http://www.sdotson.com"&amp;gt;http://www.sdotson.com&lt;/A&gt;&lt;BR /&gt;Check the Inventor &lt;BR /&gt;
  FAQ for most common questions&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="http://www.sdotson.com/faq.html"&amp;gt;www.sdotson.com/faq.html&lt;/A&gt;&lt;BR /&gt;-----------------------------------------------------------------------&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in message &lt;BR /&gt;
    &lt;A&gt;&lt;BR /&gt;
    href="news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb"&amp;gt;news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Those are some of the reasons why I wanted to &lt;BR /&gt;
    keep this as an application macro.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Is there any way for a document macro to call &lt;BR /&gt;
    an application program to run?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;At least then the document would contain very &lt;BR /&gt;
    little code.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Like I said, ideally, I would have an &lt;BR /&gt;
    application macro that ran every time a feature in a part was commited, but &lt;BR /&gt;
    so far nobody has been able to help me (added to the fact that I'm &lt;BR /&gt;
    relatively new to IV and VBA, the scenario doesn't get better).&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I've been looking at transactions, although &lt;BR /&gt;
    I'm not sure if that's what I want.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks in advance for any input you guys may &lt;BR /&gt;
    have.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;BLOCKQUOTE&gt;&lt;BR /&gt;
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
      &lt;DIV&gt;"Kent Keller" &amp;lt;&lt;A&gt;&lt;BR /&gt;
      href="mailto:kent@strobedata.com"&amp;gt;kent@strobedata.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
      message &lt;A&gt;&lt;BR /&gt;
      href="news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb"&amp;gt;news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Ruif&lt;BR /&gt;&lt;BR /&gt;You &lt;BR /&gt;
      may want to read the Subject VBA creation started on the 18th of this &lt;BR /&gt;
      month.&amp;nbsp; Using&lt;BR /&gt;the Auto macros in your templates is not &lt;BR /&gt;
      suggested.&amp;nbsp;&amp;nbsp; Also read the subject "A limit to&lt;BR /&gt;the # of VBA &lt;BR /&gt;
      project loaded at one time?" thread started on the &lt;BR /&gt;
      16th&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Kent&lt;BR /&gt;Assistant Moderator&lt;BR /&gt;Autodesk Discussion Forum &lt;BR /&gt;
      Moderator Program&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
      href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
      message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
      href="news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb"&amp;gt;news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
      Excellent!! Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Now for making my program &lt;BR /&gt;
      better:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 1. Can I add this to a template file so it's &lt;BR /&gt;
      available to all parts?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; 2. Can something similar be done &lt;BR /&gt;
      so the program runs when I commit a feature?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Thanks for &lt;BR /&gt;
      the help so far.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Rui&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; "Xavier &lt;BR /&gt;
      Collet" &amp;lt;&lt;A href="mailto:xcollet@hurni.ch"&gt;xcollet@hurni.ch&lt;/A&gt;&amp;gt; &lt;BR /&gt;
      wrote in message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
      href="news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb"&amp;gt;news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
      Yes, you should use the AutoSave:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; This code &lt;BR /&gt;
      should be add into the "Autodesk Inventor Objects\ThisDocument" &lt;BR /&gt;
      section.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Public Sub &lt;BR /&gt;
      AutoSave_DoNothing()&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox &lt;BR /&gt;
      "This macro do... nothing"&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; End &lt;BR /&gt;
      Sub&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; The message will be prompt each time you &lt;BR /&gt;
      save the file (replace the "DoNothig" with&lt;BR /&gt;your function &lt;BR /&gt;
      name).&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp; Xavier&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
      "RuF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; a &lt;BR /&gt;
      écrit dans le message de&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
      href="news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb"&amp;gt;news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
      Hi all&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm still looking for a &lt;BR /&gt;
      solution, and I'm sure it's there.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
      Is there any method of running a macro automatically when I save a &lt;BR /&gt;
      file?&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
      Thanks&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;
    Rui&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 23 Sep 2003 10:48:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760398#M168885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760399#M168886</link>
      <description>No you can't, it takes full blown VB, but Brians solution should work for you I would&lt;BR /&gt;
think.  It is a Addin&lt;G&gt;&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent&lt;BR /&gt;
Assistant Moderator&lt;BR /&gt;
Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
news:2C21C45E6DBF787879580993851FC7FD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Not that I'm 100% sure of what an addin is exactly, but I'm almost sure you can't do it&lt;BR /&gt;
with VBA can you?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Rui&lt;BR /&gt;
&amp;gt;   "Sean Dotson" &lt;SEAN at="" sdotson="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:EA60C71EEF80B6865DBDDFA5F69C9B82@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;   I wouldn't even recommend that.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   I had a few hundred parts with nothing but a small sub (3-4 lines) and it kept&lt;BR /&gt;
crashing VBA.  Inventor was fine but the VBA environment couldn't handle it.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   I'd look at making it an add-in. (which is what I ended up doing with my document&lt;BR /&gt;
code)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;   --&lt;BR /&gt;
&amp;gt;   Sean Dotson, PE&lt;BR /&gt;
&amp;gt;   http://www.sdotson.com&lt;BR /&gt;
&amp;gt;   Check the Inventor FAQ for most common questions&lt;BR /&gt;
&amp;gt;   www.sdotson.com/faq.html&lt;BR /&gt;
&amp;gt;   -----------------------------------------------------------------------&lt;BR /&gt;
&amp;gt;     "RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;     Those are some of the reasons why I wanted to keep this as an application macro.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Is there any way for a document macro to call an application program to run?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     At least then the document would contain very little code.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Like I said, ideally, I would have an application macro that ran every time a&lt;BR /&gt;
feature in a part was commited, but so far nobody has been able to help me (added to the&lt;BR /&gt;
fact that I'm relatively new to IV and VBA, the scenario doesn't get better).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     I've been looking at transactions, although I'm not sure if that's what I want.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Thanks in advance for any input you guys may have.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;     Rui&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;       "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;       Ruif&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;       You may want to read the Subject VBA creation started on the 18th of this month.&lt;BR /&gt;
Using&lt;BR /&gt;
&amp;gt;       the Auto macros in your templates is not suggested.   Also read the subject "A&lt;BR /&gt;
limit to&lt;BR /&gt;
&amp;gt;       the # of VBA project loaded at one time?" thread started on the 16th&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;       --&lt;BR /&gt;
&amp;gt;       Kent&lt;BR /&gt;
&amp;gt;       Assistant Moderator&lt;BR /&gt;
&amp;gt;       Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;       "RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
&amp;gt;       news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;       &amp;gt; Excellent!! Thanks&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt; Now for making my program better:&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt; 1. Can I add this to a template file so it's available to all parts?&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt; 2. Can something similar be done so the program runs when I commit a feature?&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt; Thanks for the help so far.&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt; Rui&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;   "Xavier Collet" &lt;XCOLLET&gt; wrote in message&lt;BR /&gt;
&amp;gt;       news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;       &amp;gt;   Yes, you should use the AutoSave:&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;   This code should be add into the "Autodesk Inventor Objects\ThisDocument"&lt;BR /&gt;
section.&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;   Public Sub AutoSave_DoNothing()&lt;BR /&gt;
&amp;gt;       &amp;gt;       MsgBox "This macro do... nothing"&lt;BR /&gt;
&amp;gt;       &amp;gt;   End Sub&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;   The message will be prompt each time you save the file (replace the "DoNothig"&lt;BR /&gt;
with&lt;BR /&gt;
&amp;gt;       your function name).&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;   Xavier&lt;BR /&gt;
&amp;gt;       &amp;gt;     "RuF" &lt;RUI.CAD&gt; a écrit dans le message de&lt;BR /&gt;
&amp;gt;       news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt;       &amp;gt;     Hi all&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;     I'm still looking for a solution, and I'm sure it's there.&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;     Is there any method of running a macro automatically when I save a file?&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;     Thanks&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;     Rui&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUI.CAD&gt;&lt;/XCOLLET&gt;&lt;/RUI.CAD&gt;&lt;/KENT&gt;&lt;/RUI.CAD&gt;&lt;/SEAN&gt;&lt;/RUI.CAD&gt;&lt;/G&gt;</description>
      <pubDate>Tue, 23 Sep 2003 11:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760399#M168886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760400#M168887</link>
      <description>Kent, he would still need to have the code to call the add-in in his&lt;BR /&gt;
document project (if I understand Brian's example, I haven't downloaded it&lt;BR /&gt;
yet).&lt;BR /&gt;
&lt;BR /&gt;
If he puts this in bit of code in each and every part, sooner or later it's&lt;BR /&gt;
going to blow up in any decent sized assy.  I've been doing some more&lt;BR /&gt;
reading on VBA's memory handling and it's not the best in the world...&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Sean Dotson, PE&lt;BR /&gt;
http://www.sdotson.com&lt;BR /&gt;
Check the Inventor FAQ for most common questions&lt;BR /&gt;
www.sdotson.com/faq.html&lt;BR /&gt;
-----------------------------------------------------------------------&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:D8892C8C4E2D3CBF6ED97E7687971B8B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; No you can't, it takes full blown VB, but Brians solution should work for&lt;BR /&gt;
you I would&lt;BR /&gt;
&amp;gt; think.  It is a Addin&lt;G&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent&lt;BR /&gt;
&amp;gt; Assistant Moderator&lt;BR /&gt;
&amp;gt; Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:2C21C45E6DBF787879580993851FC7FD@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Not that I'm 100% sure of what an addin is exactly, but I'm almost sure&lt;BR /&gt;
you can't do it&lt;BR /&gt;
&amp;gt; with VBA can you?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Rui&lt;BR /&gt;
&amp;gt; &amp;gt;   "Sean Dotson" &lt;SEAN at="" sdotson="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:EA60C71EEF80B6865DBDDFA5F69C9B82@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;   I wouldn't even recommend that.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;   I had a few hundred parts with nothing but a small sub (3-4 lines) and&lt;BR /&gt;
it kept&lt;BR /&gt;
&amp;gt; crashing VBA.  Inventor was fine but the VBA environment couldn't handle&lt;BR /&gt;
it.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;   I'd look at making it an add-in. (which is what I ended up doing with&lt;BR /&gt;
my document&lt;BR /&gt;
&amp;gt; code)&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;   --&lt;BR /&gt;
&amp;gt; &amp;gt;   Sean Dotson, PE&lt;BR /&gt;
&amp;gt; &amp;gt;   http://www.sdotson.com&lt;BR /&gt;
&amp;gt; &amp;gt;   Check the Inventor FAQ for most common questions&lt;BR /&gt;
&amp;gt; &amp;gt;   www.sdotson.com/faq.html&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
  -----------------------------------------------------------------------&lt;BR /&gt;
&amp;gt; &amp;gt;     "RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:14D83A200187C47B4409DB1B0215BDA9@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;     Those are some of the reasons why I wanted to keep this as an&lt;BR /&gt;
application macro.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Is there any way for a document macro to call an application program&lt;BR /&gt;
to run?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     At least then the document would contain very little code.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Like I said, ideally, I would have an application macro that ran&lt;BR /&gt;
every time a&lt;BR /&gt;
&amp;gt; feature in a part was commited, but so far nobody has been able to help me&lt;BR /&gt;
(added to the&lt;BR /&gt;
&amp;gt; fact that I'm relatively new to IV and VBA, the scenario doesn't get&lt;BR /&gt;
better).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     I've been looking at transactions, although I'm not sure if that's&lt;BR /&gt;
what I want.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Thanks in advance for any input you guys may have.&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;     Rui&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:1355BB64A8DC1A7456AF32A38757749B@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;       Ruif&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       You may want to read the Subject VBA creation started on the 18th&lt;BR /&gt;
of this month.&lt;BR /&gt;
&amp;gt; Using&lt;BR /&gt;
&amp;gt; &amp;gt;       the Auto macros in your templates is not suggested.   Also read&lt;BR /&gt;
the subject "A&lt;BR /&gt;
&amp;gt; limit to&lt;BR /&gt;
&amp;gt; &amp;gt;       the # of VBA project loaded at one time?" thread started on the&lt;BR /&gt;
16th&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       --&lt;BR /&gt;
&amp;gt; &amp;gt;       Kent&lt;BR /&gt;
&amp;gt; &amp;gt;       Assistant Moderator&lt;BR /&gt;
&amp;gt; &amp;gt;       Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       "RuiF" &lt;RUI.CAD&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt;       news:D2BA59B40BDB3BD6C3A7063FBBAF1B30@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt; Excellent!! Thanks&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt; Now for making my program better:&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt; 1. Can I add this to a template file so it's available to all&lt;BR /&gt;
parts?&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt; 2. Can something similar be done so the program runs when I&lt;BR /&gt;
commit a feature?&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt; Thanks for the help so far.&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt; Rui&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   "Xavier Collet" &lt;XCOLLET&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt;       news:8244FAFC61BED280D94AFFCBF2D04838@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   Yes, you should use the AutoSave:&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   This code should be add into the "Autodesk Inventor&lt;BR /&gt;
Objects\ThisDocument"&lt;BR /&gt;
&amp;gt; section.&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   Public Sub AutoSave_DoNothing()&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;       MsgBox "This macro do... nothing"&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   End Sub&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   The message will be prompt each time you save the file&lt;BR /&gt;
(replace the "DoNothig"&lt;BR /&gt;
&amp;gt; with&lt;BR /&gt;
&amp;gt; &amp;gt;       your function name).&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;   Xavier&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;     "RuF" &lt;RUI.CAD&gt; a écrit dans le message de&lt;BR /&gt;
&amp;gt; &amp;gt;       news:149D88C0BC9E882FB314B8249580AA23@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;     Hi all&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;     I'm still looking for a solution, and I'm sure it's there.&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;     Is there any method of running a macro automatically when I&lt;BR /&gt;
save a file?&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;     Thanks&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;     Rui&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;       &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/RUI.CAD&gt;&lt;/XCOLLET&gt;&lt;/RUI.CAD&gt;&lt;/KENT&gt;&lt;/RUI.CAD&gt;&lt;/SEAN&gt;&lt;/RUI.CAD&gt;&lt;/G&gt;&lt;/KENT&gt;</description>
      <pubDate>Tue, 23 Sep 2003 13:19:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760400#M168887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T13:19:45Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760401#M168888</link>
      <description>well I haven't had a chance to look at Brian's addin yet either, but as I understood it,&lt;BR /&gt;
the program ran a normal macro such as in your default.ivb  8^)  No need to have it in&lt;BR /&gt;
every file.   I am sure Brian will correct me if I am wrong&lt;G&gt;&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent&lt;BR /&gt;
Assistant Moderator&lt;BR /&gt;
Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Sean Dotson" &lt;SEAN at="" sdotson="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Kent, he would still need to have the code to call the add-in in his&lt;BR /&gt;
&amp;gt; document project (if I understand Brian's example, I haven't downloaded it&lt;BR /&gt;
&amp;gt; yet).&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; If he puts this in bit of code in each and every part, sooner or later it's&lt;BR /&gt;
&amp;gt; going to blow up in any decent sized assy.  I've been doing some more&lt;BR /&gt;
&amp;gt; reading on VBA's memory handling and it's not the best in the world...&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Sean Dotson, PE&lt;BR /&gt;
&amp;gt; http://www.sdotson.com&lt;BR /&gt;
&amp;gt; Check the Inventor FAQ for most common questions&lt;BR /&gt;
&amp;gt; www.sdotson.com/faq.html&lt;/SEAN&gt;&lt;/G&gt;</description>
      <pubDate>Tue, 23 Sep 2003 13:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760401#M168888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760402#M168889</link>
      <description>Kent's right.  This allows you to have an automatic macro in the default&lt;BR /&gt;
ivb.  This allows you to now do a lot of things with VBA that previously you&lt;BR /&gt;
could only do using an Add-In.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Developer Technical Services, Autodesk&lt;BR /&gt;
Discussion Q&amp;amp;A: http://www.autodesk.com/discussion&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; well I haven't had a chance to look at Brian's addin yet either, but as I&lt;BR /&gt;
understood it,&lt;BR /&gt;
&amp;gt; the program ran a normal macro such as in your default.ivb  8^)  No need&lt;BR /&gt;
to have it in&lt;BR /&gt;
&amp;gt; every file.   I am sure Brian will correct me if I am wrong&lt;G&gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent&lt;BR /&gt;
&amp;gt; Assistant Moderator&lt;BR /&gt;
&amp;gt; Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Sean Dotson" &lt;SEAN at="" sdotson="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; Kent, he would still need to have the code to call the add-in in his&lt;BR /&gt;
&amp;gt; &amp;gt; document project (if I understand Brian's example, I haven't downloaded&lt;BR /&gt;
it&lt;BR /&gt;
&amp;gt; &amp;gt; yet).&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; If he puts this in bit of code in each and every part, sooner or later&lt;BR /&gt;
it's&lt;BR /&gt;
&amp;gt; &amp;gt; going to blow up in any decent sized assy.  I've been doing some more&lt;BR /&gt;
&amp;gt; &amp;gt; reading on VBA's memory handling and it's not the best in the world...&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Sean Dotson, PE&lt;BR /&gt;
&amp;gt; &amp;gt; http://www.sdotson.com&lt;BR /&gt;
&amp;gt; &amp;gt; Check the Inventor FAQ for most common questions&lt;BR /&gt;
&amp;gt; &amp;gt; www.sdotson.com/faq.html&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/SEAN&gt;&lt;/G&gt;&lt;/KENT&gt;</description>
      <pubDate>Tue, 23 Sep 2003 14:01:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760402#M168889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-23T14:01:23Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760403#M168890</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Brian:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Great job, working perfectly .... &lt;BR /&gt;
almost.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Probably me, or something I have done wrong, but &lt;BR /&gt;
what I did was copy your clsEvents class module to my default ivb class &lt;BR /&gt;
&amp;nbsp;module and I copied some of your code to create the macro I &lt;BR /&gt;
wanted.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;This is working perfectly, every time I save the &lt;BR /&gt;
macro runs.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Problem: I had/have other modules with macros &lt;BR /&gt;
assigned to buttons on toolbars.&amp;nbsp; The macros run OK from the MACRO, RUN &lt;BR /&gt;
dialog, but when I click the button nothing happens.&amp;nbsp; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Any clues?&amp;nbsp; Have I done something &lt;BR /&gt;
wrong?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I attached a screen shot of my setup.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Brian Ekins (Autodesk)" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:brian.ekins@autodesk.com"&amp;gt;brian.ekins@autodesk.com&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
  in message &lt;A&gt;&lt;BR /&gt;
  href="news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb"&amp;gt;news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Kent's &lt;BR /&gt;
  right.&amp;nbsp; This allows you to have an automatic macro in the &lt;BR /&gt;
  default&lt;BR /&gt;ivb.&amp;nbsp; This allows you to now do a lot of things with VBA that &lt;BR /&gt;
  previously you&lt;BR /&gt;could only do using an Add-In.&lt;BR /&gt;-- &lt;BR /&gt;Brian &lt;BR /&gt;
  Ekins&lt;BR /&gt;Developer Technical Services, Autodesk&lt;BR /&gt;Discussion Q&amp;amp;A: &lt;A&gt;&lt;BR /&gt;
  href="http://www.autodesk.com/discussion"&amp;gt;http://www.autodesk.com/discussion&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Kent &lt;BR /&gt;
  Keller" &amp;lt;&lt;A href="mailto:kent@strobedata.com"&gt;kent@strobedata.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
  href="news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb"&amp;gt;news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  well I haven't had a chance to look at Brian's addin yet either, but as &lt;BR /&gt;
  I&lt;BR /&gt;understood it,&lt;BR /&gt;&amp;gt; the program ran a normal macro such as in your &lt;BR /&gt;
  default.ivb&amp;nbsp; 8^)&amp;nbsp; No need&lt;BR /&gt;to have it in&lt;BR /&gt;&amp;gt; every &lt;BR /&gt;
  file.&amp;nbsp;&amp;nbsp; I am sure Brian will correct me if I am &lt;BR /&gt;
  wrong&amp;lt;G&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; --&lt;BR /&gt;&amp;gt; Kent&lt;BR /&gt;&amp;gt; Assistant &lt;BR /&gt;
  Moderator&lt;BR /&gt;&amp;gt; Autodesk Discussion Forum Moderator &lt;BR /&gt;
  Program&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; "Sean Dotson" &amp;lt;sean at sdotson dot com&amp;gt; &lt;BR /&gt;
  wrote in message&lt;BR /&gt;&amp;gt; &lt;A&gt;&lt;BR /&gt;
  href="news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb"&amp;gt;news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  &amp;gt; Kent, he would still need to have the code to call the add-in in &lt;BR /&gt;
  his&lt;BR /&gt;&amp;gt; &amp;gt; document project (if I understand Brian's example, I haven't &lt;BR /&gt;
  downloaded&lt;BR /&gt;it&lt;BR /&gt;&amp;gt; &amp;gt; yet).&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; If he puts this &lt;BR /&gt;
  in bit of code in each and every part, sooner or later&lt;BR /&gt;it's&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
  going to blow up in any decent sized assy.&amp;nbsp; I've been doing some &lt;BR /&gt;
  more&lt;BR /&gt;&amp;gt; &amp;gt; reading on VBA's memory handling and it's not the best in &lt;BR /&gt;
  the world...&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; --&lt;BR /&gt;&amp;gt; &amp;gt; Sean Dotson, PE&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
  &amp;gt; &lt;A href="http://www.sdotson.com"&gt;http://www.sdotson.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
  Check the Inventor FAQ for most common questions&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A&gt;&lt;BR /&gt;
  href="http://www.sdotson.com/faq.html"&amp;gt;www.sdotson.com/faq.html&lt;/A&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 24 Sep 2003 00:10:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760403#M168890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-24T00:10:20Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760404#M168891</link>
      <description>Ah, gotcha.  That's good.  Don't want all that code running around in the&lt;BR /&gt;
part files.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Sean Dotson, PE&lt;BR /&gt;
http://www.sdotson.com&lt;BR /&gt;
Check the Inventor FAQ for most common questions&lt;BR /&gt;
www.sdotson.com/faq.html&lt;BR /&gt;
-----------------------------------------------------------------------&lt;BR /&gt;
"Brian Ekins (Autodesk)" &lt;BRIAN.EKINS&gt; wrote in message&lt;BR /&gt;
news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; Kent's right.  This allows you to have an automatic macro in the default&lt;BR /&gt;
&amp;gt; ivb.  This allows you to now do a lot of things with VBA that previously&lt;BR /&gt;
you&lt;BR /&gt;
&amp;gt; could only do using an Add-In.&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Brian Ekins&lt;BR /&gt;
&amp;gt; Developer Technical Services, Autodesk&lt;BR /&gt;
&amp;gt; Discussion Q&amp;amp;A: http://www.autodesk.com/discussion&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; well I haven't had a chance to look at Brian's addin yet either, but as&lt;BR /&gt;
I&lt;BR /&gt;
&amp;gt; understood it,&lt;BR /&gt;
&amp;gt; &amp;gt; the program ran a normal macro such as in your default.ivb  8^)  No need&lt;BR /&gt;
&amp;gt; to have it in&lt;BR /&gt;
&amp;gt; &amp;gt; every file.   I am sure Brian will correct me if I am wrong&lt;G&gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; Kent&lt;BR /&gt;
&amp;gt; &amp;gt; Assistant Moderator&lt;BR /&gt;
&amp;gt; &amp;gt; Autodesk Discussion Forum Moderator Program&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; "Sean Dotson" &lt;SEAN at="" sdotson="" dot="" com=""&gt; wrote in message&lt;BR /&gt;
&amp;gt; &amp;gt; news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Kent, he would still need to have the code to call the add-in in his&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; document project (if I understand Brian's example, I haven't&lt;BR /&gt;
downloaded&lt;BR /&gt;
&amp;gt; it&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; yet).&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; If he puts this in bit of code in each and every part, sooner or later&lt;BR /&gt;
&amp;gt; it's&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; going to blow up in any decent sized assy.  I've been doing some more&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; reading on VBA's memory handling and it's not the best in the world...&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; --&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Sean Dotson, PE&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; http://www.sdotson.com&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; Check the Inventor FAQ for most common questions&lt;BR /&gt;
&amp;gt; &amp;gt; &amp;gt; www.sdotson.com/faq.html&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt;&lt;/SEAN&gt;&lt;/G&gt;&lt;/KENT&gt;&lt;/BRIAN.EKINS&gt;</description>
      <pubDate>Wed, 24 Sep 2003 08:34:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760404#M168891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-24T08:34:11Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760405#M168892</link>
      <description>&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Brian:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;No clues as to why my other macros don't run via a &lt;BR /&gt;
button now?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RuiF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:E6A110FB0EF3EB35477D59F0AA3B741B@in.WebX.maYIadrTaRb"&amp;gt;news:E6A110FB0EF3EB35477D59F0AA3B741B@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Brian:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Great job, working perfectly .... &lt;BR /&gt;
  almost.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Probably me, or something I have done wrong, but &lt;BR /&gt;
  what I did was copy your clsEvents class module to my default ivb class &lt;BR /&gt;
  &amp;nbsp;module and I copied some of your code to create the macro I &lt;BR /&gt;
  wanted.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;This is working perfectly, every time I save the &lt;BR /&gt;
  macro runs.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Problem: I had/have other modules with macros &lt;BR /&gt;
  assigned to buttons on toolbars.&amp;nbsp; The macros run OK from the MACRO, RUN &lt;BR /&gt;
  dialog, but when I click the button nothing happens.&amp;nbsp; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Any clues?&amp;nbsp; Have I done something &lt;BR /&gt;
  wrong?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I attached a screen shot of my &lt;BR /&gt;
  setup.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"Brian Ekins (Autodesk)" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:brian.ekins@autodesk.com"&amp;gt;brian.ekins@autodesk.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
    wrote in message &lt;A&gt;&lt;BR /&gt;
    href="news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb"&amp;gt;news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Kent's &lt;BR /&gt;
    right.&amp;nbsp; This allows you to have an automatic macro in the &lt;BR /&gt;
    default&lt;BR /&gt;ivb.&amp;nbsp; This allows you to now do a lot of things with VBA &lt;BR /&gt;
    that previously you&lt;BR /&gt;could only do using an Add-In.&lt;BR /&gt;-- &lt;BR /&gt;Brian &lt;BR /&gt;
    Ekins&lt;BR /&gt;Developer Technical Services, Autodesk&lt;BR /&gt;Discussion Q&amp;amp;A: &lt;A&gt;&lt;BR /&gt;
    href="http://www.autodesk.com/discussion"&amp;gt;http://www.autodesk.com/discussion&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Kent &lt;BR /&gt;
    Keller" &amp;lt;&lt;A href="mailto:kent@strobedata.com"&gt;kent@strobedata.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
    wrote in message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
    href="news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb"&amp;gt;news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
    well I haven't had a chance to look at Brian's addin yet either, but as &lt;BR /&gt;
    I&lt;BR /&gt;understood it,&lt;BR /&gt;&amp;gt; the program ran a normal macro such as in your &lt;BR /&gt;
    default.ivb&amp;nbsp; 8^)&amp;nbsp; No need&lt;BR /&gt;to have it in&lt;BR /&gt;&amp;gt; every &lt;BR /&gt;
    file.&amp;nbsp;&amp;nbsp; I am sure Brian will correct me if I am &lt;BR /&gt;
    wrong&amp;lt;G&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; --&lt;BR /&gt;&amp;gt; Kent&lt;BR /&gt;&amp;gt; Assistant &lt;BR /&gt;
    Moderator&lt;BR /&gt;&amp;gt; Autodesk Discussion Forum Moderator &lt;BR /&gt;
    Program&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; "Sean Dotson" &amp;lt;sean at sdotson dot &lt;BR /&gt;
    com&amp;gt; wrote in message&lt;BR /&gt;&amp;gt; &lt;A&gt;&lt;BR /&gt;
    href="news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb"&amp;gt;news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
    &amp;gt; Kent, he would still need to have the code to call the add-in in &lt;BR /&gt;
    his&lt;BR /&gt;&amp;gt; &amp;gt; document project (if I understand Brian's example, I &lt;BR /&gt;
    haven't downloaded&lt;BR /&gt;it&lt;BR /&gt;&amp;gt; &amp;gt; yet).&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; If he &lt;BR /&gt;
    puts this in bit of code in each and every part, sooner or &lt;BR /&gt;
    later&lt;BR /&gt;it's&lt;BR /&gt;&amp;gt; &amp;gt; going to blow up in any decent sized assy.&amp;nbsp; &lt;BR /&gt;
    I've been doing some more&lt;BR /&gt;&amp;gt; &amp;gt; reading on VBA's memory handling and &lt;BR /&gt;
    it's not the best in the world...&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; --&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
    Sean Dotson, PE&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A&gt;&lt;BR /&gt;
    href="http://www.sdotson.com"&amp;gt;http://www.sdotson.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; &amp;gt; Check &lt;BR /&gt;
    the Inventor FAQ for most common questions&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A&gt;&lt;BR /&gt;
    href="http://www.sdotson.com/faq.html"&amp;gt;www.sdotson.com/faq.html&lt;/A&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 24 Sep 2003 23:33:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760405#M168892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-24T23:33:43Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760406#M168893</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Hi Rui,&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;I was able to reproduce your problem and did a bit &lt;BR /&gt;
of investigation and have found the problem.&amp;nbsp; It is related to this &lt;BR /&gt;
Add-In.&amp;nbsp; When you start Inventor, my Add-In looks for and runs the &lt;BR /&gt;
AutoStart macro.&amp;nbsp; In Inventor 7, the application project wasn't actually &lt;BR /&gt;
loaded until the VBA editor was invoked.&amp;nbsp; Because of this my Add-In loaded &lt;BR /&gt;
the application project.&amp;nbsp; However, Inventor became confused and thought &lt;BR /&gt;
this was a user project since it had been loaded by someone else.&amp;nbsp; This &lt;BR /&gt;
messes up Inventor being able to find macros that are associated with buttons &lt;BR /&gt;
and also breaks the ability to add new buttons for macros.&amp;nbsp; The behavior in &lt;BR /&gt;
Inventor 8 has already been changed so that if you access the VBA projects &lt;BR /&gt;
through the API it will automatically force the loading of the application &lt;BR /&gt;
project.&amp;nbsp; Because of this change, my Add-In works correctly with Inventor &lt;BR /&gt;
8, although I'll probably post a newer version for 8 because I can actually &lt;BR /&gt;
simplify my code quite a bit.&lt;BR /&gt;-- &lt;BR /&gt;Brian Ekins&lt;BR /&gt;Developer Technical &lt;BR /&gt;
Services, Autodesk&lt;BR /&gt;Discussion Q&amp;amp;A: &lt;A&gt;&lt;BR /&gt;
href="http://www.autodesk.com/discussion"&amp;gt;http://www.autodesk.com/discussion&lt;/A&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"RuiF" &amp;lt;&lt;A href="mailto:rui.cad@netcabo.pt"&gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; &lt;BR /&gt;
  wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:949FBC54D37CB3FCFCB1E71061292182@in.WebX.maYIadrTaRb"&amp;gt;news:949FBC54D37CB3FCFCB1E71061292182@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Brian:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;No clues as to why my other macros don't run via &lt;BR /&gt;
  a button now?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"RuiF" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:rui.cad@netcabo.pt"&amp;gt;rui.cad@netcabo.pt&lt;/A&gt;&amp;gt; wrote in message &lt;BR /&gt;
    &lt;A&gt;&lt;BR /&gt;
    href="news:E6A110FB0EF3EB35477D59F0AA3B741B@in.WebX.maYIadrTaRb"&amp;gt;news:E6A110FB0EF3EB35477D59F0AA3B741B@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Brian:&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Great job, working perfectly .... &lt;BR /&gt;
    almost.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Probably me, or something I have done wrong, &lt;BR /&gt;
    but what I did was copy your clsEvents class module to my default ivb class &lt;BR /&gt;
    &amp;nbsp;module and I copied some of your code to create the macro I &lt;BR /&gt;
    wanted.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;This is working perfectly, every time I save &lt;BR /&gt;
    the macro runs.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Problem: I had/have other modules with macros &lt;BR /&gt;
    assigned to buttons on toolbars.&amp;nbsp; The macros run OK from the MACRO, RUN &lt;BR /&gt;
    dialog, but when I click the button nothing happens.&amp;nbsp; &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Any clues?&amp;nbsp; Have I done something &lt;BR /&gt;
    wrong?&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;I attached a screen shot of my &lt;BR /&gt;
    setup.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;Rui&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Tahoma" size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;BLOCKQUOTE&gt;&lt;BR /&gt;
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
      &lt;DIV&gt;"Brian Ekins (Autodesk)" &amp;lt;&lt;A&gt;&lt;BR /&gt;
      href="mailto:brian.ekins@autodesk.com"&amp;gt;brian.ekins@autodesk.com&lt;/A&gt;&amp;gt; &lt;BR /&gt;
      wrote in message &lt;A&gt;&lt;BR /&gt;
      href="news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb"&amp;gt;news:002AE70CACBB88605E548BD85A8FAC3C@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Kent's &lt;BR /&gt;
      right.&amp;nbsp; This allows you to have an automatic macro in the &lt;BR /&gt;
      default&lt;BR /&gt;ivb.&amp;nbsp; This allows you to now do a lot of things with VBA &lt;BR /&gt;
      that previously you&lt;BR /&gt;could only do using an Add-In.&lt;BR /&gt;-- &lt;BR /&gt;Brian &lt;BR /&gt;
      Ekins&lt;BR /&gt;Developer Technical Services, Autodesk&lt;BR /&gt;Discussion Q&amp;amp;A: &lt;A&gt;&lt;BR /&gt;
      href="http://www.autodesk.com/discussion"&amp;gt;http://www.autodesk.com/discussion&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"Kent &lt;BR /&gt;
      Keller" &amp;lt;&lt;A&gt;&lt;BR /&gt;
      href="mailto:kent@strobedata.com"&amp;gt;kent@strobedata.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
      message&lt;BR /&gt;&lt;A&gt;&lt;BR /&gt;
      href="news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb"&amp;gt;news:54438BDA5167013E4A9CD9F68337E300@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
      well I haven't had a chance to look at Brian's addin yet either, but as &lt;BR /&gt;
      I&lt;BR /&gt;understood it,&lt;BR /&gt;&amp;gt; the program ran a normal macro such as in your &lt;BR /&gt;
      default.ivb&amp;nbsp; 8^)&amp;nbsp; No need&lt;BR /&gt;to have it in&lt;BR /&gt;&amp;gt; every &lt;BR /&gt;
      file.&amp;nbsp;&amp;nbsp; I am sure Brian will correct me if I am &lt;BR /&gt;
      wrong&amp;lt;G&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; --&lt;BR /&gt;&amp;gt; Kent&lt;BR /&gt;&amp;gt; Assistant &lt;BR /&gt;
      Moderator&lt;BR /&gt;&amp;gt; Autodesk Discussion Forum Moderator &lt;BR /&gt;
      Program&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; "Sean Dotson" &amp;lt;sean at sdotson dot &lt;BR /&gt;
      com&amp;gt; wrote in message&lt;BR /&gt;&amp;gt; &lt;A&gt;&lt;BR /&gt;
      href="news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb"&amp;gt;news:7F6FC8DD585F6C9EFB249A32D232333E@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;BR /&gt;&amp;gt; &lt;BR /&gt;
      &amp;gt; Kent, he would still need to have the code to call the add-in in &lt;BR /&gt;
      his&lt;BR /&gt;&amp;gt; &amp;gt; document project (if I understand Brian's example, I &lt;BR /&gt;
      haven't downloaded&lt;BR /&gt;it&lt;BR /&gt;&amp;gt; &amp;gt; yet).&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; If &lt;BR /&gt;
      he puts this in bit of code in each and every part, sooner or &lt;BR /&gt;
      later&lt;BR /&gt;it's&lt;BR /&gt;&amp;gt; &amp;gt; going to blow up in any decent sized &lt;BR /&gt;
      assy.&amp;nbsp; I've been doing some more&lt;BR /&gt;&amp;gt; &amp;gt; reading on VBA's memory &lt;BR /&gt;
      handling and it's not the best in the world...&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
      --&lt;BR /&gt;&amp;gt; &amp;gt; Sean Dotson, PE&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A&gt;&lt;BR /&gt;
      href="http://www.sdotson.com"&amp;gt;http://www.sdotson.com&lt;/A&gt;&lt;BR /&gt;&amp;gt; &amp;gt; &lt;BR /&gt;
      Check the Inventor FAQ for most common questions&lt;BR /&gt;&amp;gt; &amp;gt; &lt;A&gt;&lt;BR /&gt;
      href="http://www.sdotson.com/faq.html"&amp;gt;www.sdotson.com/faq.html&lt;/A&gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 25 Sep 2003 13:26:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/automatic-macro-running/m-p/760406#M168893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2003-09-25T13:26:40Z</dc:date>
    </item>
  </channel>
</rss>

