How to prevent command dialog boxes to appear?



Author Orhan Toker
Profession Architect M.Sc.
  Autodesk Authorized Consultant
  Database Specialist
e-mail  

Hello Daily AutoCAD readers,

Sometimes, we may want for the dialog boxes that appear when the commands are executed not to appear. In such cases, we can use system variables FILEDIA and CMDDIA to prevent file and command dialog boxes from appearing. However, due to the fact that this will affect the commands, this may be a little bit amusing.

In some rare cases, you may want the dialog boxes of the command that you will use not to appear. In such cases, it will be enough for you just to put “-” in front of the command. For example, we would like the INSERT command to be executed from the command line. It will be enough to write just:

Command: -insert

Then, AutoCAD will run all of the steps of the command from the command line.

That’s all for today, have a nice day…

Related Articles:

Technorati Tags:

Similar Posts

Rate this article:

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 4.5 out of 5)
Loading ... Loading ...

5 Responses to “How to prevent command dialog boxes to appear?

  • 1
    Fino
    July 10th, 2007 13:54

    Hi. Is there some command that can be written down in the command window that reprecents the “enter” button. I want to be able to paste a whole line in the command window and execute an -insert command. For example

    -INSERT SU222 1873,533141.086481896 1 1 0
    where su222 is the block name.

    usually when doing simular things with “-text” or “line” a “space” will work as an “enter”, but when working with the “insert block” command the name of the block can be more than one word and in my case AutoCAD takes it as “SU222 1873,533141.086481896 1 1 0″ is the name of the block.

  • 2
    Arnstein
    July 17th, 2007 14:31

    Hi Fino!
    If you put “SU222″ 1873,5331…. and so on, it should work. Even if you have a name with several spaces in, it shouldnt be a problem.
    I made the following command under a new button:
    ^C^C_-insert “temp temp” 0,0,0 1 1 0
    And it found the temp temp file without any problems, and inserted it on my given coordinates.
    So if you have a border you normally uses, you migth as well make a button for it.
    Hope this was of any help.
    Best Regards
    Arnstein Hodne

  • 3
    Arnstein Hodne
    July 17th, 2007 14:37

    Hi Fino!
    I think you can do the following:
    -Insert “SU222″ 1873,533….and so on..
    I tried this and wrote the following command under a new button:
    ^C^C_-insert “temp temp” 0,0,0 1 1 0
    And it worked without any problems.
    As you can see, you shold also be able to name a block that has space in it without any problems.
    Hope this was of any help
    Best Regards
    Arnstein Hodne

  • 4
    Arnstein Hodne
    July 17th, 2007 14:45

    Hi Fino
    If you try to put in -Insert “SU222″ 1873,533….and so on, it should work better.
    I made a new button to test this out, with the following coding:
    ^C^C_-insert “temp temp” 0,0,0 1 1 0
    ..and it worked!
    And as you see, you can also put in space inside the block-name without problems.
    So if you have a border you use quite often, you can make an own button for it!
    Hope this was of any help
    Best Regards
    Arnstein Hodne

  • 5
    Arnstein Hodne
    July 17th, 2007 14:46

    ..typical that when the 2 first times i commented it didnt show anything, but suddenly it did. Please delete them!
    Argh..
    -Arnstein-

Leave a Reply