🤑 30% Off | Artisan 2 on sale until April 30th Buy Now
  • Programming cartoon

    17 Sept 2008, 13:40
    0 Votes
    2 Posts
    399 Views
    Yeah Was it like this today for you ?
  • 0 Votes
    7 Posts
    480 Views
    I know this does not answer the question about downloading the API, but it does address david's comment about updates. The Groups Documentation is updated by Todd and myself as we get time and feedback. AFAIK, it is now more accurate than the standard online API documents accessed via the Sketchup Help>Ruby Help link.
  • 0 Votes
    2 Posts
    562 Views
    Hi, I think what you after is already available. Its called Flightpath2. You have to pay (a small price) for it. Visit: http://www.smustard.com/script/FlightPath2 Regards Mr S
  • Ruby Challenge!

    28 Nov 2007, 23:45
    0 Votes
    26 Posts
    3k Views
    yeah i already knew that one. But thanx anyway, did you already found different solution
  • Keycodes intelmac

    13 Sept 2008, 21:59
    0 Votes
    3 Posts
    473 Views
    Thanx Jim... i had some other solutions but they give me different codes back. By know i found that thecodes are the same as on the powerpc-darwin OS. I think ineed to work on this part"elsif RUBY_PLATFORM == "powerpc-darwin" then" I think on my imac it passes this on cause i have intel duo core... So if you happen to know the code for this part
  • Add entity to a group

    15 Sept 2008, 12:57
    0 Votes
    10 Posts
    630 Views
    This is the documentation page I use - it's the most up-to-date: http://groups.google.com/group/SketchUp-Plugins-Dev/web/Ruby-classes.html Todd and Rick get all the credit for updating the docs - it's a thankless chore, no doubt. I wish there was a way to see what changes have been made to the documentation. I've asked that document updates be logged for us, but maybe I'm asking too much.
  • Shortcuts and keys in rubys collide

    14 Sept 2008, 19:30
    0 Votes
    9 Posts
    540 Views
    You could capture keystrokes in a modal webDialog - this will override any SU keyboard shortcuts - but beware irritating users who are used to using a shortcut for "select" that effectively cancels any active tool. Either query the shortcut list for the "select" shortcut and use it to cancel your modal webDialog, or create a really obvious "cancel" button or key.
  • Render dimensions

    14 Sept 2008, 08:00
    0 Votes
    4 Posts
    463 Views
    Dave, Thanks for the tip, I will try it! I would have never thought solution like this.
  • Developing a specific if statement ?

    15 Sept 2008, 02:36
    0 Votes
    2 Posts
    234 Views
    x,y,z = $Vec1.to_a if (-y && x>0) ... do your code end also try not to use global variables (see this discussion)
  • Sketchup web exporter.

    14 Sept 2008, 03:26
    0 Votes
    2 Posts
    364 Views
    I'd welcome this as well. I've developed my own manual work-around to essentially create my own images and substitute them for the ones created by the Sketchup web-exporter. Once you generate one web export say for 36 images you can re-use the html code multiple times and simply replace the images with those that you create on your own. see my post here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=10855
  • How do Install SketchUp Ruby API ?

    12 Sept 2008, 16:04
    0 Votes
    3 Posts
    337 Views
    Thanks you for your suggestion moris , now I have found the right way
  • 0 Votes
    3 Posts
    785 Views
    @jim said: Here's one test.. > if( ($etthick != 0) and ($etwidth != 0) ) > # Both are not zero > # Your code here > end > Thanks: Jim for jumping to the rescue! I will re post this Ruby with your added code, since some members may not know how to cut and paste code snippets into Ruby files. WindowGlassFrame.rb
  • Volume Calculator v2...

    16 Aug 2022, 17:00
    0 Votes
    21 Posts
    5k Views
    This is just to show that TIG's V1.8 works well with quite complex shapes (I have posted this before, but what the heck!). The below images show the volume slices for a 1% accuracy volume calculation, which took many minutes to complete. Regards, Bob [image: WaAa_VOLUMEMODEL-VIEW1.jpg] [image: N7Q6_VOLUMEMODEL-VIEW2.jpg] [image: QhGo_VOLUMEMODEL-VIEW3.jpg]
  • Which ruby...?

    12 Sept 2008, 15:23
    0 Votes
    6 Posts
    335 Views
    Got it Todd, thanks for the help...and thanks a bunch for the script, worked like a charm!
  • A request to TBD and/or Didier Bur

    6 Sept 2008, 15:41
    0 Votes
    12 Posts
    1k Views
    Wow, matrix seems to be a fantastic script. Never heard about it before . And thanks @TBD for cheating this useful randor script. Implementing an option would be a help indeed .
  • 0 Votes
    9 Posts
    2k Views
    Thank you very much!!
  • 0 Votes
    6 Posts
    875 Views
    Dear Didier, I cannot seem to get Option 4 to work (drawing a line perpendicular to a face through a point). It draws a temporary line through the centroid, but it won't let me select a point of enter a length. Your perp_line_plane.rb works just fine, and I assumed you had integrated that script into the new collection (hence the 13th icon). Ah, that's it! The 13th Icon!. I like the way your perp_line_plane.rb works: select surface/face and cpoint (on face), then select 'Line perpendicular to face' from Plugins. Enter length in dialogue box and 'bingo', the line is drawn. Beautiful! Kind regards, Bob
  • How Many Observers?

    17 Mar 2008, 21:37
    0 Votes
    9 Posts
    1k Views
    I'm getting back to thinking about a single AppObserver that everyone can (hopefully) agree on and use. I want to focus on how to use this observer over how it is implemented, i.e. its interface. In that vein, what about a simple interface as follows? require 'sketchup' require 'sk/app_observer' module SelectToolAtStartup def self.selectSelectTool Sketchup.send_action "selectSelectionTool;" end end Sk;;AppObserver.instance.register(;onNewModel) { SelectToolAtStartup.selectSelectTool } Sk;;AppObserver.instance.register(;onOpenModel) { Sketchup.send_action "selectSelectionTool;" } There would be one and only one AppObserver. The Observer transparently attaches itself when a method is registered, and removes itself when all methods have been unregistered. So any plugin which needs an AppObserver only need require it, and register a method. This same type of interface could be used for all the other "single instance" observers available in SketchUp. I'd like to go ahead and code them all up so plugin devs can start using observers, instead of everyone implementing them individually. I think a library of standard observers would greatly enhance a lot of current plugins, and make writing new plugins with advanced features easier and quicker. But being an amateur, I'd like to hear from more experienced devs on the matter.
  • Wx::DateTime:Class

    9 Sept 2008, 15:02
    0 Votes
    8 Posts
    605 Views
    WX probably refers to the WxWidgets namespace. A GUI Toolkit like FoxGUI. I can't really see anything. What type of computer is the client running on?
  • 0 Votes
    3 Posts
    653 Views
    Thanks for your fast answer Jim. For what I've seen most of the plugins do generate a direct menu access. I'll modify the code the ones I use who don't. Thanks again for your excellent toolbar plugin

Advertisement