Hey @andy_ng ,
To add attributes to a component, you need to use the Component Attributes dialog box, which you can access from the Dynamic Components toolbar or the Window menu. Here are the basic steps to add attributes:
- Select the component
- Select Window > Component Attributes
- In the Component Attributes dialog box, click the + button next to the component’s name. A list of attributes appears for the component.
- To add a predefined attribute, select it from the list and click the + button at the bottom of the dialog box. A new row appears with the attribute name and value.
- To add a custom attribute, click the + button at the bottom of the dialog box and type a name for the attribute. Then, enter a value for the attribute in the Value column. You can use numbers, text, formulas, or functions as values.
- To make an attribute end-user configurable, click the Details button to the right of the attribute and choose a display rule from the drop-down list. You can either allow users to edit the attribute as a textbox or select from a list of options that you define.
For more details and examples, you can check out these resources:
https://help.sketchup.com/en/sketchup/making-dynamic-component
https://help.sketchup.com/en/sketchup/making-attribute-values-end-user-configurable
I hope this helps!