AutoCAD calculator (the QUICKCALC command )is a great feature for both simple and complex calculations. One of the great features is the ability to calculate coordinates.

QuickCalc has variables (or functions) that are shortcuts to some of the more complex coordinate calculations. To use these functions, follow these steps:

- Start a command.
- At the prompt where you need the function, type
**‘quickcalc**(or**‘qc).** - From the Variables list, double-click the function that you want to place it in the Input box of the QuickCalc window.
- Press Enter. You return to your drawing and see a pickbox cursor.
- Pick the required points, most commonly by object snaps. The QuickCalc window returns, and you see an absolute coordinate in the Input box.
- Click the Apply button.
- Continue the command.

For example, let’s say I have a rectangle and I want to start a line at its center, defined as the intersection of the two diagonal lines drawn from opposite corners. Here’s one way to do that:

- Start the LINE command.
- At the Specify first point: prompt, type
**‘qc**. - From the Variables list (you might have to expand the QuickCalc window to see it; then expand the Variables category), double-click
**ille**. - Press Enter. You return to your drawing with a large pickbox.
- Pick the first set of diagonal points, such as the upper-left, then the lower-right corners of the rectangle.
- Pick the second set of diagonal points, such as the upper-right, then the lower-left corners of the rectangle.
- Click the Apply button in the QuickCalc window.
- Your line’s start point is now set at the center of the rectangle and you can continue the command.

### Create a custom function

When you click a function, you see a tooltip giving you the full format of the function. You can use this format to create your own functions. For example, mee (midpoint between two endpoints) is (end+end)/2. So, to find the midpoint between two nodes (rather than two endpoints), you would use (nod+nod)/2.

To save your custom function, click the New Variable button at the top of the Variables section. The Variable Definition dialog box opens, where you can define and save the variable.

Then, your custom variable appears on the list and you can use it like one of the variables that come with AutoCAD. You can see **mnn **at the very bottom of the list.

How cool is that? Have you created a custom variable? Please share it in the comments.

Done in AutoCAD 2011

### Related tips

Find the midpoint between two points, the center of a triangle, and other unusual points

How does one go about putting “center of a triangle” in the floating Osnap GUI? I would want it right next to “mid between two points” which I use A LOT.

You can customize the right-click menu to include it. Is that what you meant? I don’t have a tip specifically for customizing the right-click menu, but here’s one on customizing the ribbon:

http://www.ellenfinkelstein.com/autocadtips/AutoCAD_tips_add_command_ribbon.html