sketchucation logo sketchucation
    • Login
    1. Home
    2. MartinRinehart
    3. Posts
    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!
    🚨 Skimp | 25% Off until March 30 Buy Now
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 131
    • Posts 766
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Building a workstation (super computer)

      Which of those apps takes all that horsepower? SU, if you resist the temptation to model a forest leaf-by-leaf, performs superbly on an inexpensive Windows desktop with a little extra RAM.

      Unless one of those other apps is a real burner, I'd save on the computer and spend on a really big monitor. 1920x1200 on 24" LCD is a real joy.

      posted in Hardware
      M
      MartinRinehart
    • RE: MAC vs WIN

      I much prefer Linux to either. Since Google Chrome (the vaporware OS, not the browser) is a Linux, there's hope for a Linux SketchUp. Hope!

      posted in SketchUp Discussions
      M
      MartinRinehart
    • RE: OK, Collada is coming but,

      @gaieus said:

      If you have a kmz file...

      Which of these is Collada?

      posted in SketchUp Discussions
      M
      MartinRinehart
    • RE: Req: woodwork.rb

      Do you have a link to any explanatory material? What does this do? Who wrote it? The one you posted is to the code. When I tried it, drill and dado appeared inoperative, probably because I didn't know how to use them.

      posted in Developers' Forum
      M
      MartinRinehart
    • RE: WebDialog.new Documented

      @jim said:

      Report Ruby bugs and Ruby documentation issues in this thread.

      Done. Thanks.

      posted in Developers' Forum
      M
      MartinRinehart
    • RE: New API doc - typos and questions

      The following was agreed, in http://forums.sketchucation.com/viewtopic.php?f=180&t=21502 to correctly document WebDialog.new.

      Alternate to the API docs, with help. This is for PC:

      title - string - This text will appear in the title bar of your WebDialog

      scrollable - boolean - This is a NOP. You get scrollbars, regardless. Workaround: <body scroll=no>.

      key - string - If this is nil or an empty string, your dialog's size/location is stored in "HKEY_CURRENT_USER/Software/Google/SketchUp7/WebDialog_". You should definitely include here the name of your Ruby, which will be concatenated:
      "HKEY_CURRENT_USER/Software/Google/SketchUp7/WebDialog_MyRuby"

      width, height, left, top - integers - size/location, in pixels, of the first appearance of your WebDialog. All subsequent appearances will be taken from the registry entry.

      resizeable - boolean - if false, your user cannot resize the dialog. Defaults to true, if omitted.

      posted in Developers' Forum
      M
      MartinRinehart
    • Ruby Console as Conversion Calculator

      If you need to convert international units (mm, cm, ...) to American units (in, ft, ...) the Ruby Console is your friend, no Ruby required.

      Window/Ruby Console. You type in the white bar. It repeats and answers you in the brown area. Conversions explained here:

      http://www.MartinRinehart.com/models/tutorial/tutorial_02.html#rc_conversions

      posted in SketchUp Discussions sketchup
      M
      MartinRinehart
    • RE: WebDialog.new Documented

      Now, how do we bridge the gap between this post and the official docs?

      posted in Developers' Forum
      M
      MartinRinehart
    • RE: Multicopied a component-can't alter individual copies

      In Chapter 8, The Apartment's Furniture, we make a bed. (Actually, a reproduction of a 1905 Craftsman magazine bed plan.) It's here:

      http://www.MartinRinehart.com/models/tutorial/tutorial_08.html#bed

      posted in Newbie Forum
      M
      MartinRinehart
    • RE: [Plugin] Select by Z

      @earthmover said:

      I had a few times this week that I needed to select all the faces at a given height ...

      Have you visited the Ruby Console? You could get this done there without waiting on a Ruby.

      posted in Plugins
      M
      MartinRinehart
    • New Plugin Packaging

      I am getting ready to release my first serious plugin. Which plugins should I look at for best practices in the finished package (use of subdirs for files, documentation, ...)?

      posted in Developers' Forum
      M
      MartinRinehart
    • RE: Help with how to cut multiple openings

      Use a multiple select (Select tool, holding shift down, click each circle). Then tap the Delete key.

      posted in Newbie Forum
      M
      MartinRinehart
    • RE: Dash dot line

      Kludgy dash dot line.

      Draw a line from start to finish plus a little where you want your dash/dot line. Zoom way in on the beginning of that line so you're looking at the length of a single dash/dot segment. Delete a wee bit before and after the dot. Group the dash, space, dot segment. Move/Copy "NNx" where NN is enough times to get you from begin to end. (Use your long line for inferencing.)

      Select your long line by clicking the "plus a little". Delete.

      This will not get you first prize in a low poly contest.

      posted in SketchUp Discussions
      M
      MartinRinehart
    • RE: Assigning Event Handlers in JS-Written UI, Painlessly

      @thomthom said:

      Will the browsers accept that ID you give the element?

      Hmmm. Yes for IE 8.

      posted in Developers' Forum
      M
      MartinRinehart
    • RE: WebDialog.new Documented

      @jim said:

      resizable, I think?

      Right. Thanks.

      posted in Developers' Forum
      M
      MartinRinehart
    • WebDialog.new Documented

      Alternate to the API docs, with help. This is for PC:

      title - string - This text will appear in the title bar of your WebDialog

      scrollable - boolean - This is a NOP. You get scrollbars, regardless. Workaround: <body scroll=no>.

      key - string - If this is nil or an empty string, your dialog's size/location is stored in "HKEY_CURRENT_USER/Software/Google/SketchUp7/WebDialog_". You should definitely include here the name of your Ruby, which will be concatenated:
      "HKEY_CURRENT_USER/Software/Google/SketchUp7/WebDialog_MyRuby"

      width, height, left, top - integers - size/location, in pixels, of the first appearance of your WebDialog. All subsequent appearances will be taken from the registry entry.

      resizeable - boolean - if false, your user cannot resize the dialog. Defaults to true, if omitted.

      Edited to include help from Thomas Thomassen and Jim Foltz. Thanks guys!

      posted in Developers' Forum
      M
      MartinRinehart
    • RE: Assigning Event Handlers in JS-Written UI, Painlessly

      In my example code, I attach an anonymous function to a variable;

      var foo = function() {...}
      

      Later, this function is attached to the "onclick" method:

      btn.onclick = foo
      

      Suppose you have several buttons. You might want to pass a button number as an argument. How?

      Use the button's id. Example:

      var foo = function() {
          var which_one = this.id;
          ...
      }
      

      Suppose you really, truly want a number:

      button.id = number + '_btn';
      
      var foo = function() {
          var which_one = parseInt( this.id );
          ...
      }
      
      posted in Developers' Forum
      M
      MartinRinehart
    • RE: Assigning Event Handlers in JS-Written UI, Painlessly

      @thomthom said:

      "The Bug from Hell"?

      http://21st-century-languages.blogspot.com/2009/08/bug-from-hell.html

      posted in Developers' Forum
      M
      MartinRinehart
    • 1 / 1