CADcaster

CAD News, Updates and Community

Browsing Posts tagged command

quickcalc
My friend notify me about this bug a couple days ago. He mention that when we use the QUICKCALC (or CAL) command, AutoCAD returns incorrect value. This is a bug.

Try to calculate 750-693. You may see it returns incorrect value. I got 56. There are some more incorrect results.
Yesterday, VMichl notify me that this issue has been fixed in AutoCAD 2010 update 1.
Snipped from readme:

The following defects have been fixed:
(One of them is:)
QUICKCALC
Calculations performed by the QUICKCALC command may be incorrect.

If you have the same problem, download the update 1 here. Install it, and see if it’s fixed.

align=center borderColor=#000000>
Do you find our tutorial useful?
Please consider to donate via Paypal to support this site providing free contents!




Source: CAD Notes – AutoCAD Performs Incorrect Calculation
Go to Source: CAD Notes

  • progeCAD IntelliCAD Command Reference

    Command Reference – See all the commands and how closely they match with AutoCAD. Then save a ton of money with progeCAD. http://www.icadsales.com


Source: News from IntelliCAD and Friends… – Links for 2009-10-05 [Digg]
Go to Source: News from IntelliCAD and Friends…

If you’re using AutoCAD for long period of time and you know how to use the AutoLISP and the importance of it. You probably know how to load the AutoLISP file in AutoCAD, and you certainly don’t need to read this tutorial. But if happens that you are relatively new on using the AutoCAD and you want to expand your knowledge in this drawing application software, then this tutorial is for you.

AutoLISP a Brief Description

AutoLISP is based on the LISP programming language, which is simple to learn and very usefull in everyway. AutoLISP Applications or routines can interact in AutoCAD in many ways. These routines can prompt the user for input, access built-in AutoCAD commands directly, and modify or create objects in the drawing database. By creating AutoLISP routines you can add discipline-specific commands to AutoCAD. Actually, some of the standard AutoCAD commands are AutoLISP applications. Knowing how to load and use these routines can enhance your productivity.

Loading the AutoLISP

There are two methods to load an AutoLISP file, one is loading it by using the Customize User Interface editor or CUI, the other is by using the command Load Application or simply APPLOAD. Customize User Interface editor can be found by clicking the CAD Manager pulldown menu, then Customize, then Interface (fig.1).

Fig.1Fig.1

Alternatively at the command prompt, key-in CUI. Then in the Customize Interface editor tab, in the Customizations in all CUI files pane, right-click LISP files, then click Load LISP. Then in the Load LISP dialog box, locate and select the AutoLISP file you want to load. Remember only files with the extension LSP can be selected here. After you selected the AutoLISP file that you want, click OPEN.

Fig.2Fig.2

Load Application or simply APPLOAD, using this command is the easiest method in loading an AutoLISP file. You can find this command under CAD Manager pulldown menu on the same place where the Customize User Interface can be found. Or at the command prompt key-in APPLOAD. The good thing in using this method is, not only the AutoLISP files can be loaded but also some other AutoCAD Application files as well. Such as ObjectARX files (arx), VBA files (dvb), ObjectDBX files (dvx), Visual Lisp Executables (vlx), and Fast-load AutoLISP Format (das) [Fig.3].

Fig.3Fig.3

More of this method here in this post Free AutoLISP Routine.

Related Posts

Source: PinoyCAD[dot]net | Your Daily dose of AutoCAD Tutorials – How to Load an AutoLISP File
Go to Source: PinoyCAD[dot]net | Your Daily dose of AutoCAD Tutorials

I know this information might be a little bit out dated. But honestly I’ve never user ribbon intensely before. Well, I don’t think most AutoCAD users never look for anything like it. Before AutoCAD already has command line.

I accidently found that with ribbon interface, we can have alternative shortcut key.

If you use any of Autodesk product with ribbon interface, try to press [ALT]. After a few moments (I’ve never give that moment before) you will see numbers on quick access toolbar, and letters under the ribbon tabs. Your guess is right, if you press that particular number or letter, it will activate the tool (or tab).

AutoCAD 2010 Ribbon

Now try to press any letter that represent a tab. You can start with H when you have home tab active. You will see next level shortcut key on each tool. Kind of scary for me. But I know it’s useful after a while. Remembering them is the hardest part.

Each Tool Key In

Senior AutoCAD users that rely heavily on command line may not appreciate it too much. I know I don’t. Especially when we already familiar with command line for years.

But I like it on Revit. Yes, Revit also has shortcut key before it use ribbon interface. The difference is, Revit is not used to has shortcuts for every tools!

Revit Architecture 2010 Ribbon

This also work for Microsoft Office application with ribbon interface. Sadly, I’m one of the ribbon haters before, so I never found out about this. But after this, I think I’ll give it a try :)




