+ Reply to Thread
Results 1 to 4 of 4

Thread: Multiple QNew

  1. #1
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Mar 2005
    Posts
    46

    Default Multiple QNew

    Registered forum members do not see this ad.

    I am wondering if there is a way to create more than one Qnew button. I am linking one to a template and the other to a dwg file that has been set up for certain applications. I would like to be able to open each seperately with just one click. If I can't create multiple Qnew buttons anyone no a workaround for this?


    Thanks in advance for help.

  2. #2
    Super Moderator Tiger's Avatar
    Computer Details
    Tiger's Computer Details
    Operating System:
    Windows 7 Enterprise 64 bit
    Computer:
    Dell Precision M4500
    CPU:
    Intel Core i5 2.40GHz
    RAM:
    8GB
    Graphics:
    NVIDIA Quadro FX 880M
    Primary Storage:
    280 GB
    Monitor:
    2 x Samsung SyncMaster 2443 24''
    Using
    AutoCAD 2012
    Join Date
    Nov 2006
    Location
    Sthlm, Sweden
    Posts
    4,595

    Default

    hmmm....I'm guessing you're changing the existing macro of ^C^C_qnew to something else? Then you should just be able to create another button with another macro....take a look at this, I'm working on it at the moment so don't pay too much attention to the spelling mistakes, and feel free too comment on it:

    HOW DO I CREATE A TOOLBAR BUTTON
    Open the Custom User Interface dialogue window by typing CUI on the command line, or go to Tools > Customise > Interface.


    Click the New button under Command List (bottom left section of the dialogue box). Then highlight the new command called "Command1".

    Fill out these sections under Properties (on the right side of the dialogue box):

    General
    Name - The name of the command.
    Description - Description of the command that shows when the cursor hovers over the button.
    Macro
    Macro - The code required for the command to work. What is a macro?
    Images
    Small image – Select a button image from the table at the top right corner, or to use a customized image, refer to this FAQ: How do I create a custom icon?
    Large image - Select a button image from the table at the top right corner, or to use a customized image, refer to this FAQ: How do I create a custom icon?

    When done, click Apply and the new command can be accessed from the Command List at the bottom left corner of the dialouge box.
    To be able to use the new button, it needs to be placed on a toolbar. To create a custom toolbar, refer to this FAQ:
    How do I create a custom toolbar

    HOW DO I CREATE A CUSTOM ICON?

    The images available in the CUI dialogue box are already in use in AutoCad, it is therefor recommended to use custom icons for customized commands.

    Any image can be used as an icon, as long as it is (or has been rescaled to) a size of 16x16 pixles.

    The image needs to be saved to the AutoCad default search path for icons: C:\Documents and Settings\Admin\Application Data\Autodesk\Autodesk Map 3D 2007\R17.0\enu\Support\Icons.

    For more information about Default Search Paths, refer to this FAQ:
    Default Paths for Profile, Templates and Configuration Files



    To create a icon from scratch, here are some methods:

    Method 1:
    Open the Custom User Interface dialogue window by typing CUI on the command line, or go to Tools > Customise > Interface.

    Click the New button under Command List (bottom left section of the dialogue box). Select a random button in the top right section of the window, click Edit to get up the Button Editor. Erase everything with the Clear button, draw your own image and “Save As”. Make sure it is saved as a .bmp and to the correct folder.



    Method 2:
    If the Button Editor in AutoCAD is not enough, it is possible to create a button via a suitable Clip Art program such as Paint.Net. To get the image the right size, it is recommended to first use method 1 to create a blank button, and then edit that button to suit in the Clip Art program. Make sure it is saved as a .bmp and to the correct folder.



    Method 3:
    It is also possible to use AutoCad to draw an icon.

    Start with a rectangle, recommended size is 150x150 units, and use Hatch > Solid to fill the rectangle with a suitable background color. Import raster image if needed and/or text or other shapes. The command DRAWORDER may be required to send the rectangle and solid hatch to the BACK.

    When done, either use Print Screen to copy the image into a suitable Clip Art program, or Export the drawing as a .bmp and open it in a suitable Clip Art program.
    Resize the image to maximum 16x16 pixles and make sure that it is saved to the correct folder.
    Life doesn't suck, although we all go through periods when it may be easier to think that, than to discern the solution to whatever problem is the most formidable
    at the moment in one's personal UCS.
    Go to PLAN view instead. - Dadgad

  3. #3
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Mar 2005
    Posts
    46

    Default

    While I really appreciate the help I know how to create buttons and icons and toolbars and all that.

    What I want to be able to do is create a button like QNew does and set a file search path to a template that is out on a server.

    If you go to options you are able to go to file then QNew and point to a folder that you want to open. I already have this set to one file but I need another one for a seperate file.

    Is it possible to create a button and set the file search path as the macro? If so how would it look because I can't get it to do anything.

    Appreciate the help.

  4. #4
    Super Moderator Tiger's Avatar
    Computer Details
    Tiger's Computer Details
    Operating System:
    Windows 7 Enterprise 64 bit
    Computer:
    Dell Precision M4500
    CPU:
    Intel Core i5 2.40GHz
    RAM:
    8GB
    Graphics:
    NVIDIA Quadro FX 880M
    Primary Storage:
    280 GB
    Monitor:
    2 x Samsung SyncMaster 2443 24''
    Using
    AutoCAD 2012
    Join Date
    Nov 2006
    Location
    Sthlm, Sweden
    Posts
    4,595

    Default

    Registered forum members do not see this ad.

    hmm...okey..hopefully it might come in handy for someone else when searching anyway

    I'm assuming that it's not possible to have the two templates in the same folder?

    Create a shortcut from one of the locations to the other one? not a solution though...but workarounds are the heart of AutoCad
    Life doesn't suck, although we all go through periods when it may be easier to think that, than to discern the solution to whatever problem is the most formidable
    at the moment in one's personal UCS.
    Go to PLAN view instead. - Dadgad

Similar Threads

  1. Multiple Drawings`
    By skov1 in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 3rd Mar 2008, 03:45 pm
  2. QNEW error.... loosing text style associations
    By Hickoz_bro in forum AutoCAD Drawing Management & Output
    Replies: 9
    Last Post: 7th Dec 2007, 10:47 am
  3. Multiple Wipeouts
    By Tconn in forum AutoCAD Drawing Management & Output
    Replies: 7
    Last Post: 23rd Aug 2006, 02:49 pm
  4. multiple pages?
    By johnnybond in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 21st Sep 2005, 02:50 pm
  5. QNEW and Environment Variable Setting
    By tomk_rlba in forum AutoCAD Drawing Management & Output
    Replies: 1
    Last Post: 4th Aug 2004, 03:14 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