sketchucation logo sketchucation
    • Login
    1. Home
    2. tomot
    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!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 116
    • Posts 703
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Error checking routine issue?

      Thanks Dan! for raking me over the coals.... I needed that ...ouch! πŸ˜„

      posted in Developers' Forum
      T
      tomot
    • RE: [Plugin] Generate Ceiling Grid (Updated 27-Mar-2014)

      @sufractal said:

      tomot, since you appear to be savvy creating plugins, I'm guessing you might be able to add in the ceiling tiles as a component? πŸ˜„

      With all due respect, I think sdmitch should do this, after all its his code, and he is much more Ruby skilled than I am.

      posted in Plugins
      T
      tomot
    • RE: Error checking routine issue?

      Thanks thomthom, I also just noticed I should have posted this in Developers' Forum ....my bad!

      posted in Developers' Forum
      T
      tomot
    • Error checking routine issue?

      The following statement works!

      if (@width < 2) 
      UI.messagebox( "A Width of less than 2 is not allowed ")
      return nil
      end
      

      Question: How do I combine less than and more than into one statement using Ruby?
      The Ruby API is not very clear on this. Neither of the 2 statements below work!

      if (@width < 2 > 12)
      UI.messagebox( "A Width of less than 2 or greater than 12 is not allowed ")
      return nil
      end
      
      if ( 2 < @width > 12)
      UI.messagebox( "A Width of less than 2 or greater than 12 is not allowed ")
      return nil
      end
      

      Tia!

      posted in Developers' Forum
      T
      tomot
    • RE: Any long term architects, designers, illustrators, modellers

      The architectural market is driven by the economy. Its cyclical! Architects are the first to get hired when the economy improves, and the are the first to lay of staff when the economy is in a downturn. It has been like that for well over 5 cycles in my lifetime.

      posted in Corner Bar
      T
      tomot
    • RE: [Plugin] Generate Ceiling Grid (Updated 27-Mar-2014)

      Fantastic!......I like it, its now ready for the actual ceiling tiles to drop into place! πŸŽ‰

      posted in Plugins
      T
      tomot
    • RE: New translate request?

      @unknownuser said:

      Assuming the dotted distance is < dd> and you name p3? by p4, just use

      p4 = p2.offset p3.vector_to(p2), dd
      

      The line oriented vector is p3.vector_to(p2), and you just offset p2 by the distance dd.
      Fredo

      Thanks Fredo6: I see my use of English has failed me again 😳 My p3? would actually become the new location of p3 similar to the original code starting with a new name to distinguish it it for other code snippets hence the first line would start something like this

      def translate_extend(p1, p2, p3, d)
      

      followed by the technical stuff, and so I can reuse it again in other places where required in any other script.

      posted in Developers' Forum
      T
      tomot
    • New translate request?

      I believe Didier devised this brilliant bit of code, I have been using it mainly because the new point it creates are not static and works in any 3d orientation.

      # creates a new point from p1 in the direction of p2-p3 with length d
          # params are Point3d, 2 vertices, a length, returns a Point3d
          def translate(p1, p2, p3, d)
              v = p3 - p2
              v.length = d
              trans = Geom;;Transformation.translation(v)
              return p1.transform(trans)
          end
      

      I'm not skilled enough in Ruby to develop a similar new bit of code. So I'm hoping someone here can help me. I would like this new bit of code help me find a point p3? given the "dotted" distance which lies outside and inline with p1 and p2 The attached pic. illustrates what the current code does, and what I'm requesting.

      Tia!


      translate.jpg

      posted in Developers' Forum
      T
      tomot
    • RE: [Plugin] DoorTool - 7 tools, incl. icons

      @irwanwr said:

      Hi there tomot,
      I wonder if there is a way to customise these plugins. Like creating separate parts on the frames?
      It might be very helpful when it deals with wood frames, I think. With wood grains flow along either the vertical or horizontal groups/components.
      Also about the glass. Can I customise the colour of it? Like changing it to use Gray Translucent as default for example?

      I left out adding materials since there is such a large variety available. hence you need to do that manually to your individual choice.
      Yes you can change the glass color! After you have installed a door with glass, that glass color will occur in the SU materials browser click the House Icon in the browser, there you will find all the colors your scene is using. now click edit and change the color to your liking.

      posted in Plugins
      T
      tomot
    • Finding new rotated 3d coordinate points?

      I have a defined face which is made up of four 3d points such as:
      base = entities.add_face(pt1, pt2, pt3, pt4)
      I now rotate that face 45 degrees by:
      t = Geom::Transformation.rotation(pt0,Geom::Vector3d.new(0,0,1), 45.degrees) group.move!(t)
      The original face has now been rotated about a some point pt0. I can determine using math the new pt1new, pt2new, pt3new, pt4new co-ordinates of that rotated face, but is there a more direct and less tedious method I'm not aware that will allow me to determine those new 3d points?

      TIA!

      posted in Developers' Forum
      T
      tomot
    • RE: [Plugin] Generate Ceiling Grid (Updated 27-Mar-2014)

      Nice addition! I made a similar 2d grid used for a reflected ceiling plan using AutoLSP. many years ago. One thing missing is some math.

      1. A Suspended ceiling tile installer will divide any room by the number of tiles req'd, in length and width.
      2. He or she will then divide the left over tiles/2. Meaning leftover/2 tiles will occupy all the perimeter areas of the room, the remainder of the full size tiles fill the rest of the space.

      tiles.jpg

      posted in Plugins
      T
      tomot
    • RE: Was Yukihiro Matsumoto interested in Math?

      Thank you gentlemen: much appreciated, and I promise not to do math past my bedtime again. (Unless I forget!) 😳

      posted in Developers' Forum
      T
      tomot
    • Was Yukihiro Matsumoto interested in Math?

      I ask that question in light of the fact that there are very few basic math methods available in Ruby, related to the attached pic.

      1. no cube root function
      2. no sin function
      3. no cos function
      4. no tan function

      Is anyone with superior ruby skills able to create these 4 functions for use within the SketchUp Ruby API ? I would be grateful!


      3060right.jpg

      posted in Developers' Forum
      T
      tomot
    • RE: [Plugin] Sketchup Ivy

      How Sad! the last time I used this Ivy generator all was well, I even recall posting a set of alternative IVY leaves, I don't know whats happened since. Perhaps the latest release of SU is at fault.

      1. trying to open any of the 3 Ivyleaf files Ivyleaf_1.skp, Ivyleaf_2.skp, Ivyleaf_3.skp causes an instant SU Bugsplat!
      2. opening the Ruby Console, run the Ivy generator and a list of errors scrolls by.
      3. the stem is not created!
      4. the leaves do not get attached!

      Argh!

      posted in Plugins
      T
      tomot
    • RE: How to make a Solid Component from a Solid Group?

      Actually your roof.rb is a good starting point for an editable rafter tails addition, where the editable rafter tail components only extend from the exterior building envelope to the width of the roof overhang. Is spring in the air yet?

      posted in SketchUp Discussions
      T
      tomot
    • RE: How to make a Solid Component from a Solid Group?

      I understand the problem! which now takes on a whole new perspective. The solution for editing the rafter tails, of the entire perimeter of a roof the rafters, would appear to lie in producing a secondary set of coincident rafters that only serve as editable tails and that would not interfered with the original rafters at all.

      posted in SketchUp Discussions
      T
      tomot
    • RE: Ruby transformation issue?

      the rotation works as written, It just happens the 4 new points defining the new face in 5 need to be moved/centered before 6 rotates all of these entities (think about moving a glass plane to the center of a window frame before the entire window frame and glass gets rotated)
      The alternative naturally would be to simply create 4 new points defining a face at the center of the window frame. in which case I would not be asking for help.

      posted in Developers' Forum
      T
      tomot
    • Ruby transformation issue?

      I'm trying to graphically explain the following coding problem I'm having, please see the attachment.
      Under 5, I would like to use a move transformation of that face, only, to a new location, without it affecting the entire transformation which follows in 6. How would I code that move transformation to affect 5 only?


      panel.jpg

      posted in Developers' Forum
      T
      tomot
    • RE: How to make a Solid Component from a Solid Group?

      Well done TIG! the components are indeed editable, except for one small problem, when using a hip roof the rafters are all the same length, the attached file explains further.


      Rafter.skp

      posted in SketchUp Discussions
      T
      tomot
    • RE: How to make a Solid Component from a Solid Group?

      @tig said:

      Why not use the equivalent RafterTool ? http://rhin.crai.archi.fr/rld/plugin_details.php?id=319
      πŸ˜•
      I know that guy! its the other me. LOL! But actually the rafter tool from 10001bit are more practical for most complex roof framing, particularly when it comes to hip and valley framing, unfortunately this human need to preserve ones code gets in the way of going forward ......sigh!

      posted in SketchUp Discussions
      T
      tomot
    • 1
    • 2
    • 10
    • 11
    • 12
    • 13
    • 14
    • 35
    • 36
    • 12 / 36