Results 1 to 3 of 3

Thread: Bad Argument

  1. #1
    I could stop if I wanted to
    Join Date
    2001-11
    Posts
    236
    Login to Give a bone
    0

    Default Bad Argument

    I have the following errors after opening AutoCAD 2009.
    How can I locate the files which has the errors?
    Windows Explorer could not locate the word "lentityp nil" or "stringp nil" with the the "A word or phrase in the file" option.

    ERRORS:
    AutoCAD menu utilities loaded.; error: bad argument type: stringp nil
    AutoCAD menu utilities loaded.Loaded...; error: bad argument type: lentityp nil

  2. #2
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: Bad Argument

    Quote Originally Posted by omorah View Post
    I have the following errors after opening AutoCAD 2009.
    How can I locate the files which has the errors?
    Windows Explorer could not locate the word "lentityp nil" or "stringp nil" with the the "A word or phrase in the file" option.

    ERRORS:
    AutoCAD menu utilities loaded.; error: bad argument type: stringp nil
    AutoCAD menu utilities loaded.Loaded...; error: bad argument type: lentityp nil
    you wont find those lines within a file, they are error codes, it means:
    ((= ErrorMsg$ "bad argument type: stringp nil") "String variable not defined.")
    ((= ErrorMsg$ "bad argument type: lentityp nil") "entget passed a nil.")
    meaning you have some sort of a custom routine that is being loaded that is not coded properly, or not being called properly. the only way to really figure it out is to load your custom routines one at a time and trace the error. At our offices, I added print lines to the startup routines that allow me to determine where in the order our startup failed. It adds a lot of extra text to the startup, but it makes it a heck of a lot easier to troubleshoot.

  3. #3
    Active Member
    Join Date
    2002-12
    Posts
    77
    Login to Give a bone
    0

    Default Re: Bad Argument

    One of the things that I did here (at work) was to add to line to all of out major lisps (acad.lsp, acaddoc.lsp, company.lsp as well as any .mnl)

    (princ "\n Loading xxxx.lsp") at the begining
    (princ "\n xxx.lsp loaded succefully....") at the very end

    This way I can tell were in the load process I get a failure. This allow me to track it from there.

Similar Threads

  1. Help with Defun Argument
    By jeff.richards in forum AutoLISP
    Replies: 4
    Last Post: 2011-08-03, 04:23 PM
  2. error: bad argument value: positive 0
    By marijan.marsic in forum AutoLISP
    Replies: 6
    Last Post: 2010-05-06, 01:24 PM
  3. bad argument type: lentityp nil
    By moshira_hassan in forum AutoCAD General
    Replies: 1
    Last Post: 2009-04-15, 07:09 AM
  4. Presentation Argument
    By mjdanowski in forum Revit MEP - General
    Replies: 2
    Last Post: 2007-12-04, 02:22 PM
  5. bad argument type: FILE nil, help plz
    By jgroh in forum AutoLISP
    Replies: 11
    Last Post: 2007-10-30, 01:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •