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)?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement