Listen, you are reading from the API documentation,
not a general document about SketchUp in general.
So your statement does not apply.
You cannot do that. Double-quoted strings in Ruby use interpolation and escape characters.
"" is the escape character, so:
path = "c:\my_export.pdf"
#=> c:my_export.pdf
There are special escape sequences, \n
is a newline, \r
is a carriage return, \t
is a tab.
You must escape a slash in double-quoted strings:
path = "c:\\my_export.pdf"
#=> c:\my_export.pdf
Using the SketchUp API requires first learning Ruby.
I created a nice pinned topic of learning resources here in this category: