# Sketchup API--Warehouse layouts

**URL:** <https://forums.sketchup.com/t/sketchup-api-warehouse-layouts/252743>\
**Category:** Ruby API\
**Created:** [December 21, 2023, 4:50pm UTC](https://forums.sketchup.com/t/sketchup-api-warehouse-layouts/252743 "2023-12-21T16:50:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [December 21, 2023, 5:09pm UTC](https://forums.sketchup.com/t/sketchup-api-warehouse-layouts/252743/2 "2023-12-21T17:09:55Z")

</div>

Please post correctly with proper 2 space indent:

- [[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/)

* * *

There are several topics here discussing ChatGPT’s coding ability. You should use the forum search to find them and read them.

- [Search results for ‘ChatGPT #developers:ruby-api’ - SketchUp Community](https://forums.sketchup.com/search?q=ChatGPT%20%23developers%3Aruby-api)

For example, the code you posted defines variables and methods at the top level. This is a “no-no”. All code needs to be inside a namespace module and probably within a submodule.

* * *

Lastly, when posting a question such as this please say what you were expecting and what and why the result is not as you wished.

---

_[View the full topic](https://forums.sketchup.com/t/sketchup-api-warehouse-layouts/252743)._
