SketchUcation Plugin Store

 

 

[Plugin] Roof.rb v3.7 20110926

Re: [Plugin] Roof.rb v3.1 20110304

Postby Rich O Brien » Fri Mar 04, 2011 2:26 pm

Why inexplicable?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8278
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Dave R » Fri Mar 04, 2011 2:29 pm

Thanks TIG. I'll do that when I get home and check it. I expect it'll be just fine though.
Inspecting mirrors is a job I could easily see myself doing.
User avatar
Dave R
Global Moderator
 
Posts: 8991
Joined: Tue Nov 13, 2007 11:52 pm
Location: SE Minnesota
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: woodworking
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby TIG » Fri Mar 04, 2011 2:35 pm

Rich O'Brien wrote:Why inexplicable?

Because I can't explain [explicate] it ! :roll:

My original code was encrypted [a simple encryption, as used by Didier Bur too].
If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all :roll:
I used a decrypted version that worked fine with Artisan, so I was unaware of the problem...
My own version had some minor coding tweaks BUT nothing I can see that should make it behave any differently to the encrypted one... There are almost 4,000 lines of code so I don't want to trawl all of them to find the possible culprit... there are no error messages to help and 'Roof' and 'Artisan' now work fine together with this version anyway...

This new 'unencrypted' & tweaked version works fine now - I recommend everyone to change to it... :roll:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Rich O Brien » Fri Mar 04, 2011 3:14 pm

Nice explication :thumb:

My comedic timing must be a little off today... :roll:
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8278
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Gus R » Fri Mar 04, 2011 3:48 pm

Thanks very much for the update TIG.
User avatar
Gus R
 
Posts: 196
Joined: Mon Nov 03, 2008 2:09 am
Location: Denver, CO
Name: Gus Robatto
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby SketchUpNoobie » Fri Mar 04, 2011 3:50 pm

Yep. The update seems to be working fine. Thanks.
--

SketchUpNoobie: the complete noob in all things SketchUp.
SketchUpNoobie
 
Posts: 519
Joined: Thu May 06, 2010 4:00 pm
Location: North Carolina, USA
Name: SketchupNoobie
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: hobby
Level of SketchUp: Beginner

Re: [Plugin] Roof.rb v3.1 20110304

Postby Whaat » Fri Mar 04, 2011 5:57 pm

Thanks for updating the plugin, Tig. If you can figure out the problem, let me know. Maybe there is something I can change to fix this. I also have no idea what would cause this.
Whaat
 
Posts: 966
Joined: Wed Nov 14, 2007 9:51 pm
Location: Saskatchewan, Canada
Name: Dale Martens
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby CAntonis » Fri Mar 04, 2011 7:57 pm

Thank U TIG!
This plugin will be appreciated as every thing else you created!
BRAVO!!!!
CAntonis
 
Posts: 67
Joined: Tue Dec 22, 2009 6:46 pm
Name: Antonis

Re: [Plugin] Roof.rb v3.1 20110304

Postby tbd » Wed Mar 30, 2011 12:12 am

TIG wrote:If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all :roll:


after some debugging at 2am I found the problem - scrambled scripts and pack eval encrypted scripts both return (eval) for __FILE__ , so when tested with file_loaded? the one that gets loaded second it will not execute the block after (usually menu creation code)

workaround: use file_loaded("your_filename") or file_loaded("reverse URI")
eg file_loaded("roof.rb") or file_loaded("ro.plugins.drop")
SketchUp Ruby Consultant | Podium 1.x developer
http://plugins.ro
User avatar
tbd
 
Posts: 1018
Joined: Wed Nov 14, 2007 10:47 am
Location: Romania
Name: TBD

Re: [Plugin] Roof.rb v3.1 20110304

Postby utiler » Wed Mar 30, 2011 12:45 am

Thanks TIG, much appreciated!! :thumb:
purpose/expression/purpose/....
User avatar
utiler
Top SketchUcator
 
Posts: 1926
Joined: Wed Nov 14, 2007 11:35 am
Location: Queensland, Australia
Name: utiler
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby TIG » Wed Mar 30, 2011 8:57 am

TBD wrote:
TIG wrote:If that loads after Artisan then it has no menu BUT works from the Ruby Console [files load in alphanumeric order].
If you renamed it so it loaded before Artisan then it was fine... BUT then Artisan didn't load at all :roll:


after some debugging at 2am I found the problem - scrambled scripts and pack eval encrypted scripts both return (eval) for __FILE__ , so when tested with file_loaded? the one that gets loaded second it will not execute the block after (usually menu creation code)

workaround: use file_loaded("your_filename") or file_loaded("reverse URI")
eg file_loaded("roof.rb") or file_loaded("ro.plugins.drop")

Thanks for the info...OR we could just separate the menu code from the scrambled part so that it's not eval'd...
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby CAntonis » Wed Mar 30, 2011 2:01 pm

Thank U very much TIG. You made a great plugin even greater!

Antonis
CAntonis
 
Posts: 67
Joined: Tue Dec 22, 2009 6:46 pm
Name: Antonis

Re: [Plugin] Roof.rb v3.1 20110304

Postby Jim Smith » Wed Mar 30, 2011 5:11 pm

Thanks for the update TIG
"Out of clutter find simplicity,
from discord find harmony,
In the middle of difficulty lies opportunity"
Albert Einstein
User avatar
Jim Smith
Premium Member
Premium Member
 
Posts: 418
Joined: Mon Nov 12, 2007 2:25 pm
Location: Crown Point, Indiana, USA , home and office)
Name: Jim Smith
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Gus R » Wed Mar 30, 2011 6:55 pm

:arrow: Not to be a pest but something isn't right. The "eaves soffit size" is resulting in erroneous dimensions on opposing sides. For instance I input and eaves soffit size of 24" all around but I wind up with 1'-9 3/16" on one side and 2'-2 1/2" on another. Another conflict perhaps or am I imagining things. Did this with a "new" skp as well. Any ideas? Thanks.
User avatar
Gus R
 
Posts: 196
Joined: Mon Nov 03, 2008 2:09 am
Location: Denver, CO
Name: Gus Robatto
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby TIG » Wed Mar 30, 2011 7:01 pm

Gus R wrote::arrow: Not to be a pest but something isn't right. The "eaves soffit size" is resulting in erroneous dimensions on opposing sides. For instance I input and eaves soffit size of 24" all around but I wind up with 1'-9 3/16" on one side and 2'-2 1/2" on another. Another conflict perhaps or am I imagining things. Did this with a "new" skp as well. Any ideas? Thanks.

I assume this is with 'gable-roof' ?
The other tools all offset equally anyway ?
I can't reproduce any error...
On a hipped-roof the overhang is always equal too ?
Can you post a SKP that will give you the error [or PM it]...
I can't break it :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Gus R » Wed Mar 30, 2011 7:12 pm

TIG wrote:
Gus R wrote::arrow: Not to be a pest but something isn't right. The "eaves soffit size" is resulting in erroneous dimensions on opposing sides. For instance I input and eaves soffit size of 24" all around but I wind up with 1'-9 3/16" on one side and 2'-2 1/2" on another. Another conflict perhaps or am I imagining things. Did this with a "new" skp as well. Any ideas? Thanks.

I assume this is with 'gable-roof' ?
The other tools all offset equally anyway ?
I can't reproduce any error...
On a hipped-roof the overhang is always equal too ?
Can you post a SKP that will give you the error [or PM it]...
I can't break it :?


TIG OK, here's a skp file that I just created. Looks like the gable roof comes out good but the hip and mansard result in the same overhang dimensions. This is all using default setting on the ruby.rb.

roof ruby test.skp
Please, register (free) to access all the attachments on the forums.
User avatar
Gus R
 
Posts: 196
Joined: Mon Nov 03, 2008 2:09 am
Location: Denver, CO
Name: Gus Robatto
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby TIG » Wed Mar 30, 2011 9:06 pm

I can reproduce the problem using your example SKP.
Currently I am a complete loss to say why this might be happening...
I'll sleep on it and come back to you... :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Gus R » Wed Mar 30, 2011 9:16 pm

TIG wrote:I can reproduce the problem using your example SKP.
Currently I am a complete loss to say why this might be happening...
I'll sleep on it and come back to you... :?


Thanks. I have a workaround which is using the old roof.rb in the tools directory. :D Got a house rendering job in today (first one in a while) which is why I just noticed this.
User avatar
Gus R
 
Posts: 196
Joined: Mon Nov 03, 2008 2:09 am
Location: Denver, CO
Name: Gus Robatto
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby TIG » Wed Mar 30, 2011 10:48 pm

Gus R wrote:
TIG wrote:I can reproduce the problem using your example SKP.
Currently I am a complete loss to say why this might be happening...
I'll sleep on it and come back to you... :?


Thanks. I have a workaround which is using the old roof.rb in the tools directory. :D Got a house rendering job in today (first one in a while) which is why I just noticed this.

What version of 'old' Roof do you have that works OK ?
The 'new' version shouldn't differ [but clearly does :? ]
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby Gus R » Wed Mar 30, 2011 11:45 pm

TIG wrote:What version of 'old' Roof do you have that works OK ?
The 'new' version shouldn't differ [but clearly does :? ]
Right now 3.0. Which I put in the tools directory because it conflicts with Artisan. The one that isn't working correctly is your latest, 3.1, which I put away after I noticed the problem.
User avatar
Gus R
 
Posts: 196
Joined: Mon Nov 03, 2008 2:09 am
Location: Denver, CO
Name: Gus Robatto
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.1 20110304

Postby TIG » Thu Mar 31, 2011 8:36 am

Gus R

What makes that more puzzling is that v3.0 [encrypted] should be no different to v3.1 decrypted ?
The code hasn't be changed I just unscrambled it - but there IS clearly an effect...
I'll do more investigating... :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.2 20110331

Postby TIG » Thu Mar 31, 2011 10:54 am

Here's v3.2 viewtopic.php?p=17156#p17156 :D

I've fixed the reversed face glitches in Hipped roof's fascias if the 'selected-face' was itself reversed.

The listed materials' now use their 'display_name' rather than their 'name'.

The offset_eaves code has been completely rewritten to correct the inexplicable irregularities in the soffit sizes produced in v3.1 - it was eventually easier to redo the code rather than try to find the underlying cause - now fixed anyway.
:? :sketchstatic:

It also has a zip file of Help docs...

Please update.
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.2 20110331

Postby Rich O Brien » Thu Mar 31, 2011 11:12 am

Lots of inexplicables lately?

Somethings afoot....there's conflict somewhere. Has to be?
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8278
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.2 20110331

Postby TIG » Thu Mar 31, 2011 12:01 pm

TBD has found the menu clash issue - both my old version of Roof and Artisan use an encrypted format that is decrypted as it loads using a Ruby method called 'eval'. Both of our scripts had menu set ups inside the encrypted code and use __FILE__ to get the path to the script, so it knows where other files are 'relative to itself' [don't worry about it, it's just a special system 'variable']. When you use eval on something containing __FILE__ the value gets returned, BUT eval doesn't refresh after it's done it the once. Therefore the first script to run and decrypt it's __FILE__ path with eval freezes its value at that and any scripts loading later with be buggered as the value is wrong. You could see this because if Artisan loaded before Roof then Roof broke and if Roof loaded before Artisan then Artisan broke. Having Roof load [later] from Tools rather than Plugins seemed to fix it as presumably eval runs for each collection of scripts in each $LOAD_PATH entry [another system 'variable' [array] that sets the search paths to auto-load scripts]... It has been know for sometime that including __FILE__ inside 'compiled' [.rbs] files would lead to problems, but not that using eval on encrypted [actually they are 'packed'] .rb scripts using __FILE__ would mess with other scripts... So if you are using __FILE__ you can't compile or encrypt/pack/eval it later :cry:

On this recent issue of the uneven soffit sizes [fixed by v3.2] I am a loss to understand why it failed in v3.1 but worked in v3.0 - if anything encrypting it might have broken something - not the other way round!
It was clearly an issue with the 'offset' method used on the selected face for Hips etc...
RickW wrote the 'face.offset(dist)' method a long time ago. Rather than use that I reworked a version of it and made 'face.offset_eaves(dist)' to separate my code off from his. Looking through the two versions I couldn't see any significant differences - except his worked and mine didn't [at least when we got to v3.1!]. At first I thought that perhaps someone else had a clashing method using the same name BUT when I edited the code to use another clearly unique name [with random number on its end and the lot] it still didn't work! So I simply rewrote the whole thing so that it offsets the corners in a quite different way... Seemed to work

Now for the rub! v3.2 doesn't work faultessly either !! :shock:
I'm working on a fix as I type this... Aaaargh!
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.3 20110331

Postby TIG » Thu Mar 31, 2011 12:55 pm

Here's v3.3 viewtopic.php?p=17156#p17156

Apologies to the ~14 of you who already updated to v3.2 !
Please update to v3.3 asap...
It was quickly found to have some other issues with vector normalizing and soffit distortions, that I now suspect caused the v3.1 issues on the soffit sizes too... Fix one thing break another two! :roll:

I believe that this version is all corrected - I hope that it now sets everything back on an even keel... :oops:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.3 20110331

Postby hebeijianke » Sun Apr 03, 2011 2:18 am

It is not work for me
Error: #<NoMethodError: undefined method `to_f' for ["30"]:Array>
F:/Google SketchUp 8/Plugins/Roof.rb:235:in `dialog_hip'
F:/Google SketchUp 8/Plugins/Roof.rb:278:in `hip'
F:/Google SketchUp 8/Plugins/Roof.rb:3984
F:/Google SketchUp 8/Plugins/Roof.rb:235:in `call'
F:/Google SketchUp 8/Plugins/Roof.rb:235
Error: #<NoMethodError: undefined method `to_f' for ["60"]:Array>
F:/Google SketchUp 8/Plugins/Roof.rb:899:in `dialog_man'
F:/Google SketchUp 8/Plugins/Roof.rb:966:in `mansard'
F:/Google SketchUp 8/Plugins/Roof.rb:3985
F:/Google SketchUp 8/Plugins/Roof.rb:235:in `call'
F:/Google SketchUp 8/Plugins/Roof.rb:235
Error: #<NoMethodError: undefined method `to_f' for ["30"]:Array>
F:/Google SketchUp 8/Plugins/Roof.rb:1615:in `dialog_gable'
F:/Google SketchUp 8/Plugins/Roof.rb:2262:in `gable'
F:/Google SketchUp 8/Plugins/Roof.rb:3802:in `onLButtonDown'
F:/Google SketchUp 8/Plugins/Roof.rb:899
Error: #<NoMethodError: undefined method `to_f' for ["30"]:Array>
F:/Google SketchUp 8/Plugins/Roof.rb:3331:in `dialog_pyramid'
F:/Google SketchUp 8/Plugins/Roof.rb:3381:in `pyramid'
F:/Google SketchUp 8/Plugins/Roof.rb:3927:in `onLButtonDown'
F:/Google SketchUp 8/Plugins/Roof.rb:1615
hebeijianke
 
Posts: 38
Joined: Tue Apr 28, 2009 2:01 am

Re: [Plugin] Roof.rb v3.4 20110403

Postby TIG » Sun Apr 03, 2011 5:04 pm

Here's v3.4 viewtopic.php?p=17156#p17156
It fixes this reported glitch - it was only noticeable if you didn't have certain other scripts loading that also made a method that Roof used to recreate until the last update removed it by accident :roll: I did have that other script loading so I didn't spot it, and I rarely use A:B roof pitches anyway...
It's now fixed and the A:B pitch works properly again [as it used to prior to me messing it up in the previous update] :oops:
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.5 20110612

Postby TIG » Sun Jun 12, 2011 5:27 pm

Here's v3.5 viewtopic.php?p=17156#p17156
A glitch with rare soffit/fascia combos fixed with @fstype="Vertical+Horizontal",
also issue with some distorted faces addressed so eaves are always 'out', Roof-Slope now reports to 3 d.p.
There were previously ~3000 downloads of v3.0... so a lot of you might need to update, as only ~350 of you updated to v3.4 :?
TIG
User avatar
TIG
Global Moderator
 
Posts: 13950
Joined: Mon Nov 12, 2007 7:24 pm
Location: Northumbria UK
Name: TIG
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Roof.rb v3.5 20110612

Postby JGA » Tue Jun 14, 2011 12:56 pm

Thanks for the update, the original has been a solid tool, looking forward to trying the new version.
Regards,
JGA
JGA
 
Posts: 117
Joined: Wed Nov 14, 2007 4:57 pm
Location: Scotland
Name: JGA

Re: [Plugin] Roof.rb v3.5 20110612

Postby wingkingcc » Sun Jul 24, 2011 9:36 am

I can't use it in pro 8..why……
wingkingcc
 
Posts: 1
Joined: Sun Jul 24, 2011 9:31 am
Name: wingkingcc

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Not a Premium Member yet? Check out the great time-limited deal we are offering.

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: EVANS, Kou, man and 13 guests