# Sample snippet for compas\_gh for python blocks

**URL:** <https://forum.compas-framework.org/t/sample-snippet-for-compas-gh-for-python-blocks/162>\
**Category:** getting started\
**Created:** [April 2, 2019, 3:12pm UTC](https://forum.compas-framework.org/t/sample-snippet-for-compas-gh-for-python-blocks/162 "2019-04-02T15:12:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swindeck](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@swindeck](https://forum.compas-framework.org/u/swindeck)\
**Post date:** [April 2, 2019, 3:12pm UTC](https://forum.compas-framework.org/t/sample-snippet-for-compas-gh-for-python-blocks/162/1 "2019-04-02T15:12:24Z")

</div>

Hi, i would like to implement some cool compas features (also the tna feature) in a Grasshopper pipe.  
Therefore, I thought of using compas in grasshopper, but apparently I fail.

Maybe I didn’t find it, but is there a code snippet example how to implement tna and fea in compas\_gh.

Thank you.

---

<div class="post-metadata">

**Author:** ![tomvanmele](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.compas-framework.org/tomvanmele/32/13_2.png) [@tomvanmele](https://forum.compas-framework.org/u/tomvanmele)\
**Post date:** [April 3, 2019, 2:25pm UTC](https://forum.compas-framework.org/t/sample-snippet-for-compas-gh-for-python-blocks/162/2 "2019-04-03T14:25:19Z")

</div>

can you post what you tried so far and didn’t work?
