<?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 error codes in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480480#M39129</link>
    <description>Sorry, but no good.  Error numbers are mapped to the description. 0 to 512 are Visual Basic errors (type mismatch, block variable width not set, ..), and the rest is for you, or AutoCAD, or whatever....&lt;BR /&gt;
&lt;BR /&gt;
But you wont get more info on the error then the error's description from the number.  Moreover, AutoCAD's raises are all messed up.  You cant realy get that mutch info from them other than "Method XXXXXX of the interface IACADXXXX faled !"  I have documented all errors manually with common causes/fixes in our context, but everyone's is different......&lt;BR /&gt;
&lt;BR /&gt;
Hope this sends you in the right direction!</description>
    <pubDate>Tue, 08 Nov 2005 18:24:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-11-08T18:24:11Z</dc:date>
    <item>
      <title>autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480478#M39127</link>
      <description>Where do I find a list of error codes for Autocad VBA.  I searched this group for this topic. This question has been asked a few times but never answered ??&lt;BR /&gt;
&lt;BR /&gt;
Fred C</description>
      <pubDate>Tue, 08 Nov 2005 04:14:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480478#M39127</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2005-11-08T04:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480479#M39128</link>
      <description>Hi Fred,&lt;BR /&gt;
&lt;BR /&gt;
VBA help states that error code numbers can be anything from 0 - 65535 with&lt;BR /&gt;
0 - 512 being reserved for VBA and the rest user defined. Maybe the "Raise"&lt;BR /&gt;
method can give you what you need.&lt;BR /&gt;
&lt;BR /&gt;
Gary&lt;BR /&gt;
&lt;BR /&gt;
Dim x As Long&lt;BR /&gt;
&lt;BR /&gt;
On Error Resume Next&lt;BR /&gt;
&lt;BR /&gt;
For x = 0 To 512&lt;BR /&gt;
    Err.Raise x&lt;BR /&gt;
    Debug.Print x &amp;amp; vbTab &amp;amp; Err.Description&lt;BR /&gt;
    Err.Clear&lt;BR /&gt;
Next</description>
      <pubDate>Tue, 08 Nov 2005 13:00:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480479#M39128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-08T13:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480480#M39129</link>
      <description>Sorry, but no good.  Error numbers are mapped to the description. 0 to 512 are Visual Basic errors (type mismatch, block variable width not set, ..), and the rest is for you, or AutoCAD, or whatever....&lt;BR /&gt;
&lt;BR /&gt;
But you wont get more info on the error then the error's description from the number.  Moreover, AutoCAD's raises are all messed up.  You cant realy get that mutch info from them other than "Method XXXXXX of the interface IACADXXXX faled !"  I have documented all errors manually with common causes/fixes in our context, but everyone's is different......&lt;BR /&gt;
&lt;BR /&gt;
Hope this sends you in the right direction!</description>
      <pubDate>Tue, 08 Nov 2005 18:24:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480480#M39129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-11-08T18:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480481#M39130</link>
      <description>Nyme,&lt;BR /&gt;
