[REQ] Mix plugins to make windows better
-
What could be useful is if there was a generic lib for a series of GET functions (getPt, getPts, GetAngle (with protractor), getDistance, getpath etc.) that could be used by all developers in a consistent way to return select input to functions and dialogs.
-
I trying to do make myself what I want for this situation, and Sketchup has show me crazy behavior. When I write, for exemplo, 2 * 200, sketchup does not show me 400 as result, but 508. I think Sketchup thinks "2" is inches, not units. What is happening?
-
Sketchup's internal units are inches. Always. But
2 * 200.mm
-
You seem to use a lot of global variables? Any reason for that? could potentially cause conflict.
But globals aside:
Sketchup uses inches internally. It assumes that all numbers given is in inches.
If you type
200- then SU assumes 200 inches. If you want it to be in mm - then you must type200.mm
Thenumericclass has several methods to convert to and from different units: http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/numeric.htmlWhen you type 200.mm - then you get a variable of the
Lengthclass: http://code.google.com/intl/nb/apis/sketchup/docs/ourdoc/length.html` x = 200.mm
7.8740157480315x.to_mm
200.0`So you must ensure that at any point, all variables that refer to a measurement unit - that it's made into a
Lengthclass so that the unit is represented in SU in inches. -
-
-
Thank you for the answer
If I have :
$larguraVIDRO = ($larguraJANELA - (( 2 * $larguraFORRA) + ( 2 * $afastaFOLHAS) + ( $larPERFIL * ( $numePORTAS - 1 )))) / $numePORTAS
UI.messagebox $larguraVIDRO
what means:wglass = (200 - (( 2 * 4) + ( 2 * 0,5) + ( 3 * ( 3 - 1 )))) / 3
wglass = (200 - ((8) + ( 1) + (6)) / 3
wglass = 61,6666 >>>> this is result that I want, but the Script show me 24.75....How can I correct this expression so that it presents me the correct result?
Thanks anyway...
-
hi. thanks for your plugins.
But the first two tools do not work.
could repair it?Error: #<NameError: uninitialized constant WindowTools::Jaluminio>
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:24
Error: #<NameError: uninitialized constant WindowTools::FOLHAALUMINIO>
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:31
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:24:in `call'
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:24 -
@diego-rodriguez said:
hi. thanks for your plugins.
But the first two tools do not work.
could repair it?Error: #<NameError: uninitialized constant WindowTools::Jaluminio>
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:24
Error: #<NameError: uninitialized constant WindowTools::FOLHAALUMINIO>
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:31
C:/Archivos de programa/Google/**Google SketchUp 6/**Plugins/WindowTools.rb:24:in `call'
C:/Archivos de programa/Google/Google SketchUp 6/Plugins/WindowTools.rb:24Is the very first two tools that I have made. Is strange this situation, because this is working fine for me, but I have Sketchup 7.1, and seems that you have the same version that me. Have you extract de zip file in the right place?
I don't understand nothing about RUBY, and yet, I make this improvements... -
if. is right.
in sketchup 7.1 Functions well.
I had only tested on sketchup 6.
thanks for answering
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement