+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 29
  1. #1
    Forum Newbie lido's Avatar
    Computer Details
    lido's Computer Details
    Operating System:
    Windows 10 x64
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2005
    Join Date
    Jan 2017
    Posts
    9

    Default AutoCAD built-in command list with AutoLISP

    Registered forum members do not see this ad.

    Hello all!
    I have an AutoLISP code that goes to the client along with drawings. The code contains a sequence for attribute editing with either EATTEDIT built-in command or an AutoLISP snippet.

    On this stage, I don't know if the EATTEDIT built-in command is implemented under the client CAD platform, so that I must check the availability of the command.

    Is there any possibility to obtain via AutoLISP a complete list of AutoCAD internal (built-in) commands?

    Thank you in advance.

  2. #2
    Super Member rlx's Avatar
    Computer Details
    rlx's Computer Details
    Operating System:
    W10
    Computer:
    i74ghz/ssd500/2tbhdd
    Discipline
    Electrical
    rlx's Discipline Details
    Occupation
    electrical designer dragon
    Discipline
    Electrical
    Details
    I dont excel in anything but I rearly give up
    Using
    AutoCAD 2016
    Join Date
    Nov 2014
    Location
    Bergen op Zoom , Netherlands
    Posts
    1,106

  3. #3
    Forum Newbie lido's Avatar
    Computer Details
    lido's Computer Details
    Operating System:
    Windows 10 x64
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2005
    Join Date
    Jan 2017
    Posts
    9

    Default

    Sorry, but atoms-family function don't return the built-in command names. Please try it.

  4. #4
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 10
    Computer:
    HP Z240
    CPU:
    i7-7700k @ 4.20GHz
    RAM:
    64GB
    Graphics:
    Nvidia Quadro P1000
    Primary Storage:
    0.5TB SSD
    Secondary Storage:
    1TB SATA
    Monitor:
    Vizio 40"
    Discipline
    Civil
    Using
    Civil 3D 2019
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    4,609

    Default

    Quote Originally Posted by lido View Post
    Is there any possibility to obtain via AutoLISP a complete list of AutoCAD internal (built-in) commands?
    ARX command, "C" option.

    Here is an entire thread on this topic, including some good lisp routines.
    R.K. McSwain
    CAD Panacea | twitter

  5. #5
    Super Member rlx's Avatar
    Computer Details
    rlx's Computer Details
    Operating System:
    W10
    Computer:
    i74ghz/ssd500/2tbhdd
    Discipline
    Electrical
    rlx's Discipline Details
    Occupation
    electrical designer dragon
    Discipline
    Electrical
    Details
    I dont excel in anything but I rearly give up
    Using
    AutoCAD 2016
    Join Date
    Nov 2014
    Location
    Bergen op Zoom , Netherlands
    Posts
    1,106

    Default

    Quote Originally Posted by lido View Post
    Sorry, but atoms-family function don't return the built-in command names. Please try it.

    oh darn... hope other reply does better... maybe vl-cmdf can offer a quick test because it first tests if a command can be successful before it executes it else just check autocad version

  6. #6
    Forum Newbie lido's Avatar
    Computer Details
    lido's Computer Details
    Operating System:
    Windows 10 x64
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2005
    Join Date
    Jan 2017
    Posts
    9

    Default

    I know the trick with ARX, option "C".
    EATTEDIT still missing from the list (AutoCAD 2015). Please give it a try.

  7. #7
    Super Member
    Computer Details
    ronjonp's Computer Details
    Operating System:
    Windows 10
    Using
    AutoCAD 2018
    Join Date
    Apr 2009
    Location
    Colorado
    Posts
    955

    Default

    Not a full list .. but here's a quick check:
    Code:
    ...
    Last edited by ronjonp; 12th Apr 2018 at 05:18 pm. Reason: *removed code suggestion does not work DOH!

  8. #8
    Super Member
    Using
    not applicable
    Join Date
    Jun 2016
    Posts
    703

    Default

    How about?:
    Code:
    (getcname "_eattedit")
    BricsCAD 18

  9. #9
    Forum Newbie lido's Avatar
    Computer Details
    lido's Computer Details
    Operating System:
    Windows 10 x64
    Discipline
    Multi-disciplinary
    Using
    AutoCAD 2005
    Join Date
    Jan 2017
    Posts
    9

    Default

    (vl-cmdf "abcde") return: Unknown command "abcde". Press F1 for help. T

    (command "abcde") return: Unknown command "abcde". Press F1 for help. nil

    Finally, always vl-cmdf function return T and command function return nil.
    How could I manage an error like "Unknow command" without an error code??

    Testing the AutoCAD version may be a path... But if the client uses an other CAD platform? First test the platform (PROGRAM system variable). Then test the version (VERNUM system variable) and decide if EATTEDIT is implemented or not by reading specific CAD manuals. No, please...

  10. #10
    Super Member
    Computer Details
    ronjonp's Computer Details
    Operating System:
    Windows 10
    Using
    AutoCAD 2018
    Join Date
    Apr 2009
    Location
    Colorado
    Posts
    955

    Default

    Registered forum members do not see this ad.

    Use Roy's suggestion .. or better yet get rid of command calls in your code.

Similar Threads

  1. How to Getvar from List Command Autolisp..?
    By GopinadhGvs in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 4
    Last Post: 10th Apr 2015, 02:40 pm
  2. How to utilize built-in Rotate command with SelectionSet?
    By Alex_AMF in forum .NET, ObjectARX & VBA
    Replies: 7
    Last Post: 3rd Dec 2014, 04:08 pm
  3. Is it possible to add a button/icon for an AutoLISP command to AutoCAD?
    By jjatho in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 3rd Jul 2013, 08:02 am
  4. Tutorial: Create a custom command for AutoCAD using AutoLISP
    By AutoCAD Tips Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 16th Jul 2012, 08:50 pm

Tags for this Thread

Bookmarks

Posting Permissions

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