How can i alter attributes via the Api?

Hi there,

i am new to SU and looking for a way to alter certain values for a dynamic component via the Ruby console.

I created this dynamic model (a rack), which i can alter over the component options window.

I tried to create codes with ChatGPT to modify those attributs, but can’t progress. The codes don’t work like ChatGPT says and now i am wondering if this is possible at all.

Can someone tell me if this even works?

Search results for ‘dynamic components #developers:ruby-api’ - SketchUp Community

Yes this can work. Posting the code you are working on will help us help you. @dezmo posted some good links, search the forum there are lots of examples, this one might be a good starting point:

Most of the discussion for manipulating dynamic components (even with Ruby) is in this subcategory:

1 Like