by thomthom » Thu May 20, 2010 3:13 pm
 1.3e not working for me. Error: #<NoMethodError: undefined method `[]' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:734:in `fur_dialog_ini' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:741:in `fur_webdialog' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:1414 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:1413:in `call'
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by TIG » Thu May 20, 2010 3:34 pm
With 1.3e I get Error: #<TypeError: no implicit conversion to float from nil> C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:1326:in `initialize' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:1326:in `new' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:1326:in `s_to_vec' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:713:in `show_webdialog' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:658:in `call' with the 'web-dialog' accept button. You must be passing an empty argument to a defn ?
TIG
-

TIG
- Global Moderator
-
- Posts: 14008
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by tak2hata » Thu May 20, 2010 4:28 pm
thomthom wrote::( 1.3e not working for me.
Error: #<NoMethodError: undefined method `[]' for nil:NilClass> C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:734:in `fur_dialog_ini' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:741:in `fur_webdialog' C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:1414 C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/fur_en.rb:1413:in `call'
I think this is LengthFormat or LengthPrecision problem. So I will change code.. - Code: Select all
def fur_dialog_ini unitoptions = Hash.new Sketchup.active_model.options["UnitsOptions"].each{|key ,val| unitoptions[key] = val } Sketchup.active_model.options["UnitsOptions"]["LengthFormat"] = 0 if unitoptions["LengthFormat"] != 0 Sketchup.active_model.options["UnitsOptions"]["LengthPrecision"] = 1 if unitoptions["LengthPrecision"] == 0 @fur_units_metric = false lunit = unitoptions["LengthUnit"] @fur_units_metric = true if lunit >= 2 lprec = Sketchup.active_model.options["UnitsOptions"]["LengthPrecision"] @decimal_sep = 1.2.to_l.to_s.match(/\d(\D)\d/)[1] @delim = "," @delim = ";" if @decimal_sep == ',' unitoptions.each{|key ,val| Sketchup.active_model.options["UnitsOptions"][key] = val } end
TIG wrote:With 1.3e I get Error: #<TypeError: no implicit conversion to float from nil> C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:1326:in `initialize' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:1326:in `new' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:1326:in `s_to_vec' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:713:in `show_webdialog' C:/Program Files/Google/Google SketchUp 7/Plugins/fur_en.rb:658:in `call' with the 'web-dialog' accept button. You must be passing an empty argument to a defn ?
Sorry,I will change the code.
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by thomthom » Thu May 20, 2010 4:59 pm
Why are you doing this?
Sketchup.active_model.options["UnitsOptions"].each{|key ,val| unitoptions[key] = val } Sketchup.active_model.options["UnitsOptions"]["LengthFormat"] = 0 if unitoptions["LengthFormat"] != 0 Sketchup.active_model.options["UnitsOptions"]["LengthPrecision"] = 1 if unitoptions["LengthPrecision"] == 0
You're changing the model settings.
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Thu May 20, 2010 5:02 pm
This whole thing makes no sense... - Code: Select all
def fur_dialog_ini unitoptions = Hash.new Sketchup.active_model.options["UnitsOptions"].each{|key ,val| unitoptions[key] = val } Sketchup.active_model.options["UnitsOptions"]["LengthFormat"] = 0 if unitoptions["LengthFormat"] != 0 Sketchup.active_model.options["UnitsOptions"]["LengthPrecision"] = 1 if unitoptions["LengthPrecision"] == 0 @fur_units_metric = false lunit = unitoptions["LengthUnit"] @fur_units_metric = true if lunit >= 2 lprec = Sketchup.active_model.options["UnitsOptions"]["LengthPrecision"] @decimal_sep = 1.2.to_l.to_s.match(/\d(\D)\d/)[1] @delim = "," @delim = ";" if @decimal_sep == ',' unitoptions.each{|key ,val| Sketchup.active_model.options["UnitsOptions"][key] = val } end
You create an hash to store model UnitOptions, then change them and then restore the original values...?
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Thu May 20, 2010 5:08 pm
From what I could understand, that method could be condensed to: - Code: Select all
def fur_dialog_ini units = Sketchup.active_model.options["UnitsOptions"]["LengthUnit"] @fur_units_metric = (units >= 2) # true if units are 2 or greater @decimal_sep = 1.2.to_l.to_s.match(/\d(\D)\d/)[1] @delim = (@decimal_sep == ',') ? ";" : "," end
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by tak2hata » Thu May 20, 2010 5:47 pm
Hmmm, When LengthFormat is Architectural or LengthPrecision = 0, "1.2.to_l.to_s.match(/\d(\D)\d/)[1]" return error.
Is that problem excluding this?
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by thomthom » Thu May 20, 2010 5:58 pm
Ah, yes. I see the problem. ..hm... this needs some more thinking... 
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Thu May 20, 2010 6:14 pm
Ok - turns out that you can't trust the SU methods to extract the decimal separator as model settings affects the length to string formatting. (Should have thought of that.  ) Looking at there seems to mostly be just comma or period as decimal separator. At least if you make that assumption it will cover most. So here is an alternative: - Code: Select all
def get_decimal_separator # If this raises an error the decimal separator is not '.' '1.2'.to_l return '.' rescue return ',' end
def fur_dialog_ini @decimal_sep ||= get_decimal_separator @delim ||= (@decimal_sep == ',') ? ";" : "," end
This snippet makes some assumptions: Only comma or period as decimal separator. If the separator is a period then comma is used as list separator. If the separator is a comma then ; is used as list separator. The method is working out the decimal separator is by trial and error.
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by jchau2007 » Thu May 20, 2010 9:40 pm
wow... keep it coming. Thanks.
-
jchau2007
-
- Posts: 50
- Joined: Mon Aug 31, 2009 7:46 pm
- Name: James
by AcesHigh » Thu May 20, 2010 9:44 pm
I thought of a very cool thing to do with this plugin... those xmas stuff that you put on Xmas trees, you know?? Well, actually this plugin also makes it easy to do the Xmas tree itself. I am talking about this thing that goes around the tree 
-
AcesHigh
-
- Posts: 428
- Joined: Wed Mar 05, 2008 1:58 pm
by Rich O Brien » Thu May 20, 2010 10:12 pm
Is v1.3e working for others?
Nothing happens when i select it?
-

Rich O Brien
- Administrator
-
- Posts: 8320
- 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
by EscapeArtist » Thu May 20, 2010 10:16 pm
I did have some issues as well, didn't check the console though. I had a model I'd saved using the previous "make fur" revision and was attempting to use the plugin, nothing happened - dialogue wouldn't open. I opened a "new" scene (File > New) and then the plugin worked.
-

EscapeArtist
- Top SketchUcator
-
- Posts: 1306
- Joined: Sun Aug 03, 2008 7:36 pm
- Location: Northeast US
- Name: Jeff
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by tak2hata » Fri May 21, 2010 8:11 am
I update to version 1.3g. Vector parameter split to 3 parameter each. and I change preset file. I think this vesion has problem yet.
For the time being, It going on my sketchup. But very difficult for me to convert units. and so tired.
Thanks.
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by thomthom » Fri May 21, 2010 8:24 am
I appears to work. I'll see if I can get some time to have a better look at your script and see if I can help with the units.
-

thomthom
- Global Moderator
-
- Posts: 17688
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by TIG » Fri May 21, 2010 9:56 am
it seems to work OK now BUT the dialog is getting too tall. Can't you redo the web-dialog code so that some of the boxes are side-by-side - the XYZ ones could be in a line, so making it 3 input boxes wide, but with each a little narrower would be more manageable ?
TIG
-

TIG
- Global Moderator
-
- Posts: 14008
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by tak2hata » Fri May 21, 2010 2:38 pm
Hi ,all. I update version 1.3h. WebDialog becomes smaller. fix problem about defn for Exporter.
Thanks.
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by TIG » Fri May 21, 2010 2:42 pm
Thanks - very good...
TIG
-

TIG
- Global Moderator
-
- Posts: 14008
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Oxer » Fri May 21, 2010 9:43 pm
Hi!
The first, incredible plugin! I had downloaded the plugin version 1.3a and it works fine, i download the last version 1.3h and it don't works, the plugin appears in the Menu Plugins and the InputBox appears too but when I push OK nothing happens. I use Mac with SU 7.1. I have probed the plugin version 1.3h in SU (Windows) too and don't works. What's the problem?
Certainly, i have done the plugin's translation to spanish language of the two versions, 1.3a (works) and 1.3h (don't works), if you want i send you them.
Bye!
-

Oxer
-
- Posts: 159
- Joined: Thu Sep 10, 2009 1:13 am
- Location: Benavente, Spain
- Name: Oscar
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: illustration, cartoons
- Level of SketchUp: Advanced
by tallbridgeguy » Fri May 21, 2010 11:54 pm
I downloaded 1.3h and I don't see the new dialog, just the old one.
(thanks for the plugin by the way)
Please, register (free) to access all the attachments on the forums.
-
tallbridgeguy
-
- Posts: 158
- Joined: Mon Sep 01, 2008 5:31 pm
- Name: tallguy
-
by tak2hata » Sat May 22, 2010 2:47 am
Oxer wrote:Hi!
The first, incredible plugin! I had downloaded the plugin version 1.3a and it works fine, i download the last version 1.3h and it don't works, the plugin appears in the Menu Plugins and the InputBox appears too but when I push OK nothing happens. I use Mac with SU 7.1. I have probed the plugin version 1.3h in SU (Windows) too and don't works. What's the problem?
Certainly, i have done the plugin's translation to spanish language of the two versions, 1.3a (works) and 1.3h (don't works), if you want i send you them.
Bye!
Hi,Oxer. see "Sketchup--menu--window--model info--Units info". if you using units like "feet" or "m", and unit precision is too small(like 0). The parameters in dialog are displayed "0". It don't work when Length or Rootwidth are 0. This is auto convert for sketchup settings. so you should change the settings and should change it to the numerical value excluding 0. If thisi not solution, please reply. tallbridgeguy wrote:I downloaded 1.3h and I don't see the new dialog, just the old one.
Hi, tallbridgguy. I do not understand this cause. I certainly uploaded on this forum. I think you should clear older ruby files of fur_en from plugins directory. If thisi not solution, please reply.
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by tak2hata » Sat May 22, 2010 2:53 am
tallbridgeguy wrote:I downloaded 1.3h and I don't see the new dialog, just the old one. (thanks for the plugin by the way)
Sorry ,Older(v1.3g)file remained most below of the first thread. Now I deleted it. please download "fur_en_v1.3h(web dialog shorter)".
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by tak2hata » Sat May 22, 2010 3:03 am
Oxer wrote:Certainly, i have done the plugin's translation to spanish language of the two versions, 1.3a (works) and 1.3h (don't works), if you want i send you them.
Hi .Oxer. That's nice idea. Please send me them. I will make setting file for translation to other language. It will override menu names. Thanks.
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by tallbridgeguy » Sat May 22, 2010 1:56 pm
tak2hata
Got it, it was just me being stupid.
Thanks again for the great plugin. I don't how you guys do it.
TBG
-
tallbridgeguy
-
- Posts: 158
- Joined: Mon Sep 01, 2008 5:31 pm
- Name: tallguy
-
by tak2hata » Sat May 22, 2010 5:05 pm
Hi,all. I updated this plugin to version1.3i. Webdialog sees easier.(Thanks Diego.) Parameter name translates by langage text file.
Thanks.
----------- by TAK2HATA
-
tak2hata
-
- Posts: 205
- Joined: Fri Feb 13, 2009 1:41 pm
- Location: Japan
- Name: tak2hata
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by Oxer » Sat May 22, 2010 8:16 pm
Hi, again.
I use metric units, i probe to change the precision of the units to 0,000m and other different to 0 and the plugin don't works, i'm using the last version of plugin 1.3i, only it works for me the 1.3a version; Is it possible that the problem is in the preferences saved?
Bye!
Edit:
I probe with others units differents to meters and WORKS! Only give me problem the meters, i don't know why.
-

Oxer
-
- Posts: 159
- Joined: Thu Sep 10, 2009 1:13 am
- Location: Benavente, Spain
- Name: Oscar
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: illustration, cartoons
- Level of SketchUp: Advanced
by DIEGO-RODRIGUEZ » Sat May 22, 2010 9:29 pm
exelent tak, thank you very much
-
DIEGO-RODRIGUEZ
- Banned
-
- Posts: 272
- Joined: Sat Jan 10, 2009 6:20 pm
- Location: Argentina - Mar del plata
- Name: diego
-
by DareDevil » Sat May 22, 2010 9:39 pm
tak2hata wrote:Hi,all. I updated this plugin to version1.3i. Webdialog sees easier.(Thanks Diego.) Parameter name translates by langage text file.
Thanks.
A french translation. Thanks to you all ! Edit : The file is now in UTF8 format
Please, register (free) to access all the attachments on the forums.
Last edited by DareDevil on Tue Jul 13, 2010 1:44 pm, edited 4 times in total.
-

DareDevil
-
- Posts: 360
- Joined: Sun Mar 15, 2009 10:19 pm
- Location: Marseille, France
- Name: Didier D
by majid » Mon May 24, 2010 5:31 am
Persian translation: viewtopic.php?f=320&t=28179thanx to tak2hata 
درصورتيكه به مساله اي برخورديد(مثل وارد نشدن به سايت، فراموش كردن پسورد و غیره با ما تماس بگیریدhttp://sketchucation.com/contact
-

majid
- Top SketchUcator
-
- Posts: 1544
- Joined: Sun Dec 16, 2007 8:51 pm
- Location: Isfahan Iran
- Name: majid
- Operating system: Windows
- SketchUp version: 8
- License type: Free/Make
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by mariocha » Mon May 24, 2010 2:04 pm
Great stuff ! Is there a way the dialog can remember it's position on the screen? I always expect it to reopen where I put it the previous time. 
Mario C. Certified SketchUp Trainer, QC CA, Mac Pro 2xQuad core & MacBook Pro 3.06 Ghz.
-

mariocha
- Premium Member

-
- Posts: 171
- Joined: Wed Nov 21, 2007 3:00 pm
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Ad Machine » 5 minutes ago
Need SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp. Premium Members get 20% discount!
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|