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

    I have a question, about Model.import of sketchup API

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 4 Posters 645 Views 4 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.
    • W Offline
      winzard
      last edited by

      I want to import a component or model by ruby,but I can't do that .so please give me a help,how I can do that?Thanks!

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Do you get any errors?
        What format are you trying to import? .skp?

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • M Offline
          Malkomitch
          last edited by

          
          f = UI.openpanel("select a file", nil, ".skp")
          Sketchup.active_model.import f
          
          

          pretty simple to understand in the doc
          http://code.google.com/intl/fr/apis/sketchup/docs/ourdoc/model.html#import

          1 Reply Last reply Reply Quote 0
          • W Offline
            winzard
            last edited by

            It's wonderful ,I will do that at once.Thanks for the help.

            1 Reply Last reply Reply Quote 0
            • W Offline
              winzard
              last edited by

              @thomthom said:

              Do you get any errors?
              What format are you trying to import? .skp?

              I can not get information from the screen.The format is .skp.Can it be imported?

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                What information?

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • W Offline
                  winzard
                  last edited by

                  @thomthom said:

                  What information?

                  I'm sorry,I do some tests on the import method previously.I want to have a replacement on components
                  in model by the ruby script at the same time.Can it be to achieve?thanks!

                  1 Reply Last reply Reply Quote 0
                  • Y Offline
                    YoungOSG
                    last edited by

                    @thomthom said:

                    Do you get any errors?
                    What format are you trying to import? .skp?

                    I import a dae file to sketchup by api. but i need to click to position. is there a way to position it automatically?

                    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