sketchucation logo sketchucation
    • Login
    1. Home
    2. rodney1717
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 5
    • Groups 1

    rodney1717

    @rodney1717

    10
    Reputation
    1
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    rodney1717 Unfollow Follow
    registered-users

    Latest posts made by rodney1717

    • RE: Help web dialog or buttons ruby

      Thank you guys. I have experimented with the code. And so far I have two plugins which I have attached. What I want to do is perform simple structural calculations of simple beams, columns and frames and generate an html report.

      The first r.b file the beamdesign.rb, it draws a section and gives you options on certain design parameters of a beam. It creates a menu under the plugins tab. This sort of works,

      The second r.b file drawbox.rb I want the user to draw a line/path then the program will execute addface and followme methods to draw a beam on the path. However when I run the drawbox,rb I dont get the beam with the defined length of some reason. Can anyone please help with the Inputpoint.view method in conjuction with a follow.me method. This plugin is not working.

      Also if there are structural engineers out there who want to team up and develop a series of plugins to draw, calculate and document designs, please feel free to help. I am a nub but I am willing to devote a good chunk of my time to learn ruby. Thanks for the help so far, It did make a big difference.


      beam design.rb


      drawbox2.rb

      posted in Extensions & Applications Discussions
      R
      rodney1717
    • RE: Help web dialog or buttons ruby

      @driven said:

            prompts = ["Width", "Height"]
      >      defaults = ['x,y,z', 'a,b,c']
      >      input = UI.inputbox(prompts, defaults, "Enter Width and Height?")
      > 
      

      try it, and fill in your profile so we at least know what OS your on...

      john

      Thanks John. I will try it out. The whole day i never had chance to test anything. My os is a windows 7 ultimate.

      posted in Extensions & Applications Discussions
      R
      rodney1717
    • RE: Help web dialog or buttons ruby

      @jiminy-billy-bob said:

      Default SU dialog boxes :
      http://www.sketchup.com/intl/en/developer/docs/ourdoc/ui#inputbox
      http://www.sketchup.com/intl/en/developer/docs/ourdoc/ui#messagebox

      Another alternative that simplifies the usage of webdialogs (you only need to wirte ruby code) :
      http://www.thomthom.net/thoughts/2013/07/skui-a-gui-framework-for-sketchup/

      Thanks very much for the links. It would be great if get my head around using text boxes and find ways to have several input boxes on one menu or panel. I have had a look at Skui before and I couldnt pass my variables into the objects in SKui, i.e buttons.

      If possible could you or anyone show an example with textboxes that to calculate dimensions of a box.

      i.e.

      z x y = w
      where w is the width of the box

      q x m = l
      where q is the lenght of the box
      r x t = h
      where h is the height of the box.

      Thanks in advance.

      posted in Extensions & Applications Discussions
      R
      rodney1717
    • RE: Help web dialog or buttons ruby

      Thanks for the links I have never used input box. I tried using Skui on sketch up ver.13 last year and I struggled passing variables into the objects inside Skui ie, buttons. I used to be able to see the code of most of the plugins in previous versions of sketch up, but the 2015 version I can't even see where most of the plugins are located. A few are in the IPCplugins folder.

      Would it be possible to have an example using input box UI to draw a cube, lets say I want to multiply two variables to get a dimension

      For example
      z x y = w
      where w = width

      b x e = h
      Where h= height

      e x f = d
      where d=depth

      posted in Extensions & Applications Discussions
      R
      rodney1717
    • Help web dialog or buttons ruby

      Hi Guys

      I am trying to develop a simple plugin that does simple calculations and then use the output generated numbers to draw structural members. I am decent with excel and VBA. Ruby I sort of get it when I read it, but I cant create buttons or a GUI to insert input. I do really need help starting. I could buy someone who helps me out a drink. Please help.

      posted in Extensions & Applications Discussions extensions
      R
      rodney1717