I know that error codes 0 - 512 are VBA eror codes&lt;BR /&gt;
see list below.  I was looking for AutoCad error codes&lt;BR /&gt;
numbers like -2145386420. The only way I know of ACad  error codes is to cause erros.  I handle lots of error&lt;BR /&gt;
like this&lt;BR /&gt;
&lt;BR /&gt;
err.clear&lt;BR /&gt;
on error resume next&lt;BR /&gt;
&lt;BR /&gt;
 Set objBlockRef = .ModelSpace.InsertBlock(insertionPnt, strDwgWithPath, 1#, 1#, 1#, 0)&lt;BR /&gt;
If err &amp;lt;&amp;gt; 0 then&lt;BR /&gt;
   msgbox  " error inserting block  " &amp;amp; strDwgWithPath&lt;BR /&gt;
   err.clear&lt;BR /&gt;
end If&lt;BR /&gt;
&lt;BR /&gt;
Fred C&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
' ************************************************&lt;BR /&gt;
' ********** VBA Error Codes **************************&lt;BR /&gt;
'&lt;BR /&gt;
&lt;BR /&gt;
'3  Return without GoSub&lt;BR /&gt;
'5  Invalid procedure call&lt;BR /&gt;
'6  Overflow&lt;BR /&gt;
'7  Out of memory&lt;BR /&gt;
'9  Subscript out of range&lt;BR /&gt;
'10 This array is fixed or temporarily locked&lt;BR /&gt;
'11 Division by zero&lt;BR /&gt;
'13 Type mismatch&lt;BR /&gt;
'14 Out of string space&lt;BR /&gt;
'16 Expression too complex&lt;BR /&gt;
'17 Can 't perform requested operation&lt;BR /&gt;
'18 User interrupt occurred&lt;BR /&gt;
'20 Resume without error&lt;BR /&gt;
'28 Out of stack space&lt;BR /&gt;
'35 Sub, Function, or Property not defined&lt;BR /&gt;
'47 Too many code resource or DLL application clients&lt;BR /&gt;
'48 Error in loading code resource or DLL&lt;BR /&gt;
'49 Bad code resource or DLL calling convention&lt;BR /&gt;
'51 Internal Error&lt;BR /&gt;
'52 Bad file name or number&lt;BR /&gt;
'53 File Not found&lt;BR /&gt;
'54 Bad file mode&lt;BR /&gt;
'55 File already open&lt;BR /&gt;
'57 Device index/O error&lt;BR /&gt;
'58 File already exists&lt;BR /&gt;
'59 Bad record length&lt;BR /&gt;
'61 Disk full&lt;BR /&gt;
'62 Input past end of file&lt;BR /&gt;
'63 Bad record number&lt;BR /&gt;
'67 Too many files&lt;BR /&gt;
'68 Device unavailable&lt;BR /&gt;
'70 Permission denied&lt;BR /&gt;
'71 Disk Not Ready&lt;BR /&gt;
'74 Can 't rename with different drive&lt;BR /&gt;
'75 Path/File access error&lt;BR /&gt;
'76 Path Not found&lt;BR /&gt;
'91 Object variable or With block variable not set&lt;BR /&gt;
'92 For loop not initialized&lt;BR /&gt;
'93 Invalid pattern string&lt;BR /&gt;
'94 Invalid use of Null&lt;BR /&gt;
'97 Can 't call Friend procedure on an object that is not an instance of the defining class&lt;BR /&gt;
'98 A property or method call cannot include a reference to a private object, either as an argument or as a return value&lt;BR /&gt;
'298   System resource or DLL could not be loaded&lt;BR /&gt;
'320   Can 't use character device names in specified file names&lt;BR /&gt;
'321   Invalid file format&lt;BR /&gt;
'322   Can’t create necessary temporary file&lt;BR /&gt;
'325   Invalid format in resource file&lt;BR /&gt;
'327   Data value named not found&lt;BR /&gt;
'328   Illegal parameter; can't write arrays&lt;BR /&gt;
'335   Could not access system registry&lt;BR /&gt;
'336   Component not correctly registered&lt;BR /&gt;
'337   component Not found&lt;BR /&gt;
'338   Component did not run correctly&lt;BR /&gt;
'360   Object already loaded&lt;BR /&gt;
'361   Can 't load or unload this object&lt;BR /&gt;
'363   Control Not Specified&lt;BR /&gt;
'364   Object was unloaded&lt;BR /&gt;
'365   Unable to unload within this context&lt;BR /&gt;
'368   The specified file is out of date. This program requires a later version&lt;BR /&gt;
'371   The specified object can't be used as an owner form for Show&lt;BR /&gt;
'380   Invalid property value&lt;BR /&gt;
'381   Invalid property-array index&lt;BR /&gt;
'382   Property Set can't be executed at run time&lt;BR /&gt;
'383   Property Set can't be used with a read-only property&lt;BR /&gt;
'385   Need property-array index&lt;BR /&gt;
'387   Property Set not permitted&lt;BR /&gt;
'393   Property Get can't be executed at run time&lt;BR /&gt;
'394   Property Get can't be executed on write-only property&lt;BR /&gt;
'400   Form already displayed; can't show modally&lt;BR /&gt;
'402   Code must close topmost modal form first&lt;BR /&gt;
'419   Permission to use object denied&lt;BR /&gt;
'422   Property not found&lt;BR /&gt;
'423   Property or method not found&lt;BR /&gt;
'424   Object required&lt;BR /&gt;
'425   Invalid object use&lt;BR /&gt;
'429   component Can 't create object or return reference to this object&lt;BR /&gt;
'430   Class doesn 't support Automation&lt;BR /&gt;
'432   File name or class name not found during Automation operation&lt;BR /&gt;
'438   Object doesn 't support this property or method&lt;BR /&gt;
'440   AutomatiOn Error&lt;BR /&gt;
'442   Connection to type library or object library for remote process has been lost&lt;BR /&gt;
'443   Automation object doesn't have a default value&lt;BR /&gt;
'445   Object doesn 't support this action&lt;BR /&gt;
'446   Object doesn 't support named arguments&lt;BR /&gt;
'447   Object doesn 't support current locale setting&lt;BR /&gt;
'448   Named Not Argument&lt;BR /&gt;
'449   Argument not optional or invalid property assignment&lt;BR /&gt;
'450   Wrong number of arguments or invalid property assignment&lt;BR /&gt;
'451   Object not a collection&lt;BR /&gt;
'452   Invalid ordinal&lt;BR /&gt;
'453   Specified code resource not found&lt;BR /&gt;
'454   Code Not resource&lt;BR /&gt;
'455   Code resource lock error&lt;BR /&gt;
'457   This key is already associated with an element of this collection&lt;BR /&gt;
'458   Variable uses a type not supported in Visual Basic&lt;BR /&gt;
'459   This component doesn't support the set of events&lt;BR /&gt;
'460   Invalid Clipboard format&lt;BR /&gt;
'461   Method or data member not found&lt;BR /&gt;
'462   The remote server machine does not exist or is unavailable&lt;BR /&gt;
'463   Class not registered on local machine&lt;BR /&gt;
'480   Can 't create AutoRedraw image&lt;BR /&gt;
'481   Invalid Picture&lt;BR /&gt;
'482   printer Error&lt;BR /&gt;
'483   Printer driver does not support specified property&lt;BR /&gt;
'484   Problem getting printer information from the system. Make sure the printer is set up correctly&lt;BR /&gt;
'485   Invalid picture type&lt;BR /&gt;
'486   Can 't print form image to this type of printer&lt;BR /&gt;
'520   Can 't empty Clipboard&lt;BR /&gt;
'521   Can 't open Clipboard&lt;BR /&gt;
'735   Can 't save file to TEMP directory&lt;BR /&gt;
'744   Search Not text&lt;BR /&gt;
'746   Replacements too long</description>
      <pubDate>Tue, 08 Nov 2005 18:48:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/1480481#M39130</guid>
      <dc:creator>fxcastil</dc:creator>
      <dc:date>2005-11-08T18:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/3076608#M39131</link>
      <description>&lt;P&gt;We are getting this error 52 (bad file name or number ) when we try to save an autocad drawing as pdf. How to resolve this?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2011 01:17:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/3076608#M39131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-30T01:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/7078309#M39132</link>
      <description>&lt;P&gt;I have found it next to impossible to grasp, or learn from 2018 AutoCAD without having the definitions to the error codes! How and where do I get these illusive little devils?!? I have several projects on hold because I can not figure out why the program does not function as it should, or complete the task at hand!&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 18:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/7078309#M39132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T18:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: autocad error codes</title>
      <link>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/7078655#M39133</link>
      <description>&lt;P&gt;What I do is use an error handler like the code shown below. I then set a break point in the sub and step through the code to find out what the error is. Then I modify the select case section to add a handler for the newly found error. Add a watch for Err.Number to see what the error is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Test()
    On Error GoTo Err_Control

    'main work goes here
    'Add line labels to return to various places in your logic.
    
Exit_Here:
    Exit Sub
Err_Control:
    Select Case Err.Number
    'Add your Case selections here
    'Case Is = 1000
        'Handle error
        'Err.Clear
        'Resume Exit_Here
    Case Else
        MsgBox Err.Number &amp;amp; ", " &amp;amp; Err.Description, , "Test"
        Err.Clear
        Resume Exit_Here
    End Select
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 21:40:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/autocad-error-codes/m-p/7078655#M39133</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2017-05-11T21:40:46Z</dc:date>
    </item>
  </channel>
</rss>

