πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • Transformation in scale

    6
    0 Votes
    6 Posts
    365 Views
    honoluludesktopH
    tt, and cf, Thanks. Got it to work as follows: my_definition.entities.transform_entities(t,my_definition.entities.to_a) Off and on for 4 days, this has got to be the longest time I've spent getting a single line of code right. Hopefully I'm getting better.
  • Launching Google Sketchup from external application

    2
    0 Votes
    2 Posts
    390 Views
    thomthomT
    http://forums.sketchucation.com/viewtopic.php?f=180&t=30000
  • ACad Colors 2 RGB

    8
    0 Votes
    8 Posts
    524 Views
    honoluludesktopH
    I unzipped a skm to see what it contained. If I learn enough, maybe working with skm's is something I can attempt to tackle a year from now?-)
  • Extract Zip files via SU Ruby?

    5
    0 Votes
    5 Posts
    331 Views
    tbdT
    I think it can be ported on OSX as zlib (library that I used in dezip) is available on OSX as well.
  • Confused about using gems...

    3
    0 Votes
    3 Posts
    328 Views
    Chris FullmerC
    SketchUp runs its own version of Ruby. That is why it is reporting 1.8.6.
  • Model.raytest and Entity visibillity

    28
    0 Votes
    28 Posts
    2k Views
    Al HartA
    @thomthom said: Right, so the raytest should have an argument to ignore hidden. And, hopefully, they will make it an optional argument, so they don't break all the existing ruby files once again.
  • Mac Plugins in home folder

    3
    0 Votes
    3 Posts
    259 Views
    thomthomT
    The holy grail would be if people just followed the instructions of the API docs...
  • Commit_operation bug

    28
    0 Votes
    28 Posts
    1k Views
    Dan RathbunD
    Manuela, Add into your onQuit method, statements that detach your plugin's observers, then dispose of the observer instances by setting them to nil, and then call GC.start (Garbage Collection.) See if that prevents the BugSplat!s when SU closes.
  • Collada round tripping

    3
    0 Votes
    3 Posts
    295 Views
    T
    As Collada is XML there is no reason why they should not be able to parse block and group hierarchies on import. As said Sketchup exports the hierarchies OK but cant do a 'round trip' and import the geometry in the same state. I think your comment refers to the Autodesk kit for DWG/DXF. I'm under the impression Sketchup uses libraries provided by the Open Design Alliance.
  • Removing the group after group.to_component

    7
    0 Votes
    7 Posts
    316 Views
    honoluludesktopH
    Right again: my_instance = @master_group.to_component my_definition = my_instance.definition my_definition.name = my_file_name my_instance.erase! repeat = false model.place_component my_definition, repeat Can I just say that I must have been sleep deprived.
  • Win32 output debugging

    9
    0 Votes
    9 Posts
    3k Views
    J
    Here's what I came up with. Just make sure it is alphabetically the first file in Plugins in order to capture the earliest output. require 'Win32API' class CL_rps_console < Sketchup;;Console OutputDebugString = Win32API.new("kernel32.dll", "OutputDebugString", ['P'], 'V') def write(smess="\0") smess = smess.to_s + "\0" OutputDebugString.call(smess) end end # redefine standard output to our new class $old_stdout = $stdout # in case you want to turn off traces $stdout = CL_rps_console.new $stderr = $stdout puts "-" * 40 puts Time.now puts "Starting SketchUp" puts "-" * 40
  • MAXWELL plugin Authors?

    23
    0 Votes
    23 Posts
    1k Views
    thomthomT
    @jd hill said: And thanks for the idea of using a Definition; that's perfect. Mind you - if you don't use abort_operation you'll end up making lots of temp definitions cluttering up the In Model definition list.
  • Interface for plugins.

    38
    0 Votes
    38 Posts
    3k Views
    Chris FullmerC
    @unknownuser said: I have done HTML+JS+CSS+DBS+FTE+HTE+KLM Seriously, in what world are web dialogs a good option for UI. Please Google include a simple UI into the API...
  • OnRButtonUp broken?

    6
    0 Votes
    6 Posts
    482 Views
    thomthomT
    So both events are busted. And when they fix it..?
  • [Tool] Pencil - UI prototyping / sketching

    4
    0 Votes
    4 Posts
    1k Views
    J
    Still useful and cool, thanks for the link. You must have found Glade when searching for a UI designer - it supports quite a few language bindings. Even JavaScript, which I found interesting. Does that mean you can write desktop apps in JavaScript using gtk widgets?
  • Example of Compiled Extension with SWIG and CMake

    11
    0 Votes
    11 Posts
    4k Views
    K
    Hi, has anyone tried this on Mac OSX (10.6)? For SWIG I did the standard: ./configure, make, make install. but when i try to CMake your examples above i get this: swig error : Unrecognized option -initname swig error : Unrecognized option Example for -initname "Example" in CMakeList.txt also if i remove that it doesn't get better. I tried SWIG versions 2.0.0 and 1.3.40 with no luck, and I have ruby 1.8.7 (so should be no problems here...). Please help, Thank you.
  • How to reverse edge

    4
    0 Votes
    4 Posts
    478 Views
    thomthomT
    You want a sorting routine for connected edges? I got one on disk at home - but I'm currently in Germany on a field trip...
  • OnUserText

    4
    0 Votes
    4 Posts
    286 Views
    thomthomT
    @spring.freediver said: It is odd that my other tools worked without it. hm..? Are you sure you haven't got that method in your other tools? I've never seen it possible without this method.
  • Cannot launch SU from hta [Now can]

    17
    0 Votes
    17 Posts
    1k Views
    chrisglasierC
    Also found this written by the same guy specifically for hta's. I just wrote the input into my code so there is no need for any pop up window. Maybe useful for others ... [image: EcFT_2010-10-07_1820.png]
  • Ruby File Auto-Reloader code

    3
    0 Votes
    3 Posts
    1k Views
    J
    I'm glad you found it useful. But there are times when it is good to close SketchUp; when you change the name of a method, for example. Closing SketchUp is the only way to get rid of the old method name. Sometimes you have a bug where a part of your code is still using the old method name until you remember you changed it. I've done this numerous times.

Advertisement