🏒 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • How do you catch "Make Unique"?

    3
    0 Votes
    3 Posts
    183 Views
    thomthomT
    The onContentsModified event is broken...
  • Removing observers

    4
    0 Votes
    4 Posts
    187 Views
    thomthomT
    Ok. Found the problem. I was using model.active_path to cache the last path. When the last path was the model itself it'd return an empty array.
  • Selection Tool that works like the Eraser?

    13
    0 Votes
    13 Posts
    849 Views
    fredo6F
    @aceshigh said: well, I am certainly getting depressed for the lack of the plugin Maybe this could help you to fill 'un-depressed' (and therefore 'pressed') http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=18916#p155058 Fredo
  • HELP with COMPONENTS LIST

    9
    0 Votes
    9 Posts
    273 Views
    TIGT
    NO. Use Plugins >> Component Report++++
  • Help with hyperlinks

    10
    0 Votes
    10 Posts
    9k Views
    H
    Adam, Thanks for the script. I wasn't aware of Sketchup.open_file(url). Does it open a new instance or does it replace the open file?
  • Ruby on MAC

    2
    0 Votes
    2 Posts
    162 Views
    jeff hammondJ
    Macintosh HD/Library/Application Support/Google SketchUp 7/SketchUp/plugins
  • Add DC-Attribut to group not show up

    4
    0 Votes
    4 Posts
    205 Views
    TIGT
    Unfortunately, as you say, a group is not a component ! The group.make_unique is 'deprecated' BUT it works till it's fixed by Google... Why don't you make the group into a component, THEN you can probably use it as desired - inst=group.to_component - returns its instance OR defn=group.to_component.definition - returns its definition if you want to add to that... OR instn=defn.instances[0]to return what you just 'componentified' from the group...
  • How to launch applications on Mac with Ruby?

    10
    0 Votes
    10 Posts
    461 Views
    TIGT
    Works fine on my PC with Vista. Opens an app (.exe) or a file with it's assigned app... Puzzling...
  • Group components from array

    13
    0 Votes
    13 Posts
    533 Views
    H
    @unknownuser said: Ruby is kind of cool in that you can increment Strings. Thanks Jim for the tip. In this case I can not use it, since my block-numbering-steps comes from the imported autocad-blocknames. But maybe it gets usefull in the future. @unknownuser said: Do whatever works for you best... Thanks again TIG. Hans-Peter
  • Turn component into non-editable DC

    2
    0 Votes
    2 Posts
    185 Views
    H
    The sample 'Make Sang Red' from here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=17888&p=145120&hilit=Make+Sang+Red#p145120 might help: # Add a new configurable option to Sang. # (Any attribute that starts with an underscore # is a "meta attribute" that describes behavior.) sang_def.set_attribute 'dynamic_attributes', 'weight', '145' sang_def.set_attribute 'dynamic_attributes', '_weight_label', 'weight' sang_def.set_attribute 'dynamic_attributes', '_weight_formlabel', 'My Weight' sang_def.set_attribute 'dynamic_attributes', '_weight_units', 'STRING' sang_def.set_attribute 'dynamic_attributes', '_weight_access', 'TEXTBOX' Not sure if this would enough to make a normal component into a DC! Will try.
  • ToolTip and help line ?

    16
    0 Votes
    16 Posts
    511 Views
    pilouP
    Oh! Deception So translator must be very brief
  • Call to Mac users for script portability

    101
    0 Votes
    101 Posts
    5k Views
    D
    Fredo, did the pic come?? i'll re-attach. freeScale. bottom box after TopMenu your delightful scripts, when I can download them (a problem with this site), and get them in the right place (my fault) are fantastic to use on the Mac, my comment was more about if any of the earlier ones had been absorbed into FreeScale or Pushpull, or outdated by SU7, etc.. then I will not try to find them now. cheers john [image: oPgQ_monpm2.jpg]
  • A weld or inside fillet ruby?

    9
    0 Votes
    9 Posts
    1k Views
    C
    Too funny....your quick Chris. When I have a minute....which might be awhile, I'll put together a little Photoshop idea of the dialog box. It might help. And I can't believe your not a math whizzzz. I was checking out your Ruby writing tutorial. Can't wait to try it. You've made it look really user friendly. Have a great day! Jeff
  • AUTO-CUT faces / objects - ruby request

    7
    0 Votes
    7 Posts
    501 Views
    R
    pret auto How wonderful feedback!
  • How to draw a limit surface from array ?

    8
    0 Votes
    8 Posts
    506 Views
    TIGT
    I assume the grid is regular ? Parse the array into sub-sets of the same Z value. Starting with the highest Z-set, find the max and min X and Ys in the set. Test each point in an X column comparing to max Y and min Y. Add these to a points array. Test each point in a Y row comparing to max X and min X. Add these to the points array. Check to see that these points could form a face - if not do next lowest Z set... Do next lowest Z set the same way... this time the face2 could also have an inner loop formed from face1 - add this points set into the array IF you want the 'hole'... Do the next lowest Z set etc, face3 could have an inner loop formed by face2 outer loop etc... Now we have a set of points that would form faces [facepts1.facepts2,facepts3,..] each with a perimeter that match the points Z height. Assuming you want to move each face independently then make facegroup for each face - add_face(points) - and move it up in the Z. In the group erase any face with only one outer loop IF it's NOT face1 - this forms the donut for face2/3/4 etc. If you want a face without a hole simply don't add the inner loop's points as above... You can explode the groups if desired once the faces are placed. Co-linear points that won't face, re-entrant loops and multiple holes etc might prove difficult ? If the points are not 'gridded' a similar principle applies but you might want to [re]consider how pairs of max/min points are found...
  • Sketchup.active_model.entities.is_a?????

    7
    0 Votes
    7 Posts
    947 Views
    J
    @al hart said: Entities is a Class internal to SketchUp which acts like an array. You can convert it to an actual array with the .to_a operator. But it is a lot more than that. The Array behavior is secondary to its primary purpose of adding and containing a Model's visual elements.
  • Getting rdebug-ide working with SU Ruby

    2
    0 Votes
    2 Posts
    951 Views
    P
    @billbell52 said: I am on this quest to get Netbeans IDE working with SU Ruby. The development version of Netbeans has a capability to attach a debugger to a Ruby process. ... From a quick reading, it looks like this is an ide to attach to a Ruby script run from the command line. SketchUp, however, runs scripts from an embedded version of Ruby. Not the command line. So there's no port or process to attach to. Secondly, running the rudebug-ide would not give you access to the SketchUp Ruby extensions embedded inside SketchUp. Eg., If you issue a UI.messagebox() call (or any SketchUp call) from your script loaded by rdebug-ide, it'll just get an "unknown method" error. Third, the SketchUp Console is in control of all Standard in, out, and err I/O streams. Ruby-ide will have to redirect the SketchUp Console I/O to itself, then restore them when it's finished. For MS windows, an alternative might be: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=18130 SketchUcation Community Forums β€’ View topic - [plugin] SuRDebug
  • Is there a plugin to undo a push/pull?

    3
    0 Votes
    3 Posts
    544 Views
    R
    You can do it pretty quickly by just doing a right to left selection across the top of the push pulled object and hitting delete
  • "Repaint.rb" gone? Anything similar?

    8
    0 Votes
    8 Posts
    525 Views
    McGyverM
    Hi there, sorry to take so long to respond. I got busy and was away from the computer for a fews days. thanks for the response RickW and Chris Fullmer. I used repaint to replace one texture(the pinkish marble in the picture) in a very large model and it worked. I really have to go shopping at Smustard soon there are so many cool scripts there! [image: jsBW_RENDER4.jpg]
  • Follow this - crash

    6
    0 Votes
    6 Posts
    398 Views
    EscapeArtistE
    @unknownuser said: oh man... life can be so easy. i was blind for years. Oh man, make that X 2. Thank you for the explanation, I can now look back on many wasted hours.

Advertisement