Construction ModuleTypes
Dynamic Variables
Using variables in type configurations
Dynamic Variables
Variables enable dynamic values in types and options.
Variable Concepts
What are Variables?
Variables store dynamic values:
- Calculated prices
- Unit-specific data
- Configuration inputs
- Computed values
Use Cases
| Use Case | Example |
|---|---|
| Area-based pricing | Price per sqm |
| Lot-specific | Lot dimensions |
| Calculated totals | Sum of options |
Variable Types
Input Variables
User-provided values:
| Variable | Type | Example |
|---|---|---|
| Lot Width | Number | 15 meters |
| Lot Depth | Number | 25 meters |
| Floor Level | Number | 3 |
Calculated Variables
Computed from formulas:
Lot Area = Lot Width × Lot Depth
Price = Base + (Lot Area × Price/sqm)System Variables
Provided by system:
| Variable | Source |
|---|---|
| Unit Number | From project |
| Project Name | From project |
| Current Date | System |
Creating Variables
Step 1: Define Variable
- Go to type Variables tab
- Click Add Variable
- Configure:
| Field | Description |
|---|---|
| Name | Variable name |
| Code | Reference code |
| Type | Number/Text/Boolean |
| Default | Default value |
Step 2: Set Formula (if calculated)
LotArea = width * depth
ExtendedPrice = basePrice + (LotArea * 50)Using Variables
In Options
Reference in option pricing:
Driveway Extension: +${ExtendedDrivewayPrice}In Descriptions
Dynamic text:
"Your {LotArea} sqm lot at {ProjectName}"In Restrictions
Conditional rules:
IF LotWidth < 12 THEN exclude "Wide Garage"Variable Scope
| Scope | Available |
|---|---|
| Type | All options in type |
| Project | All types in project |
| Unit | Specific unit |