sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Load file

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 790 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 Offline
          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
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement