<?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: AutoCAD locks what are readonly .dvbs in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144287#M49685</link>
    <description>The way I've gotten around this is to unload the app when it's done.

ThisDrawing.SendCommand "_vbaunload" &amp;amp; vbCr &amp;amp; """Filename.dvb""" &amp;amp; vbCr


Hope this helps.

-- 
I support two teams: the Red Sox and whoever beats the Yankees.


"Mike Tuersley" &lt;MTUERSLEY&gt; wrote in message 
news:i5vl39icrg5l.18e5r5oqrk6nw$.dlg@40tude.net...
| No unless you wait till everyone goes home.
| -- Mike
| ___________________________
| Mike Tuersley
| CADalyst's CAD Clinic
| Rand IMAGINiT Technologies
| ___________________________
| the trick is to realize that there is no spoon...&lt;/MTUERSLEY&gt;</description>
    <pubDate>Tue, 28 Sep 2004 12:21:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-09-28T12:21:36Z</dc:date>
    <item>
      <title>AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144285#M49683</link>
      <description>We keep .dvbs on a network in a readonly directory.  Even as such these files cannot be modified when loaded by someone and, since it seems that a dvb cannot unload itself, editing the dvbs while in use requires saving to a temporary dvb file.  It there a way around this?</description>
      <pubDate>Mon, 27 Sep 2004 18:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144285#M49683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-27T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144286#M49684</link>
      <description>No unless you wait till everyone goes home.
-- Mike
___________________________
Mike Tuersley
CADalyst's CAD Clinic
Rand IMAGINiT Technologies
___________________________
the trick is to realize that there is no spoon...</description>
      <pubDate>Tue, 28 Sep 2004 04:00:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144286#M49684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-28T04:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144287#M49685</link>
      <description>The way I've gotten around this is to unload the app when it's done.

ThisDrawing.SendCommand "_vbaunload" &amp;amp; vbCr &amp;amp; """Filename.dvb""" &amp;amp; vbCr


Hope this helps.

-- 
I support two teams: the Red Sox and whoever beats the Yankees.


"Mike Tuersley" &lt;MTUERSLEY&gt; wrote in message 
news:i5vl39icrg5l.18e5r5oqrk6nw$.dlg@40tude.net...
| No unless you wait till everyone goes home.
| -- Mike
| ___________________________
| Mike Tuersley
| CADalyst's CAD Clinic
| Rand IMAGINiT Technologies
| ___________________________
| the trick is to realize that there is no spoon...&lt;/MTUERSLEY&gt;</description>
      <pubDate>Tue, 28 Sep 2004 12:21:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144287#M49685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-28T12:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144288#M49686</link>
      <description>You could just use Application.UnloadDVB "Filename.dvb" instead.

~Tim Riley

"Matt W" &lt;NOSPAM&gt; wrote in message
news:41595774$1_1@newsprd01...
&amp;gt; The way I've gotten around this is to unload the app when it's done.
&amp;gt;
&amp;gt; ThisDrawing.SendCommand "_vbaunload" &amp;amp; vbCr &amp;amp; """Filename.dvb""" &amp;amp; vbCr
&amp;gt;
&amp;gt;
&amp;gt; Hope this helps.
&amp;gt;
&amp;gt; -- 
&amp;gt; I support two teams: the Red Sox and whoever beats the Yankees.
&amp;gt;
&amp;gt;
&amp;gt; "Mike Tuersley" &lt;MTUERSLEY&gt; wrote in message
&amp;gt; news:i5vl39icrg5l.18e5r5oqrk6nw$.dlg@40tude.net...
&amp;gt; | No unless you wait till everyone goes home.
&amp;gt; | -- Mike
&amp;gt; | ___________________________
&amp;gt; | Mike Tuersley
&amp;gt; | CADalyst's CAD Clinic
&amp;gt; | Rand IMAGINiT Technologies
&amp;gt; | ___________________________
&amp;gt; | the trick is to realize that there is no spoon...
&amp;gt;
&amp;gt;&lt;/MTUERSLEY&gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Tue, 28 Sep 2004 13:27:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144288#M49686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-28T13:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144289#M49687</link>
      <description>I've tried these before without success, but I see now that&lt;BR /&gt;
 they only work when "filename.dvb"is "fullpath/filename.dvb".&lt;BR /&gt;
&lt;BR /&gt;
The Application.UnloadDVB works buts generates &lt;BR /&gt;
an "execution error" message.  The SendCommand method&lt;BR /&gt;
does not generate an error message.  I've used these as the&lt;BR /&gt;
last line in the userform terminate event.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 28 Sep 2004 14:10:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144289#M49687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-28T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144290#M49688</link>
      <description>Whether you unload or not, its still not a fix because you have no control
over someone accessing the file while you're in it. The only safe way is to
work on a copy of the dvb.

