# Getting the source code

**URL:** <https://discourse.mcneel.com/t/getting-the-source-code/77945>\
**Category:** Scripting\
**Tags:** python\
**Created:** [January 28, 2019, 1:10pm UTC](https://discourse.mcneel.com/t/getting-the-source-code/77945 "2019-01-28T13:10:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumuk](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sumuk/32/129863_2.png) [@sumuk](https://discourse.mcneel.com/u/sumuk)\
**Post date:** [January 28, 2019, 1:10pm UTC](https://discourse.mcneel.com/t/getting-the-source-code/77945/1 "2019-01-28T13:10:13Z")

</div>

Hi,  
I was searching for the source code of `rs.BoundingBox` function. I wanted to modify the code for specific use, can someone help me getting it

Thanks in advance

---

<div class="post-metadata">

**Author:** ![rgr](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rgr/32/250899_2.png) [@rgr](https://discourse.mcneel.com/u/rgr)\
**Post date:** [January 28, 2019, 1:21pm UTC](https://discourse.mcneel.com/t/getting-the-source-code/77945/2 "2019-01-28T13:21:35Z")

</div>

Debug the function and “step into”[f11], there you can take a look. Alternativly, geometry.py in \AppData\Roaming\Mcneel\Rhinoceros\6.0\Plug-ins\IronPython\settings\lib\rhinoscript has the function.

---

<div class="post-metadata">

**Author:** ![Dancergraham](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dancergraham/32/497397_2.png) [@Dancergraham](https://discourse.mcneel.com/u/Dancergraham)\
**Post date:** [January 28, 2019, 1:30pm UTC](https://discourse.mcneel.com/t/getting-the-source-code/77945/3 "2019-01-28T13:30:07Z")

</div>

> [@sumuk](#):
>
> `BoundingBox`

Or

```python
import inspect
source = inspect.getsource(rs.BoundingBox)
print(source)
```

---

<div class="post-metadata">

**Author:** ![sumuk](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sumuk/32/129863_2.png) [@sumuk](https://discourse.mcneel.com/u/sumuk)\
**Post date:** [January 28, 2019, 1:51pm UTC](https://discourse.mcneel.com/t/getting-the-source-code/77945/4 "2019-01-28T13:51:49Z")

</div>

Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![sumuk](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/sumuk/32/129863_2.png) [@sumuk](https://discourse.mcneel.com/u/sumuk)\
**Post date:** [January 28, 2019, 1:53pm UTC](https://discourse.mcneel.com/t/getting-the-source-code/77945/5 "2019-01-28T13:53:16Z")

</div>

Thanks a lot 🙂
