Displays a dialog box prompting the user to enter a string value.
rhinoscriptsyntax.StringBox (message=None, default_value=None, title=None)
rhinoscript.userinterface.StringBox (message=None, default_value=None, title=None)
message |
Optional. String. A prompt or message. |
default_value |
Optional. String. A default string value. |
title |
Optional. String. A dialog box title. |
String |
The string value if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
layer = rs.StringBox("New layer name" )
if layer: rs.AddLayer( layer )