-- Mike
___________________________
Mike Tuersley
CADalyst's CAD Clinic
Rand IMAGINiT Technologies
___________________________
the trick is to realize that there is no spoon...</description>
      <pubDate>Tue, 28 Sep 2004 16:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144290#M49688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-28T16:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144291#M49689</link>
      <description>What I've done with other "critical" files is to create an INI file on the 
network and the user's hard drive.
Every time AutoCAD starts up, both INI files are checked.  If one section of 
the user's INI file does not match the same section of the INI file on the 
network, the "critical" file on the user's hard drive is deleted, the one 
from the network is downloaded to the user's HD, then the INI file on the 
user's HD is updated to match the one on the network.

Works like a charm every time!

-- 
I support two teams: the Red Sox and whoever beats the Yankees.


"Mike Tuersley" &lt;MTUERSLEY&gt; wrote in message 
news:l6an1kzjh9tv$.xvnjjax6lwfo.dlg@40tude.net...
| Whether you unload or not, its still not a fix because you have no control
| over someone accessing the file while you're in it. The only safe way is 
to
| work on a copy of the dvb.
|
| -- Mike
| ___________________________
| Mike Tuersley
| CADalyst's CAD Clinic
| Rand IMAGINiT Technologies
| ___________________________
| the trick is to realize that there is no spoon...&lt;/MTUERSLEY&gt;</description>
      <pubDate>Tue, 28 Sep 2004 16:13:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144291#M49689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-28T16:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144292#M49690</link>
      <description>Nice approach Matt!

-- Mike
___________________________
Mike Tuersley
CADalyst's CAD Clinic
Rand IMAGINiT Technologies
___________________________
the trick is to realize that there is no spoon...</description>
      <pubDate>Wed, 29 Sep 2004 03:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144292#M49690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-29T03:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144293#M49691</link>
      <description>Thanks.
I use DosLib to read/write the INI files.
DosLib makes it really easy, and like I said, it works EVERY time!  :)

-- 
I support two teams: the Red Sox and whoever beats the Yankees.


"Mike Tuersley" &lt;MTUERSLEY&gt; wrote in message 
news:xpx0fymd1i9f$.1l0n1u0qv7r4a$.dlg@40tude.net...
| Nice approach Matt!
|
| -- Mike
| ___________________________
| Mike Tuersley
| CADalyst's CAD Clinic
| Rand IMAGINiT Technologies
| ___________________________
| the trick is to realize that there is no spoon...&lt;/MTUERSLEY&gt;</description>
      <pubDate>Wed, 29 Sep 2004 12:17:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144293#M49691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-29T12:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144294#M49692</link>
      <description>I think the auto-unload would work most of the time.  The VBA's are usually modal forms and so they would be unloaded when dismissed.  The downside is a slightly longer load time.  The auto-unload could be removed once the VBA is past the point where a tweek is unlikely.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way for the VBA to know its fullpath name?  The unload command requires the fullpath name. I want to avoid hardcoding the fullpath name.</description>
      <pubDate>Wed, 29 Sep 2004 17:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144294#M49692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-29T17:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144295#M49693</link>
      <description>Here you go...

Debug.Print Application.VBE.ActiveVBProject.FileName

-- 
I support two teams: the Red Sox and whoever beats the Yankees.


"AKS" &lt;NOSPAM&gt; wrote in message 
news:5845362.1096480564137.JavaMail.jive@jiveforum2.autodesk.com...
|I think the auto-unload would work most of the time.  The VBA's are usually 
modal forms and so they would be unloaded when dismissed.  The downside is a 
slightly longer load time.  The auto-unload could be removed once the VBA is 
past the point where a tweek is unlikely.
|
| Is there a way for the VBA to know its fullpath name?  The unload command 
requires the fullpath name. I want to avoid hardcoding the fullpath name.&lt;/NOSPAM&gt;</description>
      <pubDate>Wed, 29 Sep 2004 19:21:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144295#M49693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-29T19:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144296#M49694</link>
      <description>Thanks Matt.  I use the Object Browser as a guide to see what is available.  That item is not listed.</description>
      <pubDate>Fri, 01 Oct 2004 14:01:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144296#M49694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-01T14:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144297#M49695</link>
      <description>Add a reference to "Microsoft Visual Basic for Applications Extensibility 5.3"&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Mon, 04 Oct 2004 23:21:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144297#M49695</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-04T23:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCAD locks what are readonly .dvbs</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144298#M49696</link>
      <description>"Nathan Taylor" &lt;NOSPAM&gt; wrote in message 
news:29237348.1096932104896.JavaMail.jive@jiveforum2.autodesk.com...
&amp;gt; Add a reference to "Microsoft Visual Basic for Applications Extensibility 
&amp;gt; 5.3"
&amp;gt; Regards - Nathan&lt;/NOSPAM&gt;</description>
      <pubDate>Fri, 08 Oct 2004 12:09:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-locks-what-are-readonly-dvbs/m-p/1144298#M49696</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-10-08T12:09:49Z</dc:date>
    </item>
  </channel>
</rss>

