Load file
-
path=Sketchup.find_support_file "rectangle#1.skp"
does not work, even if I add the full path of the skp file as second parameterDoes someone have an idea why this does not work??
If I put the skp file in the plugin folder it does not work either. -
rubine,
It looks like the optional folder argument is not optional. It finds the file if it is in the "Sketchup 6" folder. So, I guess it doesn't actually find the file for you. Sounds like a bug to me.
path = Sketchup.find_support_file "rectangle#1.skp", "Plugins"
or
path = Sketchup.find_support_file "Plugins/rectangle#1.skp"
Although I don't know if the second example is portable.
And the documentation is incorrect where it says it returns false - it return nil.
-
path = Sketchup.find_support_file "/Plugins/rectangle#1.skp"
works (with /), as does...
path = Sketchup.find_support_file "rectangle#1.skp"
IF it's in the base SUp folder
(PC only)
-
is there also a possibility to store components automatically in a folder (as an .skp file)?
Advertisement