Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
Race63557P358Race63557P
358
Hotkey:* F2 (Ctrl+F2 to close) Image Added
Image Removed
Enables you to make numerical calculations within DoubleCADTurboCAD LTE, and to define variables. Image Added
Image Removed
You can also use this palette to assign constraints to dimensions. See Constraining Dimensions.

...

Anchor

...

360
360
Mathematical Calculations

To perform a calculation, enter the values in the top field of the palette, using parentheses as needed to create inner expressions. No spaces are allowed. The four mathematical operators should be entered as +, -, * (multiply), and / (divide). Image Added
Image Removed
To calculate the result, press Enter.
Image Removed Image Added
You can also use these commonly-used values in place of numbers:
pi =3.1415926
e 1415926e =2.71828
The 71828The function (F) button enables you to perform a function on the value in the parentheses. For example, select sin(error) Image Added to get the sine of an angle. Image Added
Image Removed
sin (error) Image Added appears in the calculator field (you also could have entered this expression yourself manually).
Image Removed Image Added
Sine is calculated for radians, so if you have a value in degrees it must be converted. Look in the functions menu under Units Conversion and select rad(a), which converts degrees to radians. Image Added
Image Removed
Arrange the expression so that the parentheses are in the correct places, and include the angle in degrees (45 in this case):
Image Removed Image Added
Press Enter to obtain the result. Image Added
Image Removed
Some functions require two values, such as exponentials. pow(x, y) raises x to the y power. Image Added
Image Removed
Include the values and press Enter to get the result.
Image Removed Image Added

...

Anchor

...

361
361
Defining and Using Variables

In addition to calculating numerical equations, you can use the Calculator Palette to define variables. Subsequent values and variables can then be based on variables you've already created.
In the calculator field, enter the variable definition in the format "variable name=value" (in this example, Length=5). The value can be a number, function, or another variable. Variables are case sensitive and cannot have spaces.
Image Removed Image Added
Press Enter, and the variable, value, and formula are listed in the list below. Image Added
Image Removed
You can also enter a variable and variable or formula directly in the fields of the list.
The next variable can be based on an existing variable. In the calculator field, enter an equation that uses a variable name, such as "Width=Length/2."
Image Removed Image Added
Press Enter, and the new variable appears, with its calculated value. Image Added
Image Removed

...

Anchor

...

362
362
Using

...

Expressions

...

in

...

Data

...

Fields

Anchor

...

363

...

Anchor
Race84811PRace84811P363
Numbers or variables from the Calculator Palette can be used as values in the Inspector Bar or Coordinate fields.
As an example, define Length and Width variables, and draw a rectangle (see Rectangle). Select the first corner point, but not the second point.
Image Removed Image Added
Press Tab to access the first field in the Inspector Bar. The value is highlighted. Image Added
Image Removed
Press F2 to access the Calculator Palette. In the calculator field, type Length and press Enter.
Image Removed Image Added
Note: You could also enter a mathematical expression based on numbers, or an expression that includes one or more variables.
Back in the Inspector Bar, the first field contains the new value.
Image Removed Image Added
For subsequent fields of the Inspector Bar or Coordinate Fields, do not press Tab to scroll. Instead, place the cursor in the desired field, then press F2 to access the Calculator Palette.