<?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: editing macro in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4506913#M127965</link>
    <description>&lt;P&gt;As you have found out you cannot edit your VBA project whiie someone is using it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a Windows restriction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For myself I wrote a small VB.NET app that takes several path parameters and remembers them.&lt;/P&gt;&lt;P&gt;When I push a sychronize button This app copies the existing MasterInventor.ivb to an archive folder adding the date and time stamp to the file name. &amp;nbsp;Then the app&amp;nbsp;&lt;SPAN style="font-size: 11px; line-height: 14px;"&gt;takes my VBA development project and overwrites &amp;nbsp;the current MasterInventor.ivb with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my users each of whom have personally named vba projects &amp;nbsp;I wrote a second similar app that overwrites their personal VBA projects with the MasterInventor.ivb file. The users only run this app when I send them an email to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both apps are only run when Inventor or Autocad are shut down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What this does is make updates a one button push for both myself and my users.&lt;/P&gt;&lt;P&gt;Our Network VBA Project folder look something like the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AaronZ.ivb&lt;/P&gt;&lt;P&gt;FloydH.ivb&lt;/P&gt;&lt;P&gt;JohnB.ivb&lt;/P&gt;&lt;P&gt;JenC.ivb&lt;/P&gt;&lt;P&gt;MasterInventor.Ivb&lt;/P&gt;&lt;P&gt;&amp;lt;Me&amp;gt;.ivb&lt;/P&gt;&lt;P&gt;Etc...&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2013 21:21:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-09T21:21:05Z</dc:date>
    <item>
      <title>editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4487841#M127960</link>
      <description>&lt;P&gt;my macro is&amp;nbsp;shared and used&amp;nbsp;by a group of people. i cannot edit the macro if someone is using it.&lt;/P&gt;&lt;P&gt;is there a way to be able to edit it even if people are using it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 14:58:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4487841#M127960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-04T14:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4487889#M127961</link>
      <description>&lt;P&gt;Here is what I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two folders for the macros. &amp;nbsp;One for development or debugging and one for production or release. &amp;nbsp;I make all my edits to the versions in the development folder then publish or save copy as to the release folder. &amp;nbsp;Since the versions in the development folder are not the ones being used they are always read/write.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If a macro crashes on someones computer you will need to go to that computer and unload it before saving a new version to the production folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***EDIT - Make sure you are automatically unloading the macros when they are finished.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 15:13:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4487889#M127961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-04T15:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4488465#M127962</link>
      <description>&lt;P&gt;well , thats what ive been doing.&lt;/P&gt;&lt;P&gt;but when i need to save it to the release folder , i wont be able if someone is using it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a way that it will always be available to me and readonly to them?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 18:16:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4488465#M127962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-04T18:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4488507#M127963</link>
      <description>&lt;P&gt;I do not believe there is a way to do what you are describing. &amp;nbsp;I typically only have this problem with the Default.ivb file when I need to add an auto run sub for a new macro. &amp;nbsp;If someone gets into Inventor before me and runs a macro then Default.ivb becomes read-only. &amp;nbsp;Most of our macros are used then unloaded so users are not in them for extended periods of time.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 18:31:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4488507#M127963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-04T18:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4488899#M127964</link>
      <description>&lt;P&gt;I don't know if this solves this particular problem but I have heard before of people making the VBA project read-only (using&amp;nbsp;Windows Explorer).&amp;nbsp; In this case it was so that&amp;nbsp;no one else could edit it but it might also allow it to be replaced.&amp;nbsp; It's worth trying.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2013 22:22:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4488899#M127964</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2013-10-04T22:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4506913#M127965</link>
      <description>&lt;P&gt;As you have found out you cannot edit your VBA project whiie someone is using it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a Windows restriction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For myself I wrote a small VB.NET app that takes several path parameters and remembers them.&lt;/P&gt;&lt;P&gt;When I push a sychronize button This app copies the existing MasterInventor.ivb to an archive folder adding the date and time stamp to the file name. &amp;nbsp;Then the app&amp;nbsp;&lt;SPAN style="font-size: 11px; line-height: 14px;"&gt;takes my VBA development project and overwrites &amp;nbsp;the current MasterInventor.ivb with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For my users each of whom have personally named vba projects &amp;nbsp;I wrote a second similar app that overwrites their personal VBA projects with the MasterInventor.ivb file. The users only run this app when I send them an email to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both apps are only run when Inventor or Autocad are shut down.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What this does is make updates a one button push for both myself and my users.&lt;/P&gt;&lt;P&gt;Our Network VBA Project folder look something like the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AaronZ.ivb&lt;/P&gt;&lt;P&gt;FloydH.ivb&lt;/P&gt;&lt;P&gt;JohnB.ivb&lt;/P&gt;&lt;P&gt;JenC.ivb&lt;/P&gt;&lt;P&gt;MasterInventor.Ivb&lt;/P&gt;&lt;P&gt;&amp;lt;Me&amp;gt;.ivb&lt;/P&gt;&lt;P&gt;Etc...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 21:21:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4506913#M127965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-09T21:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4508975#M127967</link>
      <description>&lt;P&gt;Here's my solution that has worked out well: The intial icon for Inventor and AutoCAD point to a .cmd file that copies the&amp;nbsp;master VBA project from the network to thier local drive.&amp;nbsp;All users are pointing to their local copy of the project, so no one but me is pointing to the Master. After the copy it simply starts Inventor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;@ECHO OFF 

:: VBA Project Copy Example
C:
DEL "C:\Local Files\Master.ivb"
COPY /Y "\\network\VBProject\Master.ivb" "C:\Local Files"

:: Start Inventor 
START /B "" "C:\PathToInventor\Inventor.exe"

EXIT&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Oct 2013 12:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/4508975#M127967</guid>
      <dc:creator>jdkriek</dc:creator>
      <dc:date>2013-10-10T12:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: editing macro</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/6668503#M127968</link>
      <description>&lt;P&gt;We have a Managed Scripts folder setup in Vault where we keep the master .ivb file.&lt;/P&gt;&lt;P&gt;When you do a&amp;nbsp;"Get" from Vault it copies the file to the local machine like any other Inventor file assuming you have your project setup correctly.&lt;/P&gt;&lt;P&gt;As an extra precaution the Vault Administrator keeps the file checked out so that other users cannot accidentally check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this method you do have to alert users to do a "Get" on the file from Vault when you have checked in changes but, it also gives you versioning on the file.&lt;/P&gt;&lt;P&gt;Versioning is important if you ever need to roll back because users are having serious issues with a macro or there was an accidental change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We went away from the icon pointing to the .cmd file because it requires the user to make sure they are clicking on the correct icon.&lt;/P&gt;&lt;P&gt;Which means there is a possibility that a user will click on a default icon negating all that extra work.&lt;BR /&gt;We also found it a pain&amp;nbsp;to maintain and distributed the modified icon every time you upgrade Inventor or make a change.&lt;/P&gt;&lt;P&gt;And lastly, you don't get versioning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 19:20:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/editing-macro/m-p/6668503#M127968</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2016-11-04T19:20:47Z</dc:date>
    </item>
  </channel>
</rss>

