Thanks Dan! for raking me over the coals.... I needed that ...ouch! 
Posts
-
RE: Error checking routine issue?
-
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.
-
RE: Error checking routine issue?
Thanks thomthom, I also just noticed I should have posted this in Developers' Forum ....my bad!
-
Error checking routine issue?
The following statement works!
if (@width < 2) UI.messagebox( "A Width of less than 2 is not allowed ") return nil endQuestion: 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 endif ( 2 < @width > 12) UI.messagebox( "A Width of less than 2 or greater than 12 is not allowed ") return nil endTia!
-
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.
-
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!

-
RE: New translate request?
@unknownuser said:
Assuming the dotted distance is <
dd> and you name p3? by p4, just usep4 = p2.offset p3.vector_to(p2), ddThe line oriented vector is
p3.vector_to(p2), and you just offsetp2by the distancedd.
FredoThanks 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 thisdef 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.
-
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) endI'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!

-
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. -
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!
-
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.
- A Suspended ceiling tile installer will divide any room by the number of tiles req'd, in length and width.
- 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.

-
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!)

-
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.
- no cube root function
- no sin function
- no cos function
- 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!

-
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.
- trying to open any of the 3 Ivyleaf files Ivyleaf_1.skp, Ivyleaf_2.skp, Ivyleaf_3.skp causes an instant SU Bugsplat!
- opening the Ruby Console, run the Ivy generator and a list of errors scrolls by.
- the stem is not created!
- the leaves do not get attached!
Argh!
-
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?
-
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.
-
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. -
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?

-
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.
-
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!