sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    FredoBend | Powerful new bending tool for SketchUp Download

    Load file

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 906 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rubine
      last edited by

      path=Sketchup.find_support_file "rectangle#1.skp"
      does not work, even if I add the full path of the skp file as second parameter

      Does someone have an idea why this does not work??
      If I put the skp file in the plugin folder it does not work either.

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        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.

        Hi

        1 Reply Last reply Reply Quote 0
        • TIGT Online
          TIG Moderator
          last edited by

          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)

          TIG

          1 Reply Last reply Reply Quote 0
          • R Offline
            rubine
            last edited by

            is there also a possibility to store components automatically in a folder (as an .skp file)?

            1 Reply Last reply Reply Quote 0

            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 Login
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement