by Didier Bur » Fri Feb 18, 2011 2:37 pm
Hi, Here is a small extension to one of the example Ruby script that comes with SketchUp: Some basic settings added, Assign prices to materials and components, Output either to dialog boxes or CSV file. English and french languages supported, but easily 'translatable'. See readme for install instructions. options.jpg
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by EarthMover » Mon Mar 07, 2011 6:53 pm
This is great. Thanks Didier! 
3D Artist at Clearstory 3D Imaging Guide Tool at Winning With Sketchup Content Creator at Skapeup
-

EarthMover
- Premium Member

-
- Posts: 1801
- Joined: Fri Sep 12, 2008 9:06 pm
- Location: Eastern Pennsylvania
- Name: EarthMover
- Operating system: Windows
- SketchUp version: 2016
- License type: Pro
- SketchUp use: landscape architecture
- Level of SketchUp: Advanced
-
by sadyo » Thu Mar 17, 2011 11:59 am
The plugin is not working properly  , the result of the "compute estimate" is always 0.00, I already following the plugin usage perhaps you could provide us the example of how to using this nice plugin. Thanks ----------------------------- I'm using Win7 Home Premium 64bit & SketchUp Pro 8.0.8411
-

sadyo
-
- Posts: 33
- Joined: Wed May 05, 2010 9:07 am
- Name: Sadyo Adhi
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by Didier Bur » Thu Mar 17, 2011 9:34 pm
the result of the "compute estimate" is always 0.00 Maybe you didn't assign a cost to the default material and tested the script on "non-painted" faces ? 1.jpg
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by sadyo » Fri Mar 18, 2011 2:41 pm
Didier Bur wrote:the result of the "compute estimate" is always 0.00 Maybe you didn't assign a cost to the default material and tested the script on "non-painted" faces ? 1.jpg
But Mr. Didier, I Allready did assign a cost to the default material and didn't tested the script on "non-painted" faces. Mmmm... if you don't mind, would you please to give us the screenshot of how you Assign prices to your materials and components, pleeeease... 
-

sadyo
-
- Posts: 33
- Joined: Wed May 05, 2010 9:07 am
- Name: Sadyo Adhi
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by Didier Bur » Sat Mar 19, 2011 4:24 pm
Hi, Here is a quick screencapture video: choose settings, assign 2 costs for 2 materials, and calculate total estimate by material; Hope this helps,
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by sadyo » Mon Mar 21, 2011 3:56 am
Didier Bur wrote:Hi, Here is a quick screencapture video: choose settings, assign 2 costs for 2 materials, and calculate total estimate by material; Hope this helps,
Thanks Mr. Didier, now it worked well 
-

sadyo
-
- Posts: 33
- Joined: Wed May 05, 2010 9:07 am
- Name: Sadyo Adhi
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: hobby
- Level of SketchUp: Intermediate
by mariocha » Sun Apr 17, 2011 10:17 pm
Hum... I wonder, considering the folder they are in, will a re-install or update of SU replace those files with the standard non-customized ones ?
Mario C. Certified SketchUp Trainer, QC CA. Every rule has exceptions, but some.
-

mariocha
- Premium Member

-
- Posts: 296
- Joined: Wed Nov 21, 2007 3:00 pm
- Location: near Montréal, QC, CA
- Name: mario chabot
- Operating system: Mac
- SketchUp version: 2019
- License type: Pro
- SketchUp use: interior design
- Level of SketchUp: Advanced
-
by Didier Bur » Mon Apr 18, 2011 5:51 pm
will a re-install or update of SU replace those files
yes, I think so. Make a backup first 
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by fionmacool » Tue Jun 07, 2011 5:04 pm
Hi All, I'm desperately looking for cost plugin. I am hoping this one will work but when I load this on my Mac I get the following message:
Error Loading File attributes.rb undefined method `GetString' for nil:NilClass
Any idea what this is about? I really appreciate you creating this plugin. I am hoping to show it to others as a great tool for SU.
Thanks.
Zere are still some architectes zat do not know ow to use ze SketchUp..... Zis is unbelievable....
-

fionmacool
- Premium Member

-
- Posts: 85
- Joined: Thu Jul 24, 2008 10:37 pm
- Location: Cork City, Ireland
- Name: Paul Lee
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Didier Bur » Wed Jun 08, 2011 2:21 pm
Hi, Did you install the '.strings' files in your resources/en-US folder (as said in the readme.txt) ?
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by fionmacool » Thu Jun 09, 2011 3:52 am
Yes thanks for that. i didnt read the readme file as usual. anyway, having struggled with this problem I now realise that there are no plugins that will provide material quantities for groups or components. (Please correct me if i'm wrong in this.)
Thanks for your help and your useful plugin.
Zere are still some architectes zat do not know ow to use ze SketchUp..... Zis is unbelievable....
-

fionmacool
- Premium Member

-
- Posts: 85
- Joined: Thu Jul 24, 2008 10:37 pm
- Location: Cork City, Ireland
- Name: Paul Lee
- Operating system: Mac
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Rich O Brien » Thu Jun 09, 2011 9:19 am
desperately looking for cost plugin
Al Hart's Space Design http://www.renderplus.com/wk/SpaceDesign_w.htm
There's a frontroom and a backroom....reverse faces
-

Rich O Brien
- Administrator
-
- Posts: 12683
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Broadford, Clare, Ireland
- Name: Rich O'Brien
- Operating system: Windows
- SketchUp version: 2017
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
-
by Pink » Sun Jul 17, 2011 6:42 am
How can I add another currencies because I don't use DOLLAR,EURO,SEK. currencies={"Euro"=>"€","Dollar"=>"$","SEK"=>"SEK","BAHT"=>"BAHT"} I save as to replace the attributes.rb , but it cannot be display in the sketchup.
-
Pink
-
- Posts: 1
- Joined: Sat Jul 16, 2011 5:17 am
- Name: Jeerawan
by Didier Bur » Sun Jul 17, 2011 7:47 pm
Hi, Go to line 26 and add your currency to the list that appears in the dialog box: - Code: Select all
curList=["Euro","Dollar","SEK","BAHT"].join("|")
Regards,
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by gia_ginanjar » Wed Jul 27, 2011 3:10 am
how about change the unit to square meters? because in indonesia we use square meters unit, thanks in advance
-
gia_ginanjar
-
- Posts: 1
- Joined: Fri Aug 27, 2010 4:47 am
by Didier Bur » Wed Jul 27, 2011 10:10 am
Hi, I don't understand the question. No foolish feet/inches unit here in France too  . The script uses the unit you set in your model and outputs areas converting internal inches to your current unit. So whatever unit you use, no problem...
Didier Bur Ecole Nationale Supérieure d'Architecture de Nancy (F)
-

Didier Bur
-
- Posts: 1386
- Joined: Wed Nov 14, 2007 10:07 pm
- Location: Nancy, France
- Name: Didier Bur
- Operating system: Windows
- SketchUp version: 2020
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by rmagoncillo49179 » Thu Sep 08, 2011 8:13 am
hi i have a question, the estimate cost for component always shows the "susan" word.and i can't get it to work for component costing can you help me on this. thanks.
-
rmagoncillo49179
-
- Posts: 1
- Joined: Tue Oct 12, 2010 2:06 am
- Name: agon
by Gaieus » Thu Sep 08, 2011 10:19 am
Susan is the 2D figurine who is inserted into some of the templates 
Now to get rid of her, delete the figurine in a new, empty file, go to Window > Model info > Statistics and Purge everything. Then save your file as a template under the file menu and set SU to make this your default template (there is a checkbox at the bottom left for it in the save as template dialog)
-

Gaieus
-
- Posts: 27379
- Joined: Sat Oct 20, 2007 8:24 am
- Location: Pécs, Hungary
- Name: Csaba Pozsárkó
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: historical reconstruction
- Level of SketchUp: Advanced
-
by thaigringo » Sun Jul 29, 2012 2:08 pm
Great plugin. How can I change the default currency that loads when I create a new Model. I have added Baht (I am in Thailand) but when I load a new model the default currency is SEK and I would like it to be Baht.
Thanks Fred
-
thaigringo
-
- Posts: 3
- Joined: Fri Oct 21, 2011 3:59 am
- Name: Fred Jackson
by TIG » Sun Jul 29, 2012 2:32 pm
Edit the tool's attributes.rb file with Notepad or a similar plain-text editor. Find the line: currencies={"Euro"=>"€","Dollar"=>"$","SEK"=>"SEK"} Add [or delete]... To add 'Baht' insert a new lash member at the end thus: currencies={"Euro"=>"€","Dollar"=>"$","SEK"=>"SEK","Baht"=>"฿"} Or perhaps ...=>"B" depending on your PC's Unicode settings ? Also change the line: curList=["Euro","Dollar","SEK"].join("|") to include it... curList=["Euro","Dollar","SEK","Baht"].join("|")
To make that currency your default, find the line: $estimates_currency="Euro" if !$estimates_currency change it to... $estimates_currency="Baht" if !$estimates_currency
Hope this helps...
TIG
-

TIG
- Global Moderator
-
- Posts: 20295
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thaigringo » Sun Jul 29, 2012 4:01 pm
Thanks for the quick reply... Made the changes but still Defaults to SEK... Any other suggestions? Fred
-
thaigringo
-
- Posts: 3
- Joined: Fri Oct 21, 2011 3:59 am
- Name: Fred Jackson
by TIG » Sun Jul 29, 2012 5:16 pm
I hope that you are editing the correct 'attributes.rb' file in the 'Examples' subfolder within the 'Plugins' folder... AND restarting Sketchup so the change is activated ? Are you sure you added "Baht" in the 3 places just as I said ?
There is an alternative way... If you are always going to use "Baht" then you could set every thing to always use that. Change the dialog part as follows to avoid asking about 'Currency': prompts = [$exStrings.GetString("Unit: "), $exStrings.GetString("Default Material cost: ")] values = [units.index($estimates_unit), $estimates_cost_default_material] and also the line dropdowns=[curList,unList] must become dropdowns=[unList,""] and also the line after the dialog... Then the line $estimates_currency=currencies[results[0]] must become $estimates_currency="Baht" or $estimates_currency="฿" to use a 'symbol'... The other results must also be adjusted from $estimates_unit=units[results[1]] $estimates_cost_default_material=results[2] to $estimates_unit=units[results[0]] $estimates_cost_default_material=results[1] ...
TIG
-

TIG
- Global Moderator
-
- Posts: 20295
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thaigringo » Sun Jul 29, 2012 8:34 pm
Thanks again... I have made the changes to the correct attributes file and saved it and restarted SU but it didn't change the default currency... There are two $estimates_currency="Euro" if !$estimates_currency entries one is Line 19 and again at line 374... but the one at line 374 says "SEK"... If I change the entry at line 374, when I go to settings it shows nothing selected in the currency dropdown... The currency list is there but the default is blank...
I will try the new suggestion tomorrow... I'm old and need my sleep... 2"30 am here.. Will let you know what happens...
Thanks again
Fred
-
thaigringo
-
- Posts: 3
- Joined: Fri Oct 21, 2011 3:59 am
- Name: Fred Jackson
by TIG » Mon Jul 30, 2012 8:45 am
Sorry I missed the second entry ! The script is a little muddled in its logic.
As well as editing the ='Euro' line, edit the later line def estimate_defaults() $estimates_currency="SEK" if !$estimates_currency to read... def estimate_defaults() $estimates_currency="Baht" Or if you were using a 'symbol' use that instead of 'Baht'... This will always use "Baht" as your currency !
TIG
-

TIG
- Global Moderator
-
- Posts: 20295
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by chiklopes » Sun Dec 09, 2012 4:27 pm
"Error Loading File attributes.rb undefined method `GetString' for nil:NilClass"can anyone help me please?
-
chiklopes
-
- Posts: 2
- Joined: Sun Oct 21, 2012 1:16 pm
- Name: francisco
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Intermediate
by Dave R » Sun Dec 09, 2012 5:44 pm
Looks to me as if you haven't ticked the box for "Ruby Script Examples" in Window>Preferences>Extensions.
Etaoin Shrdlu
%
(THERE'S NO PLACE LIKE)
G28 X0.0 Y0.0 Z0.0
M30
%
-

Dave R
- Global Moderator
-
- Posts: 18187
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Name: Dave R
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
by jemagnussen » Thu Dec 13, 2012 1:19 pm
Hi Dave,
I belive I have followed every instruction, but I must have overlooked something as I can't get it to work, get this error measage:
Error Loading File C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/examples/exampleScripts.rb undefined local variable or method `' for main:ObjectError Loading File examples.rb undefined local variable or method `' for main:Object
I have used "kr" as currency, edited the example.rb in notepad, changed as advised. Replaced the script file and restarted Sketchup several times.
Hope you can help.
Best regards Jesper
HP ZBook 15, Windows 10 64 bit Intel Core i7-6820HQ @ 2.70GHz 32 GB Ram NVIDIA Quadro M2000M
-

jemagnussen
- Premium Member

-
- Posts: 45
- Joined: Wed May 25, 2011 8:56 am
- Location: Worldwide, pt. Kristiansand - Norway
- Name: Jesper E. Magnussen
- Operating system: Windows
- SketchUp version: 2013
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Intermediate
by Dave R » Thu Dec 13, 2012 1:28 pm
Did you tick the box for Ruby Script Examples under Extensions?
You changed your post while I was typing.
Do you have full administrative rights to the Plugins folder?
Etaoin Shrdlu
%
(THERE'S NO PLACE LIKE)
G28 X0.0 Y0.0 Z0.0
M30
%
-

Dave R
- Global Moderator
-
- Posts: 18187
- Joined: Tue Nov 13, 2007 11:52 pm
- Location: SE Minnesota
- Name: Dave R
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: woodworking
- Level of SketchUp: Advanced
by TIG » Thu Dec 13, 2012 1:37 pm
The error-message suggests that you have mis-edited the code... Get a fresh copy and with it opened in Notepad do a case-sensitive find/replace for SEK and substitute Kr - in every case - that's all that's needed... If it still fail;s then can you post the line/s you edited [and the lines either side of it/them] - exactly as they appear [copy+paste] - use a 'code' formating tag... Alternatively PM the whole file to me - don't post it all - it's confusing for members when faulty scripts are hanging around...
TIG
-

TIG
- Global Moderator
-
- Posts: 20295
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 2021
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Ad Machine » 5 minutes ago
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|