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

Accessing the PDFs with Plugins

Scheduled Pinned Locked Moved Developers' Forum
9 Posts 5 Posters 1.1k 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.
  • D Offline
    Dave R
    last edited by 25 Jan 2008, 11:39

    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
    • A Offline
      AdamB
      last edited by 25 Jan 2008, 14:23

      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
      • D Offline
        Didier Bur
        last edited by 25 Jan 2008, 15:36

        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
        • D Offline
          Didier Bur
          last edited by 25 Jan 2008, 21:04

          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
          • F Offline
            fredo6
            last edited by 25 Jan 2008, 23:07

            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
            • A Offline
              AdamB
              last edited by 25 Jan 2008, 23:11

              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
              • F Offline
                fredo6
                last edited by 25 Jan 2008, 23:20

                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 26 Jan 2008, 01:04

                  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
                  • D Offline
                    Didier Bur
                    last edited by 26 Jan 2008, 10:44

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

                    Advertisement