# Convert an Object to String in Python

**URL:** <https://forum.dynamobim.com/t/convert-an-object-to-string-in-python/98656>\
**Category:** Revit\
**Tags:** python, dynamo\
**Created:** [March 1, 2024, 1:56pm UTC](https://forum.dynamobim.com/t/convert-an-object-to-string-in-python/98656 "2024-03-01T13:56:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 1, 2024, 1:56pm UTC](https://forum.dynamobim.com/t/convert-an-object-to-string-in-python/98656/1 "2024-03-01T13:56:08Z")

</div>

Good morning.  
I’m trying to convert an object to a string but within python, something like the STRING FROM OBJECT node but I can’t find the way, could someone please help me.  
Thank you so much.

 ![string to object](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f85245e49a733689873bb42d556e7f346dfe4e60.png)

---

<div class="post-metadata">

**Author:** ![emrullah.yildiz](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/emrullah.yildiz/32/177572_2.png) [@emrullah.yildiz](https://forum.dynamobim.com/u/emrullah.yildiz)\
**Post date:** [March 1, 2024, 2:01pm UTC](https://forum.dynamobim.com/t/convert-an-object-to-string-in-python/98656/2 "2024-03-01T14:01:56Z")

</div>

You can use ToString() method to convert an object to string.

I hope this is helpful!

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/0/b056b46b7eafd7114af4b915b9f070b9ff651ac9.png)

---

<div class="post-metadata">

**Author:** ![AM3D.BIM.STUDIO](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/am3d.bim.studio/32/127441_2.png) [@AM3D.BIM.STUDIO](https://forum.dynamobim.com/u/AM3D.BIM.STUDIO)\
**Post date:** [March 1, 2024, 6:19pm UTC](https://forum.dynamobim.com/t/convert-an-object-to-string-in-python/98656/3 "2024-03-01T18:19:12Z")

</div>

wow… Thank you… one struggling all week and this is what the answer was like… plop  
thanks again 🤨 😅
