• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Request] Internet in Sketchup

Scheduled Pinned Locked Moved Plugins
10 Posts 6 Posters 1.2k 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.
  • K Offline
    KXI System
    last edited by KXI System 17 Dec 2009, 01:49

    I was just wondering a small idea...

    When you click on the 3-D Warehouse button it opens a mini web browser in sketchup, so I was wondering if anyone made a Ruby to turn the mini web browser to a browser window.

    What I'm saying is that if a person made a ruby on the 3-D warehouse window that enables the window to have a navagation bar and/or search bar at the top to access internet. All through Sketchup. πŸ˜„

    Now your wondering "Why would anyone make a ruby to use the internet when you have a browser?!?!"
    Its just an idea I had, people can check off the internet AND model in Sketchup in the same program. If you think about it you'll see the brilliance! You can model and render a request on SketchUcation without leaving your workspace!

    So think about it, and see its uses. Cause' this ain't a easy request to do!

    IF making the window into a browser window is too hard, how about creating a dialog box a browser window?

    Getting the perfect sig is hard...

    Google it!

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 17 Dec 2009, 07:27

      the problem is that from the API, you only get access to the webdialog frame - you don't get access to the window. we can't place buttons or elements outside the webdialog area.
      you could place an IFRAME and display the content there - but you will quickly run into sites that would take full control over the whole webcontrol area and then makes all your buttons disappear.
      then you have the issue of all the sites that open up links in new windows - that would make a new browser window pop up from the webdialog. hard to contain the websites to the IFRAME you got.
      Then you also got the lack of tabs.

      it's a whole lot of work, with too many drawbacks, for something that's rather novel thing to do as it is now. click the taskbar to switch between SU and the browser - or use Alt+Tab. Or - if you got dual monitors - you can have SU on one side and the browser on the other. πŸ˜‰

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

      1 Reply Last reply Reply Quote 0
      • D Offline
        Didier Bur
        last edited by 17 Dec 2009, 18:41

        Hi,
        I've just reworked on my oooold url linker script. I'll publish it soon. Maybe it can help you: attach URL links or links to files to any sketchup object and launch your web browser when you click on it.
        Regards,


        sulink1.jpg


        sulink2.jpg

        DB

        1 Reply Last reply Reply Quote 0
        • M Offline
          MartinRinehart
          last edited by 19 Dec 2009, 18:06

          @kxi system said:

          I was just wondering a small idea...

          There is nothing small about that idea.

          Please, Google, let us Bucket a wall with Google Chrome, and give us the <sketchup> tag in Chrome's HTML. Please!

          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

          1 Reply Last reply Reply Quote 0
          • K Offline
            KXI System
            last edited by 19 Dec 2009, 22:20

            I know, at first the idea was small until i let it free!

            Well now it seems like a near impossible task, even more impossible to make it free...

            Getting the perfect sig is hard...

            Google it!

            1 Reply Last reply Reply Quote 0
            • C Offline
              Chris Fullmer
              last edited by 19 Dec 2009, 22:24

              Wouldn't it be possible to use ruby to just launch regular ol IE or Firefox. No connection into SU. Just launch it from a SU menu item? Seems like thats about all he asking for.

              Chris

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • T Offline
                TIG Moderator
                last edited by 19 Dec 2009, 22:28

                @chris fullmer said:

                Wouldn't it be possible to use ruby to just launch regular ol IE or Firefox. No connection into SU. Just launch it from a SU menu item? Seems like thats about all he asking for.

                Chris

                If you use UI.openURL(filepath) it opens the target file in whatever it's default application is [based on its file-type] - so I'Exp' or F'Fox or even NotePad.exe etc are all possible...

                TIG

                1 Reply Last reply Reply Quote 0
                • K Offline
                  KXI System
                  last edited by 21 Dec 2009, 01:55

                  @tig said:

                  @chris fullmer said:

                  Wouldn't it be possible to use ruby to just launch regular ol IE or Firefox. No connection into SU. Just launch it from a SU menu item? Seems like thats about all he asking for.

                  Chris

                  If you use UI.openURL(filepath) it opens the target file in whatever it's default application is [based on its file-type] - so I'Exp' or F'Fox or even NotePad.exe etc are all possible...

                  Great! only if I knew what you said though...
                  I ant a scripter, thats why I had this form.

                  Getting the perfect sig is hard...

                  Google it!

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    KXI System
                    last edited by 21 Dec 2009, 15:08

                    😲 thanks Tig...

                    Next time can you speak English?
                    Joking, but this idea will make a good challenge.

                    Getting the perfect sig is hard...

                    Google it!

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 21 Dec 2009, 15:13

                      There is an API UI [User Interface] method that opens a URL - i.e. a 'path' to a web site or a file - be it on the www/internet or just somewhere your PC or local network.
                      The http tells it it's a www link whilst the drive-path etc and suffix of the file name tells your PC where to find the file and which application should open it.
                      So, UI.openURL("http://forums.sketchucation.com/") opens this forum's home page in Internet-Explorer or Firefox or whatever your default web-browser might be...
                      For a file it's in the form UI.openURL("C:\\Users\\TIG\\Desktop\\myskp.skp") which would open the given skp file - for this your PC will know to use SketchUp.
                      For a text file UI.openURL("C:\\Users\\TIG\\Desktop\\mytextfile.txt") it'd use NotePad.exe etc etc...
                      However all these do is open another application outside of SketchUp. Even if you wrote a custom web-browser in say VB it would be external. To have it 'internal' to SketchUp you need something like a web-dialog BUT has has been said this is not easy to achieve with js etc alone...
                      So, whilst it's quite possible to get a browser to open a 'link' that is given entirely with in SketchUp [or for that matter any other file-type opening with it's appropriate application] it will become a process that's separate from SketchUp itself - so you might as well open a separate browser session manually - unless you need SketchUp to link to something specific - e.g. by clicking on a object in the model that opens some external data source...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        1/10
                        Last post
                      Buy SketchPlus
                      Buy SUbD
                      Buy WrapR
                      Buy eBook
                      Buy Modelur
                      Buy Vertex Tools
                      Buy SketchCuisine
                      Buy FormFonts

                      Advertisement