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

    Accessing the PDFs with Plugins

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 5 Posters 1.1k Views 5 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.
    • Dave RD Offline
      Dave R
      last edited by

      I just had a thought. With many of the excellent Rubies you gurus are writing, you're also including PDF files with instructions. I was thinking it would be nice if they could be accessed directly from a menu entry in the Help menu. I'm picturing a menu entry with a flyout menu listing the PDF files that are included in the Plugins folder. At least that's where I end up extracting those files to when I unzip.

      Is this possible? I have no clue but it seems like it ought to be a short script. What say the experts?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

      1 Reply Last reply Reply Quote 0
      • AdamBA Offline
        AdamB
        last edited by

        Nice idea. And trivial to do.

        dialog = UI::WebDialog.new
        dialog.set_url "filepath_to_document.pdf"
        dialog.show

        Voila!

        FWIW I think the WebDialog is a really underused facility of SU - it opens up all the functionality of your browser to SU.

        Developer of LightUp Click for website

        1 Reply Last reply Reply Quote 0
        • Didier BurD Offline
          Didier Bur
          last edited by

          I'll try to package that in a more user-friendly rb
          Thank for the tip Adam !

          DB

          1 Reply Last reply Reply Quote 0
          • Didier BurD Offline
            Didier Bur
            last edited by

            Done,
            Go here to download:
            http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=5421

            DB

            1 Reply Last reply Reply Quote 0
            • fredo6F Offline
              fredo6
              last edited by

              Didier,

              Very nice idea.
              It seems to have problems with the subfolders of the Plugins directory however. For instance with the PDF of Bezierspline which are in subfolder BZ_DIR. I think it is because the file name contains a '.' (on top of the extension).

              Also, do you understand why the combo boxes in Sketchup Dialogs are never properly sized? I came across this problem too.

              1 Reply Last reply Reply Quote 0
              • AdamBA Offline
                AdamB
                last edited by

                I you want nice (well nicer) dialog boxes you could do a html/js one using WebDialog 😄

                AdamB

                Developer of LightUp Click for website

                1 Reply Last reply Reply Quote 0
                • fredo6F Offline
                  fredo6
                  last edited by

                  Adam,

                  You are right, we can do much cooler things, but there is still the problem of compatibility with v5.
                  But I still don't understand the logic of the basic Sketchup Windows-based dialogs for dimensioning combo boxes!

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    azuby
                    last edited by

                    OK guys, have a second look to Didiers download thread. I also tried to program an extension, but my solution creates a nested menu.

                    azuby

                    *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                    Bad English? PM me, correct me. :smile:**

                    1 Reply Last reply Reply Quote 0
                    • Didier BurD Offline
                      Didier Bur
                      last edited by

                      Yes, the size problem is strange. I know that when you put more spaces in the prompt value it works

                      prompts=["help file............"]
                      

                      but why this ? No logical explanation...
                      👊

                      DB

                      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