<?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 Delete REGAPPs with VBA in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316630#M43879</link>
    <description>Does anyone have the VB/VBA code to delete unused Regapps?  Similar to&lt;BR /&gt;
the -PURGE Regapp command, but I would like to do it with VBA.  I know there&lt;BR /&gt;
are lisp routines out there, but all my other purge routines are done in VBA&lt;BR /&gt;
and I would like to add this one.&lt;BR /&gt;
&lt;BR /&gt;
I have also tried the Sendcommand...  but it locks up sometimes...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Jim Shipley</description>
    <pubDate>Thu, 05 May 2005 13:54:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-05-05T13:54:41Z</dc:date>
    <item>
      <title>Delete REGAPPs with VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316630#M43879</link>
      <description>Does anyone have the VB/VBA code to delete unused Regapps?  Similar to&lt;BR /&gt;
the -PURGE Regapp command, but I would like to do it with VBA.  I know there&lt;BR /&gt;
are lisp routines out there, but all my other purge routines are done in VBA&lt;BR /&gt;
and I would like to add this one.&lt;BR /&gt;
&lt;BR /&gt;
I have also tried the Sendcommand...  but it locks up sometimes...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Jim Shipley</description>
      <pubDate>Thu, 05 May 2005 13:54:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316630#M43879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-05T13:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Delete REGAPPs with VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316631#M43880</link>
      <description>Here's some code I found to check for invalid reg apps.&lt;BR /&gt;
You should be able to this modify to your needs...&lt;BR /&gt;
&lt;BR /&gt;
[code]&lt;BR /&gt;
'Verify registered apps when drawing loads&lt;BR /&gt;
Private Sub VerifyRegistered_Apps()&lt;BR /&gt;
    Dim oRegApp As AcadRegisteredApplication&lt;BR /&gt;
    Dim oRegApps As AcadRegisteredApplications&lt;BR /&gt;
    Dim colBadApps As Collection&lt;BR /&gt;
    Dim strMSG As String&lt;BR /&gt;
    Dim i As Integer&lt;BR /&gt;
    &lt;BR /&gt;
    'get the current collection of registered apps&lt;BR /&gt;
    Set oRegApps = ThisDrawing.RegisteredApplications&lt;BR /&gt;
    &lt;BR /&gt;
    ' start a new collection for bad apps&lt;BR /&gt;
    Set colBadApps = New Collection&lt;BR /&gt;
    &lt;BR /&gt;
    ' review each registered application&lt;BR /&gt;
    For Each oRegApp In oRegApps&lt;BR /&gt;
        'Debug.Print oRegApp.Name&lt;BR /&gt;
        ' if there's a "*" in the name, damn good chance it's BAD!&lt;BR /&gt;
        If InStr(1, oRegApp.Name, "*") &amp;gt; 0 Then&lt;BR /&gt;
            colBadApps.Add oRegApp.Name&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next&lt;BR /&gt;
    &lt;BR /&gt;
    ' if we found some bad apps, report them!&lt;BR /&gt;
    If colBadApps.Count &amp;gt; 0 Then&lt;BR /&gt;
        'build list of bad ones&lt;BR /&gt;
        For i = 1 To colBadApps.Count&lt;BR /&gt;
            strMSG = strMSG &amp;amp; colBadApps.Item(i) &amp;amp; vbNewLine&lt;BR /&gt;
        Next&lt;BR /&gt;
        &lt;BR /&gt;
    'display the bad news&lt;BR /&gt;
    MsgBox "There's a good chance this drawing has corruputed data!" &amp;amp; vbNewLine &amp;amp; _&lt;BR /&gt;
        "INVALID REGISTERED APPS FOUND!" &amp;amp; vbNewLine &amp;amp; _&lt;BR /&gt;
        strMSG&lt;BR /&gt;
    End If&lt;BR /&gt;
&lt;BR /&gt;
    Set colBadApps = Nothing&lt;BR /&gt;
    Set oRegApp = Nothing&lt;BR /&gt;
    Set oRegApps = Nothing&lt;BR /&gt;
    &lt;BR /&gt;
    &lt;BR /&gt;
End Sub&lt;BR /&gt;
[/code]</description>
      <pubDate>Thu, 05 May 2005 18:03:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316631#M43880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-05T18:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Delete REGAPPs with VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316632#M43881</link>
      <description>Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;OBERER&gt; wrote in message news:4836228@discussion.autodesk.com...&lt;BR /&gt;
