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

    Returning other than boolean by send_action()

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 213 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.
    • V Offline
      venommax
      last edited by

      Does Sketchup.send_action always return a boolean value. or can it also return any other UI.messagebox object to automate the response to the window generated by the send_action() method. like Sketchup.send_action(21237) opens a dialog box to export the file to 2D graphic of the file menu options ?
      hoping to get a reply like earlier.

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

        No - it's not meant for such purpose. But if you want to use a file dialog you use UI.savepanel http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/ui.html#savepanel

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

        1 Reply Last reply Reply Quote 0
        • V Offline
          venommax
          last edited by

          I want to export the skp model to a 2D Image as the thumbnail generated by the save_thumbnail method is very small. Using the UI.savepanel is not saving the file as expected.

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

            The UI.savepanel only let the user spesify where to save the file. You also have to implement the save procedure yourself afterwards.
            View.write_image
            http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/view.html#write_image

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

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

              Have you tried SceneExporter, either to do what you want, or as an example of how it could be done? The Pro version will hopefully have the Save dialog working soon.

              RickW
              [www.smustard.com](http://www.smustard.com)

              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