• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Load file

Scheduled Pinned Locked Moved Developers' Forum
4 Posts 3 Posters 790 Views
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 26 Feb 2008, 16:07

    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 26 Feb 2008, 23:17

      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
      • T Offline
        TIG Moderator
        last edited by 26 Feb 2008, 23:25

        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 27 Feb 2008, 12:58

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

          Advertisement