I am using python script and having problem creating a text object (using Rhino.Command(-TextObject….) as to my knowledge there is not python command which can create a text object) where the text contains quotes and spaces.
To give some context:
I have a rectangular bar which I would like to carve text out of. I do this by creating a text object and perform a boolean difference between the two objects. In many cases this works fine however with text which contains whitespaces and double quotes e.g. 39o29’ 45.8”N 2o28’21.5”E the command breaks after the first double quote
I have tried doing this directly in Rhino command bar:
-TextObject "39o29’ 45.8”N 2o28’21.5”E”
I tried escaping the quotes:
-TextObject “39o29’ 45.8””N 2o28"’21.5”E”
Hi Jess.
Actually I simply tried the script in EditPythonScript, and it complained that the coding was missing.
I remembered that Vittorio talked about inserting the coding statement to make a certain script run …
I think I had read something about the theory behind the utf coding … but I’ve already forgotten that …
Heh … growing old …
I think I’ll have to read about that again.
Thanks