Using EditBox to populate the TextObject command

Has anyone succeeded in using the EditBox method to populate multiple lines of text into the TextObject command? I’ve only been able to get it to work by adding the new line character (\n) to the end of each line. But that defeats the purpose as I could just use a string box if I have to do that.

Thanks,

Dan

Hi @DanBayn,

rs.EditBox calls Rhino.UI.Dialogs.ShowEditBox which has a property multiline eg:

import Rhino

text = "I love Rhino " * 10
Rhino.UI.Dialogs.ShowEditBox("Title", "Message", text, multiline=True)

_
c.

Thanks Clement, I’ll see what I can do with that.