Hi,
I realize that I forgot to mention that I am defining mymodel as:
mymodel = Sketchup.active_model
TIG: thanks! I hear ya on the \ vs. / thing for windows. But / is what the SVG script shows on the screen when one chooses a path, even on this windows environment. I tried both:
File.join(File.dirname(mymodel.path), mymodel.title+".svg").tr("\"","/")
and:
(File.dirname(mymodel.path)+"/"+mymodel.title+".svg").tr("\"","/")
which both resulted in:
C:usersuserdesktop/Untitled.svg
Aerilius: that did the trick, thank you very much!
Your code results in:
C:/users/user/desktop/Untitled.svg
(and it works with the SVG plugin!)
Final code that works for those googling down the road:
mymodel = Sketchup.active_model
mymodelpath = File.expand_path(mymodel.path)
@svgFilename = Sketchup.active_model.get_attribute "foi_svg_export", "svgFilename", File.join(File.dirname(mymodelpath), mymodel.title+".svg")