+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Forum Newbie
    Computer Details
    mandy007's Computer Details
    Operating System:
    Windows xp
    Using
    AutoCAD 2009
    Join Date
    Jan 2012
    Posts
    1

    Default adding new commands to a cui file

    Registered forum members do not see this ad.

    Hello
    I have a menu called layer colors. it is part of a partial cui file.
    within the layer color menu is lisp that creates layers and also changes the colors as per the client we are drafting for.
    I need to add a new set of layer colors to my menu. I have tried a few things, and found that i can change an existing client's settings, but adding a whole new set to the menu gives me the "unknown command" error.

    here is what i did so far:

    located the *.mnl file and added the new command (in the same format as previous layer colour commands)
    then i did the same with the *.mnu file.

    then in the cui center in autocad, i created a new command for the new layer color, and added that command to the menu of my partial cui.

    the new command shows up in my layer color menu, however, it is an unknown command.

    i think im missing something between how the *.cui, *.mnu, and the *.mnl files all work together.

    any help will be greatly appreciated.

  2. #2
    Senior Member Ahankhah's Avatar
    Computer Details
    Ahankhah's Computer Details
    Operating System:
    Windows XP
    Using
    AutoCAD 2012
    Join Date
    Jun 2010
    Location
    Tehran, Iran
    Posts
    430

    Default

    AFAIK there is no *.mnu used in AutoCAD 2009.
    Mehrdad Ahankhah مهرداد آهن خواه
    www.IranCAD.com

  3. #3
    Forum Deity BlackBox's Avatar
    Using
    Civil 3D 2011
    Join Date
    Nov 2009
    Posts
    3,945

    Default

    Edit - SPAM ALERT! I would highly recommend that members NOT post their private email address within a forum post; add it to your profile if you like. Just saying.

    Quote Originally Posted by Ahankhah View Post
    AFAIK there is no *.mnu used in AutoCAD 2009.
    Ahankhah is correct, there is only CUI, & MNR (both compiled), and MNL (editable by user). In newer versions, CUIx provides the ability to add/import LSP files directly to the CUIx.

    Mandy007 - It sounds like you've successfully created both the Menu within the CUI, and the LISP within MNL, but did you properly create the MACRO within the Menu Command(s) you added to the CUI?
    "Potential has a shelf life." - Margaret Atwood

  4. #4
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,106

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by hari krishnan p nair View Post
    <<Deleted>>
    Please provide your help in the forum, as this provides help and information for all.

    "Give a man a fish and he'll eat for a day, but teach a man how to fish and he will be fed for a lifetime."
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



Similar Threads

  1. Replies: 4
    Last Post: 16th Nov 2011, 03:59 pm
  2. Adding Commands to Right click menu
    By Bowl.Spliffson in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 29th Apr 2010, 02:40 am
  3. PGP file with underscore commands
    By Crazy J in forum AutoCAD General
    Replies: 7
    Last Post: 16th Feb 2010, 09:40 pm
  4. File menu drop down commands
    By Vikes_Fl in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 22nd Jun 2007, 05:57 pm
  5. ACAD.PGP File and Commands
    By skipper in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 6th Feb 2007, 12:27 am

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