Source: CAD Notes – Ribbon Shortcut Key on Autodesk Products
Go to Source: CAD Notes

Sometimes while doing our job in AutoCAD there is some instances that happens unexpectedly. And one of that is the accidental turning off of the command line, and with that, you are unable to see the command that you’re keying-in.

Fig.1Fig.1

There is two way actually to hide the command window of AutoCAD or in these case to unhide.  One of these is on the keyboard shortcut, by pressing CTRL+9. The other is at the Tools pulldown menu, then Command Line (fig.1). Alternatively if you are using AutoCAD Architecture 2008 and beyond, you can find the command line in Window pulldown menu as well (fig.2).

Fig.2Fig.2

Thats all for now.

Random Posts

Source: PinoyCAD[dot]net | Your Daily dose of AutoCAD Tutorials – How to Hide/Unhide Command Line
Go to Source: PinoyCAD[dot]net | Your Daily dose of AutoCAD Tutorials

shift

Command line is a very powerful feature in AutoCAD, and I don’t think replaceable. I know there are a lot of pros and cons about using command line in AutoCAD. Personally I like using shortcut key when using AutoCAD, but I found that it’s difficult for people who rely heavily on this when learning other CAD application.

But doesn’t matter. When you use AutoCAD, you’ll want to use it optimally right?

You can see and customize your aliases by accessing edit aliases in AutoCAD ribbon, manage tab, customization section.

Or if you use AutoCAD classic interface, you can access it from menu tool>customize>edit program parameters (acad.pgp)

edit aliases

This will open your acad.pgp file in text editor (by default it’s notepad).

acad.pgp

As you can see, this is a list of all your command aliases. Mine is default, so aliases for line is L. When I type L then [enter] will activate the line tool. Typing LA [enter] will open the layer manager. Etc.

AutoCAD commands don’t work like any other Windows applications. In Revit or Inventor, you simply type two character to activate a tool. No need to press [enter]. But in AutoCAD you can use single character, or more than two. MicroStation can do some similar key-in, but command line is not always have the input focus. Using command line in other application might not be as comfortable as in AutoCAD for AutoCAD users. I suggest you not depends on command line so much, unless you don’t plan to use other CAD applications.

You can edit the aliases and change them to what you want. After you finish, save this file. You might need to restart your AutoCAD after doing your modification.

Where’s the Complete List of AutoCAD Command?

You can see the whole AutoCAD command in AutoCAD help file. See under command reference>commands.

AutoCAD commands

But do you really want to remember all of them? :)




Source: CAD Notes – Where Can I See AutoCAD Command Alias List?
Go to Source: CAD Notes

mousebutton

We have discussed how to add new command to AutoCAD. We added our new command to Now let’s discuss how to add it to context menu. We want this command appear when we select particular type of object. This is what a contextual menu all about, right?

This time we will create a command to automatically convert line(s) to polyline. This is not something new. I’ve seen a lot of people have discuss it in forum or blogs. One of them is in Autodesk evangelist, Lynn Allen blog. But we are going to do it slightly different: put it to our context menu.

Open your CUI browser. You might want to read the previous post about creating a new command before you continue.

Right click on command list area, select new command from context menu. Rename it. Let’s call it Line to Pline. Or if it’s sound ridiculous to you, you can use another name that suit you.

Now in properties area, macro field, type this value:

^C^C_pedit;;;^C

A little explanation:

  • ^C is similar to pressing [esc], pressing [esc] twice will cancel a running command (if any).
  • PEDIT is activating polyline edit command
  • ;;; means you press [enter] three times. ; will execute [enter]

In Lynn’s blog she use ^C^CPEDIT;y;; It would work fine too. What’s the difference? Let’s compare to what we do.

  • ^C^C is just the same to what we do.
  • she use PEDIT instead of _PEDIT. Mostly using either one of it works fine. Adding underscore is an AutoCAD convention so this command can be used by AutoCAD in any other language. If you use English, then there’s no difference with or without underscore.
  • She use Y after the first ; If you activate PEDIT and select a line or arc, then AutoCAD will ask you: Object selected is not a polyline Do you want to turn it into one? <Y>
    By default the answer is yes. So pressing [enter] without typing Y will return the value of Yes. She decided to make sure AutoCAD will accept yes as the answer, so add Y then [enter] to do this.

Not different at all, aren’t they?

Now we have done with creating command. Now we have to define a new shortcut menu. Look at customize section. Find shortcut menus group. Right click on it, and click new shortcut menu. Rename it to Line Object Menu.

shortcutmenu

What are we doing? We define a condition, when this menu should appear. We want this menu appear when we select line. But it won’t appear when we select other type of objects. We have created the menu, but haven’t define the condition. Now we add this condition on properties section, aliases field.

