Add attributes to model in C API?

It feels like I’m missing something.
Is there a way to add attributes to a SUModelRef in the C API?

There is no SUModelAddAttributeDictionary nor SUModelToEntity method. Is there any other way?

I’m after something like the Ruby API’s model.set_attribute().

https://extensions.sketchup.com/developer_center/sketchup_c_api/sketchup/model_8h.html

It’s “hidden” the description of SUModelGetAttributeDictionary

Retrieves the attribute dictionary of a model object that has the given name. If a dictionary with the given name does not exist, one is added to the model object.

2 Likes

Ooooh… Thanks!