Skip to main content
Skip table of contents

composeStyle

Evaluates the Dynamo functions in a CSS style sheet present in the Online template this command is evaluated in. The CSS style sheet with the functions' evaluation results is then stored in the variable context as a String.

var

String

Defines the name of the variable the resulting CSS is stored in as a String.

style

DAP Part, String

Defines the CSS style sheet this command processes.

If the resolved value is a DAP Part, a CSS file within that Part is picked. If there are multiple CSS files within the Part, it cannot be defined which of them is picked, so it would be best to ensure the Part contains only one CSS file.

If the resolved value is a String, it is interpreted as a path pointing to a CSS file within the Online template archive, e.g. "Styles/style.css".

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.