Click ‘…’ button on this field. Use it, don’t type directly on the text field. Type on each line as follow:

  • OBJECT_LINE    –> this will enable your menu appear when you select a single line
  • OBJECTS_LINE   –> this will enable your menu appear when you select multiple lines

Adding both of them will enable your menu to appear on both conditions.

object name

Click OK. You will see your aliases as below. You might have different ID than mine (mine POP520), but that’s not a problem.

properties

Now, drag and drop our new command to this shortcut menu.

cuifinish

Click OK to close your CUI browser. Now try to draw some lines. Select it, then right click. See if your command show up in your context menu.

menuresult

Kinda fun, isn’t it?




Source: CAD Notes – Adding Command to Your Right Click
Go to Source: CAD Notes

cui If I’m not mistaken, AutoCAD use CUI since 2006. Not MNU or MNS as it used to be. CUI (customize user interface) is a XML file. It’s easier to manage. In this post, I will create a new command to set all properties to ByLayer. This is a request from my colleague. He likes to override color and linetype when he draw, and want to be able to reset all of the properties back to ByLayer. By clicking my new command, every properties will be set to By Layer.

First you may want to take a look to what I want to achieve. Click here to see animation.

Let’s do it. First open CUI by accessing menu tools>customize>interface… or by typing CUI then [enter] from command line. You will see browser like this. If you use ribbon, find it in manage tab, customization section.

 cui browser

CUI browser is easier to use than creating old AutoCAD menu. There are 3 areas I would like to highlight

  1. All customization. Here is where you can put all your command. Either you want to put it in ribbon, tool bar, right click context menu, and even double click.
  2. Command list. Here is all your AutoCAD commands. When you create a new command, it will appear here.
  3. Properties. Here is your command properties. After creating new command, you will have to define what it should do.

Let’s start with creating a new command. Right click on command list (2), and select new command from context menu. Rename it. Give it name ‘All ByLayer’ without quote. You can see the animation here.

Now, we have created a command. But it doesn’t know what to do yet. We have to tell it what it should do by typing macro command in properties area (3). Type this macro on the macro field.

^C^C(setvar "cecolor" "ByLayer") (setvar "celweight" -1) (setvar "celtype" "ByLayer")

^C^C will cancel all running command. Similar to pressing [esc] twice. Then we tell AutoCAD to change current color to ByLayer. Then current lineweight to ByLayer, and finally current line type to ByLayer.

Give a description for this command.

We have created a new command, and give instruction what it should do when it’s executed. But AutoCAD doesn’t know yet, where you want the command can be accessed. Now find your command in command list. We named it ‘All ByLayer’ before.

Click and drag it to the place where you want it appear. In this example below, I put it on my layer toolbar. You can also put it on right click context menu (more about this later) or double click!

command position

Click OK on this CUI browser to finish our work. Now take a look on your layer toolbar (or anywhere you put it before). Is it there? Try it!

Not so hard right? Learning macro is one thing, but creating customization with CUI is a lot easier than MNU or MNS. Good luck!




Source: CAD Notes – Creating New Command in AutoCAD
Go to Source: CAD Notes

How did we get along without these?

REVERSE: This command reverses the direction of lines, polylines, splines, and helixes. As an example, say a linetype containing text flips the text when reversed, or when using these objects to create solid models, you may be able to use REVERSE instead of erasing and redrawing them….

AUTOCONSTRAIN: This command allows you to put geometric constraints to all or selected objects automatically. There is a related Constraint Setting dialog box that specifies the tolerance distance, what constraints to apply, and the order of priority. The objects to be constrained must be within the tolerances specified.

How about a hidden “undocumented” tool? When using the MOVE, ROTATE, and SCALE command, hold your CTRL key down and you can edit one segment of a polyline. This is similar to the sub-object selection available in Civil 3D.

-EXPORT: Yet another hidden and undocumented command. This will allow you to export dwf, dwfx, or pdf from one place. Make sure you have Dynamic Input turned on for easy selection.

We are just beginning to scratch the surface here. Come back later for more!

Thanks All

Bob

Source: The AutoCAD Gazette – Some New Commands in AutoCAD 2010.
Go to Source: The AutoCAD Gazette

AutoCAD communicates with its user through the command line. Long ago, when AutoCAD used to run on DOS, using the keyboard was a lot more important than it is today. As the user interface improve, the command line is losing its appeal. It still provides important feedback though.
The SPACE, ENTER and right-click button can all [...]

Source: All About CAD – Tip: Making Better Use of the Right-mouse button
Go to Source: All About CAD

Powered by WordPress Web Design by SRS Solutions © 2010 CADcaster Design by SRS Solutions