Here's some code I found to check for invalid reg apps.&lt;BR /&gt;
You should be able to this modify to your needs...&lt;BR /&gt;
&lt;BR /&gt;
[code]&lt;BR /&gt;
'Verify registered apps when drawing loads&lt;BR /&gt;
Private Sub VerifyRegistered_Apps()&lt;BR /&gt;
    Dim oRegApp As AcadRegisteredApplication&lt;BR /&gt;
    Dim oRegApps As AcadRegisteredApplications&lt;BR /&gt;
    Dim colBadApps As Collection&lt;BR /&gt;
    Dim strMSG As String&lt;BR /&gt;
    Dim i As Integer&lt;BR /&gt;
&lt;BR /&gt;
    'get the current collection of registered apps&lt;BR /&gt;
    Set oRegApps = ThisDrawing.RegisteredApplications&lt;BR /&gt;
&lt;BR /&gt;
    ' start a new collection for bad apps&lt;BR /&gt;
    Set colBadApps = New Collection&lt;BR /&gt;
&lt;BR /&gt;
    ' review each registered application&lt;BR /&gt;
    For Each oRegApp In oRegApps&lt;BR /&gt;
        'Debug.Print oRegApp.Name&lt;BR /&gt;
        ' if there's a "*" in the name, damn good chance it's BAD!&lt;BR /&gt;
        If InStr(1, oRegApp.Name, "*") &amp;gt; 0 Then&lt;BR /&gt;
            colBadApps.Add oRegApp.Name&lt;BR /&gt;
        End If&lt;BR /&gt;
    Next&lt;BR /&gt;
&lt;BR /&gt;
    ' if we found some bad apps, report them!&lt;BR /&gt;
    If colBadApps.Count &amp;gt; 0 Then&lt;BR /&gt;
        'build list of bad ones&lt;BR /&gt;
        For i = 1 To colBadApps.Count&lt;BR /&gt;
            strMSG = strMSG &amp;amp; colBadApps.Item(i) &amp;amp; vbNewLine&lt;BR /&gt;
        Next&lt;BR /&gt;
&lt;BR /&gt;
    'display the bad news&lt;BR /&gt;
    MsgBox "There's a good chance this drawing has corruputed data!" &amp;amp;&lt;BR /&gt;
vbNewLine &amp;amp; _&lt;BR /&gt;
        "INVALID REGISTERED APPS FOUND!" &amp;amp; vbNewLine &amp;amp; _&lt;BR /&gt;
        strMSG&lt;BR /&gt;
    End If&lt;BR /&gt;
&lt;BR /&gt;
    Set colBadApps = Nothing&lt;BR /&gt;
    Set oRegApp = Nothing&lt;BR /&gt;
    Set oRegApps = Nothing&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
[/code]&lt;/OBERER&gt;</description>
      <pubDate>Thu, 05 May 2005 20:18:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316632#M43881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-05T20:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Delete REGAPPs with VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316633#M43882</link>
      <description>"Thanks!"&lt;BR /&gt;
I'll take it from that you'll have no trouble making it work for you.&lt;BR /&gt;
&lt;BR /&gt;
"I have also tried the Sendcommand... but it locks up sometimes..."&lt;BR /&gt;
I'm sure you were using this out of desperation :).  It's certainly a "worst case scenario".</description>
      <pubDate>Thu, 05 May 2005 20:22:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316633#M43882</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-05T20:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete REGAPPs with VBA</title>
      <link>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316634#M43883</link>
      <description>I have also found out that the Autodesk arx for this should be used.  See:&lt;BR /&gt;
http://autodesk.blogs.com/between_the_lines/2004/12/layer_filter_an.html&lt;BR /&gt;
&lt;BR /&gt;
Jim&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;OBERER&gt; wrote in message news:4836444@discussion.autodesk.com...&lt;BR /&gt;
"Thanks!"&lt;BR /&gt;
I'll take it from that you'll have no trouble making it work for you.&lt;BR /&gt;
&lt;BR /&gt;
"I have also tried the Sendcommand... but it locks up sometimes..."&lt;BR /&gt;
I'm sure you were using this out of desperation :).  It's certainly a "worst&lt;BR /&gt;
case scenario".&lt;/OBERER&gt;</description>
      <pubDate>Thu, 05 May 2005 20:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/delete-regapps-with-vba/m-p/1316634#M43883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-05T20:36:09Z</dc:date>
    </item>
  </channel>
</rss>

