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!
    ⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes Download

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

    Scheduled Pinned Locked Moved Developers' Forum
    8 Posts 4 Posters 964 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
      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
        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
          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
            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
              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
                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
                  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
                    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

                    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