[Plugin] AreaTextTag

Re: [Plugin] AreaTextTag

Postby mills690624 » Mon Jun 11, 2018 2:10 am

Hello TIG

Can you help me add a Area units: "pyeong"?
1(pyeong)=3.305785(m²)

thanks so much
0

mills690624 
 

Re: [Plugin] AreaTextTag

Postby TIG » Mon Jun 11, 2018 1:07 pm

You'll need to do some editing of the RB file in the subfolder TIG-AreaTextTag.rb
Use a plain-text editor like Notepad++ or TextWrangler, with line-numbering displayed...

Note that this will break the signing hash, so it will only load in newer SketchUp versions if the Extension Loading Policy is set to be Unrestricted.

Here are the changes...
#nnn is the line number after which you add the new code, remember that it will change as you insert lines !
The @units checks assume you insert new lines of code after the "m2" ones...
I assume that dividing the m² value by 3.305785 turns it into 'pyeongs' ?
If I am wrong, then just swap the / for a *

#444 insert:
when "pyeong"
area=area*0.00064516 / 3.305785
perim=perim*0.0254
punit="m"

You might want to change the meter perimeter too ?

#732 + 4 ? insert:
when "pyeong"
area=area*0.00064516 / 3.305785
perim=perim*0.0254
punit="m"

You might want to change the meter perimeter too ?

#881 + 8 ? insert:
"pyeong",

#1079 + 9 ? insert:
when "pyeong"
area=area*0.00064516 / 3.305785
perim=perim*0.0254
punit="m"

You might want to change the meter perimeter too ?

#1295 + 13 ? insert:
when "pyeong"
area=area*0.00064516 / 3.305785
perim=perim*0.0254
punit="m"

You might want to change the meter perimeter too ?

#1510+ 17 ? insert:
when "pyeong"
area=area*0.00064516 / 3.305785
perim=perim*0.0254
punit="m"

You might want to change the meter perimeter too ?
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: ntnhatduy, pinoy and 9 guests

Visit our sponsors: