# Adding text

**URL:** <https://discourse.mcneel.com/t/adding-text/188983>\
**Category:** Scripting\
**Tags:** windows\
**Created:** [August 2, 2024, 12:21pm UTC](https://discourse.mcneel.com/t/adding-text/188983 "2024-08-02T12:21:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [August 2, 2024, 12:21pm UTC](https://discourse.mcneel.com/t/adding-text/188983/1 "2024-08-02T12:21:48Z")

</div>

Hi,  
When entering a text flied can i get it in 2 rows?

rs.AddText(“Holes Inspec”, plane, height=.107, font=None, font\_style=0, justification=None)

![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/0/3/803da02dcc63c67510cc743a9798b2a0392b6cb7.png)

---

<div class="post-metadata">

**Author:** ![hudongdong](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hudongdong/32/597307_2.png) [@hudongdong](https://discourse.mcneel.com/u/hudongdong)\
**Post date:** [August 2, 2024, 3:14pm UTC](https://discourse.mcneel.com/t/adding-text/188983/2 "2024-08-02T15:14:35Z")

</div>

import rhinoscriptsyntax as rs  
textlocation = rs.GetPoint(“Please specify the text location”)  
inputstr = “Holes\nInspec”  
rs.AddText(inputstr, textlocation, height=107, font=None,  
font\_style=0, justification=None)

---

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [August 2, 2024, 3:22pm UTC](https://discourse.mcneel.com/t/adding-text/188983/3 "2024-08-02T15:22:03Z")

</div>

Below is the full code i was use for that.

plane = rs.WorldXYPlane()

plane = rs.MovePlane(plane, [-10.082, -4.119, 0])

rs.AddText(“Holes Inspec”, plane, height=.107, font=None, font\_style=0, justification=None)

---

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [August 2, 2024, 3:23pm UTC](https://discourse.mcneel.com/t/adding-text/188983/4 "2024-08-02T15:23:47Z")

</div>

it still worked thanks

---

<div class="post-metadata">

**Author:** ![hudongdong](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hudongdong/32/597307_2.png) [@hudongdong](https://discourse.mcneel.com/u/hudongdong)\
**Post date:** [August 2, 2024, 3:27pm UTC](https://discourse.mcneel.com/t/adding-text/188983/5 "2024-08-02T15:27:52Z")

</div>

Ok.The key point is that “\n”.In python,the escape character is very useful.

---

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [August 2, 2024, 3:30pm UTC](https://discourse.mcneel.com/t/adding-text/188983/6 "2024-08-02T15:30:02Z")

</div>

is there somewhere i can go for tip & tricks for python?

---

<div class="post-metadata">

**Author:** ![hudongdong](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hudongdong/32/597307_2.png) [@hudongdong](https://discourse.mcneel.com/u/hudongdong)\
**Post date:** [August 2, 2024, 3:40pm UTC](https://discourse.mcneel.com/t/adding-text/188983/7 "2024-08-02T15:40:08Z")

</div>

I have a book that about how to learn python,its author is Eric Matthes.Maybe,it also will help you.

---

<div class="post-metadata">

**Author:** ![Harold1](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/harold1/32/649283_2.png) [@Harold1](https://discourse.mcneel.com/u/Harold1)\
**Post date:** [August 2, 2024, 3:40pm UTC](https://discourse.mcneel.com/t/adding-text/188983/8 "2024-08-02T15:40:38Z")

</div>

Thanks i will look it up

---

<div class="post-metadata">

**Author:** ![hudongdong](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hudongdong/32/597307_2.png) [@hudongdong](https://discourse.mcneel.com/u/hudongdong)\
**Post date:** [August 2, 2024, 3:42pm UTC](https://discourse.mcneel.com/t/adding-text/188983/9 "2024-08-02T15:42:59Z")

</div>

My pleasure
