Hi there,
SketchUp 2018 comes with a complete LayOut API to control .layout file of document. But is there a “refresh” feature in LayOut to update what effected by SketchUp Ruby? I did some test and have to close and re-open the layout file to see the effect.
Is there some solutions?
No, probably next year!
2 Likes
You are using \n
in a single quoted string. You need to use a double quoted string for such special escape sequence.
puts 'Hello\nWorld'
Hello\nWorld
puts "Hello\nWorld"
Hello
World
The only escape sequence in single quoted strings are \'
and \\
.
https://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Literals#Strings
2 Likes
Thank you very much
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.