<?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: Unable to Update Default.ivb in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488300#M53855</link>
    <description>&lt;P&gt;Keeping the file in vault is a good idea. &amp;nbsp;Thanks for the suggestion. &amp;nbsp;Your Application Options point to the local copy of the Default.ivb?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2015 18:55:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-29T18:55:21Z</dc:date>
    <item>
      <title>Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5477090#M53705</link>
      <description>&lt;P&gt;I am having an issue updating the Default.ivb file to add new VBA macros. &amp;nbsp;I use the auto run code in the default.ivb file to run our macros. &amp;nbsp;When I create a new macro I just add the new macro info to default.ivb and everyone can then add the button. &amp;nbsp;It has worked great for almost 10 years.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the past when I did edit the default.ivb file I had to make sure I was the first one to grab a license in the morning before anyone used a macro or the default.ivb file would be read only. &amp;nbsp;Now when I edit the default.ivb file and try to save it I get the attached error. &amp;nbsp;I don't ever remember getting this error before. &amp;nbsp;Any ideas why I can't edit the file and am getting this message?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2015 14:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5477090#M53705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-21T14:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5479612#M53741</link>
      <description>&lt;P&gt;All i can say is, check if&lt;/P&gt;&lt;P&gt;1. the file isn't read only&lt;/P&gt;&lt;P&gt;2. anyone (but you) has Inventor running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 07:46:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5479612#M53741</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2015-01-23T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5483468#M53785</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've seen that error once, I think. And if I remember right I just had to restart Windows and it disappeared - maybe something locked it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, if you are using Inventor 2014 then Auto macros will not run:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://modthemachine.typepad.com/my_weblog/2013/07/add-in-with-event-example-to-replace-auto-run-macros-in-2014.html" target="_self"&gt;http://modthemachine.typepad.com/my_weblog/2013/07/add-in-with-event-example-to-replace-auto-run-macros-in-2014.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2015 01:34:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5483468#M53785</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2015-01-27T01:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5485858#M53824</link>
      <description>&lt;P&gt;Thanks Adam. &amp;nbsp;Restarting didn't fix it. &amp;nbsp;It acts like it is read-only but it doesn't show as Read-Only. &amp;nbsp;Usually when Default.ivb is read only it is indicated in the name like ApplicationProject(Default.ivb - Read Only)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I meant by auto run was using the following code in the Default.ivb file. &amp;nbsp;Auto run is&amp;nbsp;the wrong name for it&amp;nbsp;but the below still works with 2014.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Main function
Public Sub RunCustomProgram(Filename As String, ProjectName As String, ModuleName As String, FunctionName As String)
    Dim oIvVBAProjects As Inventor.InventorVBAProjects
    Set oIvVBAProjects = ThisApplication.VBAProjects
    Dim j As Integer
    Dim i As Integer
    Dim oIvVBAComps As InventorVBAComponents
    Dim oIvVBAMembers As InventorVBAMembers
    Dim oIvVBAMember As InventorVBAMember
    Dim dd As Object
    
    For i = 1 To ThisApplication.VBAProjects.Count
        Dim cc As Object
        Set cc = ThisApplication.VBAProjects.Item(i)
        If cc.Name = ProjectName Then
            Exit For
        End If
    Next&lt;BR /&gt;&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 14:02:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5485858#M53824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-28T14:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5486675#M53832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And where do you call RunCustomProgram from? From an addin?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, where is the VBA file? Is it on your machine and you share it with others or on a server?&lt;/P&gt;
&lt;P&gt;The machine storing the file should be restarted - as a test.&lt;/P&gt;
&lt;P&gt;You could also try to make a copy of the file in File Explorer and then try to delete it to see if you really have full access to it - not just read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:52:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5486675#M53832</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2015-01-28T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5487575#M53844</link>
      <description>&lt;P&gt;Maybe a program like &lt;A target="_blank" href="http://www.dr-hoiby.com/WhoLockMe/"&gt;WhoLockMe&lt;/A&gt;&amp;nbsp;can help find out who (or what process) is locking the file?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 12:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5487575#M53844</guid>
      <dc:creator>mr_ensing</dc:creator>
      <dc:date>2015-01-29T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5487720#M53849</link>
      <description>&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The RunCustomProgram code is called from the Default.ivb file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="RCPLocation.png" alt="RCPLocation.png" border="0" src="https://forums.autodesk.com/t5/image/serverpage/image-id/151401iD0701AEB13007E2D/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code was posted by someone on this forum a long time ago(couldn't find the post) and I have been using it for about 8 years. &amp;nbsp;It makes adding and distributing VBA macros very easy and works in Inventor 2014. &amp;nbsp;The Default.ivb file is on the network so I can point everyone's Application Options to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue was that someone else was locking the Default.ivb file through use of a macro even though it wasn't showing as read-only as it typically does. &amp;nbsp;I solved it by having our IT department create a batch file that basically kicks everyone out of the Default.ivb file. &amp;nbsp;You can also do this manually through Windows MMC by Closing Open Files. &amp;nbsp;When everyone is out, I can now edit the file. &amp;nbsp;Thanks for the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mr_ensing, thanks for the link. &amp;nbsp;I will check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:47:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5487720#M53849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-29T13:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488204#M53854</link>
      <description>I know this is already answered but anyone using Vault can get around the "Read Only" issue by managing the .ivb file like you would any cad model. We have a Managed Scripts folder in our vault and our main macro file is kept there. If anyone needs to make a change it has to be checked out. You can then make your changes, check it back in and have everyone else do a "Get" on the macro file from Vault. Just remember that anyone needing to do a get on the new macro file must do so before opening Inventor. I also like this method because I have versioning on the file and can track changes or roll back if needed.</description>
      <pubDate>Thu, 29 Jan 2015 17:56:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488204#M53854</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2015-01-29T17:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488300#M53855</link>
      <description>&lt;P&gt;Keeping the file in vault is a good idea. &amp;nbsp;Thanks for the suggestion. &amp;nbsp;Your Application Options point to the local copy of the Default.ivb?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 18:55:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488300#M53855</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-29T18:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Default.ivb</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488609#M53860</link>
      <description>Yes my application options point to the where the Vault downloads the .ivb file to.</description>
      <pubDate>Thu, 29 Jan 2015 21:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/unable-to-update-default-ivb/m-p/5488609#M53860</guid>
      <dc:creator>Boorda</dc:creator>
      <dc:date>2015-01-29T21:50:08Z</dc:date>
    </item>
  </channel>
</rss>

