[Plugin] Toggle Units

Re: [Plugin] Toggle Units

Postby TIG » Wed Jan 26, 2011 4:43 pm

When you extracted the contents of the zip file you should have got a file called toggle_units.rb and a folder called toggle_units_icons which contains 24 png files to make the various buttons.
The file and the folder both go into your Plugins folder.
If you have copied the rb file from v7 into v8 you must also copy the whole folder and its files too... :?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Toggle Units

Postby davidlouis » Wed Jan 26, 2011 6:43 pm

Not wanting to discourage the development of great tools such as this, I can't help wonder why, so far down the line in sketchup development, you can't have one preference for modelling units and a different one for the value readout of say... areas, dimensions etc etc... CAD software has been doing this since day one...

At the moment I model in millimeters and require dimensions and areas in meters... I've used this tool since it pretty much came but why don't the skp developers integrate this into the preferences / model info units interface...???

Either way thanks for a great tool! :thumb:

Dave
0
Last edited by davidlouis on Wed Jan 26, 2011 6:44 pm, edited 1 time in total.

davidlouis 
 

Re: [Plugin] Toggle Units

Postby watkins » Wed Jan 26, 2011 6:44 pm

Dear All,

Okay, Toggle Units is now working in V8, but only after installing the version posted by 'blajnov' (page 6 of this thread, and near the top).

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Toggle Units

Postby vidy » Fri Jan 28, 2011 2:39 am

watkins wrote:Dear All,

Okay, Toggle Units is now working in V8, but only after installing the version posted by 'blajnov' (page 6 of this thread, and near the top).

Kind regards,
Bob


dear bob,
do you have the icon showed up on v.8?
0
still so much to learn..

vidy 
 

Re: [Plugin] Toggle Units

Postby watkins » Fri Jan 28, 2011 11:37 am

Dear Vidy,

Yes I do, and I have checked all the functions and they work. It would be very useful if someone could update the first posting with the V8 compatible plugin.

Regards,
Bob
0

watkins 
 

Re: [Plugin] Toggle Units

Postby TIG » Fri Jan 28, 2011 5:51 pm

I have updated the first post in the thread viewtopic.php?p=81391#p81391
Please use the new 'bold' version which is v6/7/8... friendly - I left the old one BUT I don't recommend that version at all...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Toggle Units

Postby vidy » Sat Jan 29, 2011 2:40 am

thanks bob and tig, now it works perfectly :berserk:
0
still so much to learn..

vidy 
 

Re: [Plugin] Toggle Units

Postby Dave R » Sat Jan 29, 2011 1:16 pm

TIG,

I just installed the latest version but I am getting the blank toolbar. In looking through the script I see what looks like the path to the PNGs shown as below. The icon folder is called "toggle_units_icons" but I wonder if it or the script should be modified. Or maybe I'm looking in the wrong place and have a different problem.

Code: Select all
cmd = UI::Command.new(Strings["Decimal"]) { toggle_units(5) }
cmd.small_icon = "CD_ICONS/TWEAK/tudec16.png"
cmd.large_icon = "CD_ICONS/TWEAK/tudec24.png"
      
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Toggle Units

Postby TIG » Sat Jan 29, 2011 4:18 pm

Dave R wrote:TIG,

I just installed the latest version but I am getting the blank toolbar. In looking through the script I see what looks like the path to the PNGs shown as below. The icon folder is called "toggle_units_icons" but I wonder if it or the script should be modified. Or maybe I'm looking in the wrong place and have a different problem.

Code: Select all
cmd = UI::Command.new(Strings["Decimal"]) { toggle_units(5) }
cmd.small_icon = "CD_ICONS/TWEAK/tudec16.png"
cmd.large_icon = "CD_ICONS/TWEAK/tudec24.png"
      

You are right :roll: - I copied the files over without looking at then [I didn't use this tool at all]
I've now updated the zip viewtopic.php?p=81391#p81391 so that it has the correct folder specified for the icons !
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Toggle Units

Postby Dave R » Sat Jan 29, 2011 5:17 pm

Thank you, TIG. I'm amazed that I sorted out the problem correctly. I must be learning from watching you.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Toggle Units

Postby Matt666 » Thu Feb 24, 2011 8:45 am

Hi all.
Sorry for my absence, for now I don't often use SU. Thank you TIG to be here... :oops:
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units

Postby mag1800 » Thu Apr 07, 2011 6:11 am

Great Plugin Matt. Works great for me. Thank You.
0

mag1800 
 

Re: [Plugin] Toggle Units v2.1

Postby Matt666 » Mon Sep 12, 2011 8:32 am

Hi all.
Plugin updated with a new tool (Toolbar manager): You can now choose icons you want to display in the toolbar.
Thanks to Thomthom and TIG!

LINK: viewtopic.php?p=81391#p81391
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units v2.1 (20110912)

Postby Matt666 » Wed Sep 14, 2011 12:06 pm

Do not hesitate to tell me if something goes wrong... I'm new with HTML and JAVASCRIPT...
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units v2.1 (20110912)

Postby driven » Wed Sep 14, 2011 1:00 pm

Hi Mat,

on my mac if I instal this correctly and open SU

Unless, I use the manager, make a change and then quit

SU actually crashes when I close a window and I get a report dialog.

When I remove this ruby, everything works as it should, if put it back again problem returns.

it make no difference if I use or don't use the plugin, only if it's installed.

28 com.google.sketchupfree8 0x004a9316 std::vector<CSketchUpToolbar::CToolBarItem, std::allocator<CSketchUpToolbar::CToolBarItem> >::_M_insert_aux(__gnu_cxx::__normal_iterator<CSketchUpToolbar::CToolBarItem*, std::vector<CSketchUpToolbar::CToolBarItem, std::allocator<CSketchUpToolbar::CToolBarItem> > >, CSketchUpToolbar::CToolBarItem const&) + 1968
29 com.google.sketchupfree8 0x004aa4ab std::vector<CSketchUpToolbar::CToolBarItem, std::allocator<CSketchUpToolbar::CToolBarItem> >::_M_insert_aux(__gnu_cxx::__normal_iterator<CSketchUpToolbar::CToolBarItem*, std::vector<CSketchUpToolbar::CToolBarItem, std::allocator<CSketchUpToolbar::CToolBarItem> > >, CSketchUpToolbar::CToolBarItem const&) + 6469
30 libCommonUtils.dylib 0x00a8538a CNotificationCenter::SendNotification(char const*, void*) + 202
31 com.google.sketchupfree8 0x004c1d48 non-virtual thunk to CTool::~CTool() + 3048
32 com.google.sketchupfree8 0x004c27c3 non-virtual thunk to CTool::~CTool() + 5731
33 com.google.sketchupfree8 0x00008335 0x1000 + 29493


john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Toggle Units v2.1 (20110912)

Postby Matt666 » Wed Sep 14, 2011 1:19 pm

Hum Thomthom told me I had to use 'show' with windows and 'show_modal' with mac... I think this is the problem (because i completely forgot this!). I'll take a look soon thank you!
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units v2.1 (20110912)

Postby driven » Wed Sep 14, 2011 2:04 pm

Hi Mat,
It actually seems to be something to do with the preference settings, which SU sends to the .plist on Mac.

.show and .show_modal never cause crashes, it's just the dialog disappears under the main window.
john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby Matt666 » Thu Sep 15, 2011 7:42 am

Hi!
See first post to download new version [v2.11].
  • Mac bug fixed
  • Add tool in extensions window.
Big thanks to driven for his help! :thumb:

LINK: viewtopic.php?p=81391#p81391
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby ankitdarda » Fri Sep 16, 2011 6:28 pm

0
thank you !!!


feel free to click on my site http://www.ankitfolio.co.cc includes my blog page link within it

:fro:

ankitdarda

ankitdarda 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby Matt666 » Fri Sep 16, 2011 6:38 pm

;)
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby ultimato andy » Sun Oct 09, 2011 2:34 pm

