🏒 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Odd Ruby Error

    6
    0 Votes
    6 Posts
    419 Views
    T
    Since you are getting it when right clicking on a axis, then the failing code is most assuredly a proc for displaying a right click context menu for a script. You can narrow your search down to any scripts you have that generate context menu selections.
  • Double rotations

    3
    0 Votes
    3 Posts
    526 Views
    chrisglasierC
    Fixed [flash=425,344:3qp1491i]http://www.youtube.com/v/TL8q17qSKrk[/flash:3qp1491i]
  • SU script / Ruby book for beginners

    8
    0 Votes
    8 Posts
    743 Views
    A
    @remus said: I had a quick look at the website, and the rd edition deals with ruby 1.9, perhaps SU uses 1.8? Exactly. Sketchup uses a real old Ruby (1.8.0). Most of the Ruby programmers use 1.8.6 (or 1.8.7) at the moment. Betwenn 1.8.6 and 1.8.7 they made some changes influenced by the development of 1.9.0 (and 1.9.1). But alos betwenn 1.8.7 and 1.9.0 (1.9.1) there are a lot changes. azuby
  • Coming Soon:Profile Builder

    97
    0 Votes
    97 Posts
    14k Views
    P
    It's released. http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=15538&p=120193#p120193
  • File dialog

    3
    0 Votes
    3 Posts
    362 Views
    thomthomT
    errh... The what what? ... ...can't believe I didn't notice those methods...
  • LOOP SELECTION PLUGIN?

    16
    0 Votes
    16 Posts
    3k Views
    Y
    Wow visit.
  • Looking for Extrude Line.rb

    2
    0 Votes
    2 Posts
    912 Views
    J
    Didier Bur posted his Extrude Line plugin here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=1523 (Thanks, Extension Index!)
  • Grouping a selection of component instances

    4
    0 Votes
    4 Posts
    252 Views
    chrisglasierC
    Yes the explode works as well. Thanks Chris
  • Create and move between muti cameras

    8
    0 Votes
    8 Posts
    649 Views
    J
    Thanks a lot Phil, Although i may try to write a flight path script myself. I am very interested in completing my study of the Ruby API, and things are coming along faster every day! I love this program!
  • Fxruby

    2
    0 Votes
    2 Posts
    720 Views
    J
    Hi and Welcome italian, Is this for a SketchUp extension? I didn't know you could use FxRuby for SketchUp dialogs. Why not use a WebDialog, or wxSU?
  • Ruby translator example

    2
    0 Votes
    2 Posts
    407 Views
    J
    I use Kerkythea, which happens to have a nice exporter (SU2KT). You can install the exporter (without needing Kerkythea) and then look at the code. Basically, it looks at all entities in your Sketchup model and exports them as an XML file. One challenge I see is that Sketchup entities are edges and faces. I would assume that you need volumes to perform the FE analysis. Once you are done with your analysis, to put elements back into SU, you might be able to use something like the Cloud V6 plugin, which represents data as x,y,z points. There is also an STL format but I am less familiar with it. Juan
  • Help on ICONS

    3
    0 Votes
    3 Posts
    343 Views
    M
    thanks a lot, a friend of mine did it for me yesterday.
  • Holding variables

    4
    0 Votes
    4 Posts
    222 Views
    J
    @azuby said: Use an instance variable. At the moment, your code should be in a class. Initialize your instance variable (i. e. @clicks - the @ is neeeded) in the initialize method of your class and use the variable in the code which is executed by clicking on your button. azuby Thanks, but this is too complex for me, I started studying Ruby yesterday, I'm still at "copy&modify&paste" level... This is my source: def MoveLeft model = Sketchup.active_model entities=model.active_entities sp=entities[1] plane=sp.get_plane pos += 1 plane=[Geom;;Point3d.new(pos,0,0),Geom;;Vector3d.new(1,0,0)] sp.set_plane plane end def MoveRight model = Sketchup.active_model entities=model.active_entities sp=entities[1] plane=sp.get_plane pos -= 1 plane=[Geom;;Point3d.new(pos,0,0),Geom;;Vector3d.new(1,0,0)] sp.set_plane plane end pos=0 toolbar = UI;;Toolbar.new "Sections" cmdSectionLeft = UI;;Command.new($tStrings.GetString("Test")) { MoveLeft } cmdSectionLeft.tooltip = $tStrings.GetString("Move section to left") cmdSectionLeft.status_bar_text = $tStrings.GetString("Move section to left") cmdSectionLeft.menu_text = $tStrings.GetString("Move left") toolbar = toolbar.add_item cmdSectionLeft cmdSectionRight = UI;;Command.new($tStrings.GetString("Test")) { MoveRight } cmdSectionRight.tooltip = $tStrings.GetString("Move section to Right") cmdSectionRight.status_bar_text = $tStrings.GetString("Move section to Right") cmdSectionRight.menu_text = $tStrings.GetString("Move Right") toolbar = toolbar.add_item cmdSectionRight toolbar.show How do I hold value for I among various button presses?
  • How do I save a screenshot?

    3
    0 Votes
    3 Posts
    523 Views
    J
    thanks a lot, I'll try it.
  • Any info about DCL_Technology for SU used in RPTOOLS

    3
    0 Votes
    3 Posts
    395 Views
    Al HartA
    @wikii said: Thank you very much for the info, AI! Is it possible to show me a little demo rb_file about how to use RpTools.dll to load a dcl file? Pardon me,if you feel my request is unreasonable,for I want to know more about it eagerly. I put some samples on the Render Plus Forum if you want to try some things out:
  • Scripts not working after Scrambler

    12
    0 Votes
    12 Posts
    722 Views
    A
    @unknownuser said: Ha, Ha, Happy New Year Oscar oscarlok.slepp 6.days azuby
  • SoapSkinBubble...need help.

    6
    0 Votes
    6 Posts
    2k Views
    C
    Hey....thanks guys. You were both very helpfull. Much appreciated. What a very cool tool! I hope I can post a creation soon. I've been using SU for about 3 years now but have really increase my knowledge and skills since I joined this great forum. The script writers have made this program the best! Hats off to everyone who posts with help and solutions. Merry Christmas everyone! Jeff
  • Rotate and point component

    4
    0 Votes
    4 Posts
    357 Views
    honoluludesktopH
    Thank you,
  • Need BOMB ALL plugin

    4
    0 Votes
    4 Posts
    2k Views
    H
    thanks
  • [HowTo] Make SendKeys (WIN32OLE) works "immediately" ?

    3
    0 Votes
    3 Posts
    829 Views
    M
    Just discovered I can Close components with "Sketchup.active_model.close_active" Thank you, but even with sleep(5) and bring the window to focus ... no success to trigger "Edit Component" shortcut ("Y"). p Sketchup.active_model.active_path s=WIN32OLE.new("WScript.Shell") p s.AppActivate("SketchUp") sleep(5) p s.SendKeys("y") sleep(5) p Sketchup.active_model.active_path

Advertisement