⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
  • Problems saving user preferences

    8
    0 Votes
    8 Posts
    459 Views
    honoluludesktopH
    Wow, Sketchup.read_default and Sketchup.write_default were easy to implement. Attaching the defaults to individual models can also be advantageous, and I will have to think about the best way to save user defaults. Thanks guys. a_values=[] s_value="" s_value = Sketchup.read_default "honoluludesktop","values","None:Inches:Model:to Faces:by Number" a_values = s_value.split(":") . . results = inputbox prompts,a_values,enums,my_file_name+" Options" . . a_values = ["None",scale_sel,origin_sel,dface_sel,material_sel] s_value = a_values.join(":") result = Sketchup.write_default "honoluludesktop","values",s_value
  • Face loop vertex order?

    15
    0 Votes
    15 Posts
    2k Views
    honoluludesktopH
    TIG, As you suggest, I will work on this and post what I find. Thanks.
  • Transformation in scale

    6
    0 Votes
    6 Posts
    372 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
    398 Views
    thomthomT
    http://forums.sketchucation.com/viewtopic.php?f=180&t=30000
  • ACad Colors 2 RGB

    8
    0 Votes
    8 Posts
    538 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
    343 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
    345 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
    277 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
    316 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
    332 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
    497 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
    487 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
    300 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.

Advertisement