Results 1 to 9 of 9

Thread: Making a new Command in CUI

  1. #1
    Member
    Join Date
    2011-11
    Location
    Bothell WA
    Posts
    8
    Login to Give a bone
    0

    Default Making a new Command in CUI

    I tried to make a new command using the CUI that would turn on all layers. I want to be able to type it at the command line "LOA".

    I followed a Youtube video showing just how to do it.
    Inside the CUI at the Macro line, I typed in ^C^C_-LAYER:ON:*::

    When I entered the command LOA (or picked the new LOA button) all I got was:

    _-LAYER:ON:*:: Unknown command "-LAYER:ON:*::". Press F1 for help.

    What did I do wrong?

    Thanks for your help

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    I don't know about using the CUI but, usually, the colon between LAYER and ON should be a space.

  3. #3
    Member
    Join Date
    2011-11
    Location
    Bothell WA
    Posts
    8
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    The video said the colon is the same as an enter, but it's easier to see, especially if there are more than one together.

    I'll try to do spaces instead anyway.

    Thanks for the input.

  4. #4
    Member
    Join Date
    2011-11
    Location
    Bothell WA
    Posts
    8
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    I used spaces instead, which worked. But there's still something wrong. The final double enter isn't getting out of the command. So, I used ^C^C instead. This worked but I'm still puzzeled why the "right way" didn't.

    Help?

    I want to understand this so I can make more new macros.

  5. #5
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    ** Semi-colon

    Code:
    ^C^C^P"._-LAYER";"ON";*;;
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  6. #6
    Member
    Join Date
    2011-11
    Location
    Bothell WA
    Posts
    8
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    That's it! Thanks.

    Now how do I make it type-able? I want to type LOA in addition to the icon.

  7. #7
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    Quote Originally Posted by Chainring View Post
    That's it! Thanks.

    Now how do I make it type-able? I want to type LOA in addition to the icon.
    You can either type "LAYON" and hit Enter, or add this to the very bottom of your ACAD.PGP file:

    Code:
    LOA,         *LAYON
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

  8. #8
    Member
    Join Date
    2011-11
    Location
    Bothell WA
    Posts
    8
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    Thanks again for your help.

    So, what you're telling me is I did'nt need to make a new command using the CUI?
    It was a good excersize for me anyway.

  9. #9
    Administrator BlackBox's Avatar
    Join Date
    2009-11
    Posts
    5,719
    Login to Give a bone
    0

    Default Re: Making a new Command in CUI

    Quote Originally Posted by Chainring View Post
    Thanks again for your help.
    Happy to help.

    Quote Originally Posted by Chainring View Post
    So, what you're telling me is I did'nt need to make a new command using the CUI?
    ... Instead you learned how to make a Command Alias, by editing the Program Parameters (PGP) file.

    This can also be done from within AutoCAD:
    Option 1 - Use the ALIASEDIT command
    Option 2 - Express Tools ribbon tab, Command Aliases button
    Option 3 - Express menu, Tools flyout, Command Alias Editor... option
    ... I just prefer to modify files directly when possible - personal preference.

    Quote Originally Posted by Chainring View Post
    It was a good excersize for me anyway.
    The more you learn the better you can be.
    "How we think determines what we do, and what we do determines what we get."

    Sincpac C3D ~ Autodesk Exchange Apps

    Computer Specs:
    Dell Precision 3660, Core i9-12900K 5.2GHz, 64GB DDR5 RAM, PCIe 4.0 M.2 SSD (RAID 0), 16GB NVIDIA RTX A4000

Similar Threads

  1. Replies: 3
    Last Post: 2007-06-12, 05:43 AM
  2. Replies: 6
    Last Post: 2007-04-23, 01:40 AM
  3. Error occurring in my TUBE making command macro
    By steve.perkio in forum AutoCAD Customization
    Replies: 2
    Last Post: 2007-03-05, 09:16 PM
  4. Replies: 3
    Last Post: 2006-02-23, 04:00 PM
  5. Replies: 8
    Last Post: 2005-06-30, 02:32 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
  •