where is the pluggin to download for sketchup 8? i cant find it!:(
0

ultimato andy 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby Gaieus » Sun Oct 09, 2011 2:49 pm

ultimato andy wrote:where is the pluggin to download for sketchup 8? i cant find it!:(

Attached to the first post of the topic (usually at the bottom)
0
User avatar
Gaieus 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby Matt666 » Mon Oct 10, 2011 8:39 am

Thank you Gaieus!
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby mirale999 » Sun Nov 27, 2011 7:00 am

:berserk: Great plugin~ I find it easy to switch from mm to M when just to measure the area of a plan now!
0
paranoia is a higher form of awareness...

mirale999 
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby mariocha » Sat Jan 14, 2012 1:30 am

Well, no luck here on OS X Lion, with v 2.11
Only the first 4 icons and the 2 setting the precision work; And the greyed out icons stays on when it should go out.
0
Last edited by mariocha on Sat Jan 14, 2012 3:32 am, edited 1 time in total.
Mario C.
Certified SketchUp Trainer, QC CA.
Every rule has exceptions, but some.
User avatar
mariocha 
Premium Member
Premium Member
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby driven » Sat Jan 14, 2012 3:30 am

Hi.
I don't think it's a Lion issue... per say

on the mac the MF_UNCHECKED MF_CHECKED just doesn't work to your advantage, and after a few wrong combinations, it stops switching the screen text, although console says it's working.

if you run it with RC open you can see that your better off re-clicking the currently selected first, to turn the shadow off, then changing. it's a drag, but SU enabled the native buttons behavior to latch and when it also coded to latch....

the mac native SU button code needs to be modified, then we can have buttons the toggles, like 'some' native SU ones that were set up correctly.

as a stop gap I changed the MF_CHECKED to MF_UNCHECKED, which sightly reduces confusion.
john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby mariocha » Sat Jan 14, 2012 3:39 am

Hum... in this case, we do not really need the current icon being greyed cause we can see witch is the current unit setting just by looking at the dimensions in the model.
The main drag is that some do not work. Maybe taking the "greying" part of the code out ? :?:
update; I deleted the "MF checked-MF unchecked" and "validation" parts and they now all work fine.
Now If I could find how to disable the greying out of the icons. :)
0
Last edited by mariocha on Sat Jan 14, 2012 4:21 am, edited 2 times in total.
Mario C.
Certified SketchUp Trainer, QC CA.
Every rule has exceptions, but some.
User avatar
mariocha 
Premium Member
Premium Member
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby driven » Sat Jan 14, 2012 3:52 am

no the native setting will still shadow the buttons as if selected, the light greying seems to work, until it/you gets confused,

it only works on unavailable options, so maybe the fractions/decimal triggering could be modified to make it more intuitive...

I just turned off Fractions and Arch and Use ENG in either metric or imperial, but with decimals only.

I understand fractions, but not the use of them.... although they should run faster with binary conversions....

john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby mariocha » Sat Jan 14, 2012 4:18 am

Oh ! you mean the shadowing of the buttons is within SU. :?
Oh well, then I can just re-click it to make the shadow go.
Here in Quebec, we are caught between 2 worlds so I have to use both Arch. and Met.
0
Mario C.
Certified SketchUp Trainer, QC CA.
Every rule has exceptions, but some.
User avatar
mariocha 
Premium Member
Premium Member
 

Re: [Plugin] Toggle Units v2.11 (20110915)

Postby driven » Sat Jan 14, 2012 4:37 am

hay,

I'm in England, 50% of the population think mm is the Mickey Mouse Club and the rest think a foot is on the end of their leg...

I work with both
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

cron

Who is online

Users browsing this forum: mennen, sonendra and 13 guests

Visit our sponsors: