# Getting prebuilt materials on a object

**URL:** <https://forums.sketchup.com/t/getting-prebuilt-materials-on-a-object/171413>\
**Category:** Ruby API\
**Tags:** sketchup\
**Created:** [July 29, 2021, 5:16pm UTC](https://forums.sketchup.com/t/getting-prebuilt-materials-on-a-object/171413 "2021-07-29T17:16:01Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [July 29, 2021, 8:04pm UTC](https://forums.sketchup.com/t/getting-prebuilt-materials-on-a-object/171413/4 "2021-07-29T20:04:12Z")

</div>

Please code Ruby code and error text correctly in the forum:

- [[How to] Post correctly formatted and colorized code on the forum?](https://forums.sketchup.com/t/how-to-post-correctly-formatted-and-colorized-code-on-the-forum/46189)

Also your code may be more robust if you add the methods I show here …  
[How to add all SU materials in our list? - #23 by DanRathbun](https://forums.sketchup.com/t/how-to-add-all-su-materials-in-our-list/158646/23)

---

_[View the full topic](https://forums.sketchup.com/t/getting-prebuilt-materials-on-a-object/171413)._
