2004
Table Of Contents
- Contents
- Chapter 1 - Find the Information You Need
- Part 1 - The User Interface
- Part 2 - Start, Organize, and Save a Drawing
- Part 3 - Control the Drawing Views
- Part 4 - Create and Modify Objects
- Chapter 14 - Control the Properties of Objects
- Chapter 15 - Use Precision Tools
- Chapter 16 - Draw Geometric Objects
- Chapter 17 - Change Existing Objects
- Part 5 - Hatches, Notes, and Dimensions
- Chapter 18 - Hatches, Fills, and Wipeouts
- Chapter 19 - Notes and Labels
- Chapter 20 - Dimensions and Tolerances
- Part 6 - Create Layouts and Plot Drawings
- Chapter 21 - Create Layouts
- Chapter 22 - Plot Drawings
- Part 7 - Share Data Between Drawings and Applications
- Chapter 23 - Reference Other Drawing Files (Xrefs)
- Chapter 24 - Link and Embed Data (OLE)
- Chapter 25 - Work with Data in Other Formats
- Chapter 26 - Access External Databases
- Overview of Using AutoCAD with External Databases
- Access a Database from Within AutoCAD
- Link Database Records to Graphical Objects
- Use Labels to Display Database Information in the Drawing
- Use Queries to Filter Database Information
- Share Link and Label Templates and Queries with Other Users
- Work with Links in Files from Earlier Releases
- Part 8 - Work with Other People and Organizations
- Chapter 27 - Protect and Sign Drawings
- Chapter 28 - Use the Internet to Share Drawings
- Chapter 29 - Insert and View Markups
- Chapter 30 - Publish Drawing Sets
- Part 9 - Create Realistic Images and Graphics
- Glossary
- Index
Extract or Calculate Geometric Information from Objects | 259
Use the Geometry Calculator
By entering a formula on the command line, you can quickly solve a
mathematical problem or locate points in your drawing.
By entering a formula on the command line, you can quickly solve a
mathematical problem or locate points in your drawing. The CAL command
runs the AutoCAD 3D calculator utility to evaluate vector expressions (com-
bining points, vectors, and numbers) and real and integer expressions. The
calculator performs standard mathematical functions. It also contains a set
of specialized functions for calculations involving points, vectors, and
AutoCAD geometry. With the
CAL command, you can
■ Calculate a vector from two points, the length of a vector, a normal vector
(perpendicular to the XY plane), or a point on a line.
■ Calculate a distance, radius, or angle.
■ Specify a point with the pointing device.
■ Specify the last-specified point or intersection.
■ Use object snaps as variables in an expression.
■ Convert points between a UCS and the WCS.
■ Filter the X, Y, and Z components of a vector.
■ Rotate a point around an axis.
Evaluating Expressions
CAL evaluates expressions according to standard mathematical rules of
precedence.
Mathematical operators in order of precedence
Operator Operation
( ) Groups expressions
^ Indicates numeric exponent
*, / Multiplies and divides numbers
+, – Adds and subtracts numbers