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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    A Question on Making a GUI

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 153 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.
    • J Offline
      jrstoup
      last edited by

      I have been working with ruby and SU for a bit now and have created a simple plugin for creating a 1 meter square grid of variable size along each axis. The interface for this is very simple as it just pops a dialog box requesting the desired size of the grid. What I would like to do is make a more complex GUI for handling additional variables as well as managing preexisting grids.

      To do this, will I have to manage everything through he existing UI class or is there another way of doing this? I read somewhere a reference to creating custom html pages but was unsure if that was meant solely for displaying data. Can I create my own custom dialog box? If so, how?

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        You can use HTML, DTHML, Javascript, etc. in custom UI::WebDialog class objects.

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jrstoup
          last edited by

          Thanks for the help, I think that is what I need. For those interested, here is a link to a very simple example of using Ruby and WebDialogs: http://sketchupapi.blogspot.com/2008/02/sharing-data-between-sketchup-ruby-and.html

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

            Here's a topic I've written with practical info about the WebDialog class: http://forums.sketchucation.com/viewtopic.php?f=180&t=23445#p198883

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

            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