Dynamic Components SketchUp Function Examples
Math Functions SketchUp Functions Text Functions Trig Functions Logical Functions OnClick Functions SketchUp Functions (Specific to SketchUp Dynamic Components) Function
Last updated 17 July 2026
- Math Functions
- SketchUp Functions
- Text Functions
- Trig Functions
- Logical Functions
- OnClick Functions
SketchUp Functions (Specific to SketchUp Dynamic Components)
Function | Description | Example(s) |
|---|---|---|
CHOOSE(index,value1,value2, ...valueN) | The CHOOSE function returns a value from a list of parameters, at the location of the index value. This function allows you to create a single drop-down list that drives multiple attribute changes at once. | Example: |
CURRENT("attributeName") | The CURRENT function accepts a string name of an attribute, and returns the size or position attribute that the SketchUp user just applied. This function allows you to do validation of Scale Tool or Move Tool actions. | Example: |
EDGES() | The EDGES function returns the number of "ungrouped" edges inside the component or group that this function is called within. | |
FACEAREA("materialName") | The FACEAREA method returns the area (in square inches) of every "ungrouped" face that is painted with the materialName. The FACEAREA method returns the total area of all ungrouped faces when the materialName is not provided. | Example: |
FACES() | The FACES function returns the number of "ungrouped" faces inside the component or group that this function is called within. | |
LARGEST(value1,value2,...valueN) | The LARGEST function returns the largest of the values in a list. | Example: |
LAT() | The LAT function returns the latitude of the current SketchUp model. | |
LNG() | The LNG function returns the longitude of the current SketchUp model. | -- |
NEAREST(originalValue, value1, value2, ...valueN) | The NEAREST function compares the originalValue with a list of target values, and returns the target value that is closest to the originalValue. | Example: |
OPTIONINDEX("attributeName") | The OPTIONINDEX function returns the currently selected index from its option list given a string name of an attribute. For example, if an attribute can be "red","blue", or "green", and blue is the current value, this function returns 2. If no match is found, 0 is returned. | |
OPTIONLABEL("attributeName") | The OPTIONLABEL function returns the currently selected label form its option list given a string name of an attribute. For example, if an attribute can be "Red=red","Blue=blue", or "Green=green", and blue is the current value, this function returns "Blue". If no match is found, an error is raised. | |
SMALLEST(value1,value2,...valueN) | The SMALLEST function returns the smallest of the values in a list. | Example: |
SUNANGLE() | The SUNANGLE function returns the angle (in degrees) between the sun and the current model's North direction. | |
SUNELEVATION() | The SUNELEVATION function returns the elevation (in degrees) of the sun from the current model's shadow settings. The elevation is defined as the angle between a vector pointing at the sun and the ground plane. |
Still need help?
Technical support from our New Zealand team is available to customers with a current Procadsys SketchUp Pro Plus or SketchUp Studio Plus subscription. Self-help articles are public.
Contact SketchUp support