Understanding Formulas
Formulas are user-defined equations for calculating the value of a property. You can use a formula to add data about
a selected group of objects or object styles to a schedule table after you define the formula property set definition. and
then add the formula property definition to a property set definition. For more information about property sets and
property set definitions, see “
Property Sets and Property Set Definitions
” on page 2024.
The worksheet you use to specify the formula also lets you evaluate sample results. Formulas can contain variables,
operators, and functions allowed in VBScript. For more detailed information about VBScript, go to
http://msdn.microsoft.com
and search for “VBScript Language Reference.” Additionally, in the Formula Property Definition
worksheet, links to online Help are available from the Insert VBScript code and Formula context menus for VBScript
items used in the formula.
Adding a Formula Property Definition to a Property Set Definition
Use this procedure to add a formula property definition to a property set definition. Formula property values can be
computed based on the values of other property data. (For more information about how a formula is evaluated, see
“
Formula Evaluation
” on page 2075.) For example, width and height are automatic door properties, which you can use
to compute the perimeter of the door. Defining (2 * [Width]) + (2 * [Height]) as a formula for a 36" x 84" door results
in a value of 240. A formula property definition is a type of automatic property, because the value it displays is determined
automatically, based on its definition, and cannot be edited directly.
NOTE There is no conversion made between units for a formula result.
Formulas can be simple mathematical expressions, such as 2+2. They can also contain variables, operators, and functions
allowed in VBScript, as shown in the examples below.
Statements
Set Statement
Property Get Statement
For Each...Next Statement
Call Statement
Sub Statement
Property Let Statement
For...Next Statement
Class Statement
While...Wend Statement
Property Set Statement
Function Statement
Const Statement
Set Statement
Public Statement
If...Then...Else Statement
Dim Statement
With Statement
Randomize Statement
On Error Statement
Do...Loop Statement
ReDim Statement
Option Explicit Statement
Erase Statement
Select Case Statement
Private Statement
Execute Statement
Functions
ScriptEngineMinorVersion
LBound
Escape
Abs
Second
LCase
Eval
Array
SetLocale
Left
Exp
Asc
Sgn
Len
Filter
Atn
Sin
LoadPicture
FormatCurrency
CBool
Space
Log
FormatDateTime
CByte
Split
LTrim
FormatNumber
CCur
Sqr
Maths
FormatPercent
CDate
StrComp
Mid
GetLocale
CDbl
String
Minute
GetObject
Chr
Tan
Month
GetRef
CInt
Time
MonthName
Hex
CLng
Timer
MsgBox
Hour
Conversions
TimeSerial
Now
InputBox
Cos
Understanding Formulas | 2073
Summary of Contents for 00128-051462-9310 - AUTOCAD 2008 COMM UPG FRM 2005 DVD
Page 1: ...AutoCAD Architecture 2008 User s Guide 2007 ...
Page 4: ...1 2 3 4 5 6 7 8 9 10 ...
Page 40: ...xl Contents ...
Page 41: ...Workflow and User Interface 1 1 ...
Page 42: ...2 Chapter 1 Workflow and User Interface ...
Page 146: ...106 Chapter 3 Content Browser ...
Page 164: ...124 Chapter 4 Creating and Saving Drawings ...
Page 370: ...330 Chapter 6 Drawing Management ...
Page 440: ...400 Chapter 8 Drawing Compare ...
Page 528: ...488 Chapter 10 Display System ...
Page 540: ...500 Chapter 11 Style Manager ...
Page 612: ...572 Chapter 13 Content Creation Guidelines ...
Page 613: ...Conceptual Design 2 573 ...
Page 614: ...574 Chapter 14 Conceptual Design ...
Page 678: ...638 Chapter 16 ObjectViewer ...
Page 683: ...Designing with Architectural Objects 3 643 ...
Page 684: ...644 Chapter 18 Designing with Architectural Objects ...
Page 788: ...748 Chapter 18 Walls ...
Page 942: ...902 Chapter 19 Curtain Walls ...
Page 1042: ...1002 Chapter 21 AEC Polygons ...
Page 1052: ...Changing a door width 1012 Chapter 22 Doors ...
Page 1106: ...Changing a window width 1066 Chapter 23 Windows ...
Page 1172: ...1132 Chapter 24 Openings ...
Page 1226: ...Using grips to change the flight width of a spiral stair run 1186 Chapter 25 Stairs ...
Page 1368: ...Using the Angle grip to edit slab slope 1328 Chapter 28 Slabs and Roof Slabs ...
Page 1491: ...Design Utilities 4 1451 ...
Page 1492: ...1452 Chapter 30 Design Utilities ...
Page 1536: ...1496 Chapter 31 Layout Curves and Grids ...
Page 1564: ...1524 Chapter 32 Grids ...
Page 1611: ...Documentation 5 1571 ...
Page 1612: ...1572 Chapter 36 Documentation ...
Page 1706: ...Stretching a surface opening Moving a surface opening 1666 Chapter 36 Spaces ...
Page 1710: ...Offsetting the edge of a window opening on a freeform space surface 1670 Chapter 36 Spaces ...
Page 1956: ...1916 Chapter 42 Fields ...
Page 2035: ...Properties of a detail callout The Properties of a Callout Tool 1995 ...
Page 2060: ...2020 Chapter 45 Callouts ...
Page 2170: ...2130 Chapter 47 AEC Content and DesignCenter ...
Page 2171: ...Other Utilities 6 2131 ...
Page 2172: ...2132 Chapter 48 Other Utilities ...
Page 2182: ...2142 Chapter 51 Reference AEC Objects ...
Page 2212: ...2172 Chapter 52 Customizing and Adding New Content for Detail Components ...
Page 2217: ...AutoCAD Architecture 2008 Menus 54 2177 ...
Page 2226: ...2186 Chapter 54 AutoCAD Architecture 2008 Menus ...
Page 2268: ...2228 Index ...