+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Newbie
    Discipline
    Electrical
    goonkt's Discipline Details
    Discipline
    Electrical
    Details
    Construction
    Using
    AutoCAD 2013
    Join Date
    Jul 2012
    Posts
    8

    Default Custom Command in Command line

    Registered forum members do not see this ad.

    Hello

    I have created a couple custom commands to assist with selecting and copying objects. When i attempt to use the command in the command line it does not exist. Nor can i set a command alias. The command does work in a toolbar or tool pallet though.

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    Welcome to the Forum, Goonkt!
    How did you created those custom commands? Are about AutoLISP/.Net routines or macros on toolbar's buttons?
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,492

    Default

    It sounds as though you edited your acad.pgp file. Depending on how you did it you might have to issue a REINIT command at the command line. If that doesn't solve the problem then my next guess would be that you made your edits to the wrong part of the file.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  4. #4
    Forum Newbie
    Discipline
    Electrical
    goonkt's Discipline Details
    Discipline
    Electrical
    Details
    Construction
    Using
    AutoCAD 2013
    Join Date
    Jul 2012
    Posts
    8

    Default

    just right clicked tool palette customize command, add new command, and typed out the script

  5. #5
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,041

    Default

    Registered forum members do not see this ad.

    I'm afraid that in this case you can use that script only from said toolbar button. To call it from command line you need to convert it into a custom command using AutoLISP or other customization language.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

Similar Threads

  1. TEXT command made in MSexcel fail to execute in command line Autocad 2006 and higher
    By ctdlc888 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 4
    Last Post: 14th Sep 2011, 04:05 am
  2. Create a Command to run macro from command line
    By Andresig in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 16th Sep 2010, 09:16 pm
  3. Create a command name for new buttons to type into the command line?
    By DWG Destroyer in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 25th Jul 2009, 10:28 am
  4. OTRACK command fails when using floating command line
    By Autodesk in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 3rd Feb 2007, 02:40 am
  5. Custom Explorer Launch from the Command Line????
    By StykFacE in forum AutoCAD Drawing Management & Output
    Replies: 7
    Last Post: 19th Oct 2006, 01:13 pm

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