FredoBend | Powerful new bending tool for SketchUp Download

Alkategóriák

  • No decscription available

    20 Témakörök
    462 Hozzászólások
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • [Code] Ruby LOAD PATHs script (Win32) : ver 3.0.1

    19
    0 Szavazatok
    19 Hozzászólások
    16k Megtekintések
    Dan RathbunD
    @26delta said: This creates an interesting problem. The error was introduced by the Rayelectron package which works with a file named "win32api.so". Somehow, in all the confusion, my Win32API.so file got overwritten by win32api.so. The files are identical, but differently named. Obviously the problem was created by whomever in the "Rayelectron" project, decided it would be a good idea (NOT!) to create an extension with the same name as a standard Ruby library source object file. (Because most Operating Systems are case-aware, but case tolerant... the OS will treat the filename the same, no matter how a command or shortcut may have the text 'cased'.) BUT.. internally, the require method (for some reason...,) will only load a file if it matches casewise the part of function name following "Init_" I always wondered why the programmers did not just copy the function a few times and rename it, thus: // C function Init_Win32API(){ init(); } function Init_WIN32API(){ init(); } function Init_win32API(){ init(); } function Init_win32api(){ init(); } The only good thing from this is that a hacker/pirate cannot "steal" (violate copyright,) an so file by renaming it. ~
  • Ruby code to extract watermark

    15
    0 Szavazatok
    15 Hozzászólások
    3k Megtekintések
    A
    You can actually display watermarks. model = Sketchup.active_model opts = model.rendering_options opts['DisplayWatermarks'] = true/false Yep, there is no function to get/set watermark image, though there is actually a way around it. "Watermarks are part of a Style. You would have to have a preset Style with the watermark, and change the Style with the API." - quote by Dan. Create a style or two, add watermarks to each, and set them via Ruby API: styles = Sketchup.active_model.styles styles.selected_style = styles['Style Name'/style index#] Reference: Watermark via Ruby API
  • Hole plugin

    18
    0 Szavazatok
    18 Hozzászólások
    792 Megtekintések
    N
    ahahah AHAHAHAHAHA !!! Thank you thomthom !! It works great !!! Many many many .... (ctrl+C, ctrl+V) ... many thanks !!
  • Here's another mystery to me

    10
    0 Szavazatok
    10 Hozzászólások
    539 Megtekintések
    thomthomT
    @michaelv said: that seems to be the illogical logic of what is happening. Welcome to the world of SketchUp Ruby API scripting!
  • Given a x,y,z location to move a selected group help! solved

    4
    0 Szavazatok
    4 Hozzászólások
    306 Megtekintések
    dukejazzD
    Thank you, Sdmitch for your help History v1.1 May 27 -fix move iteration problems scaleGroupFloat_dj Ver 1.1 Copyright 2012, May 27 DukeJazz: James Cochran http://forums.sketchucation.com/viewtopic.php?f=323&t=45254&p=404860#p404860 My final form #sents ss =Sketchup.active_model.selection if ss.empty? then UI.messagebox ("Please Select. a goup.");return end sents = [];ss.each{|e|sents.push(e)} #_API____Geom::move! new_transformation entity_group=Sketchup.active_model.active_entities.add_group(sents) Geom::Transformation.new [x1,y1,z1] entity_group.move!(Geom::Transformation.new [x2,y2,z2]) entity_group.explode
  • Layer Names to Array

    13
    0 Szavazatok
    13 Hozzászólások
    644 Megtekintések
    K
    I use webconsole.rb Copyright (C) 2006 Jim Foltz and have not looked for updates. Keith
  • Detecting duplicate components

    7
    0 Szavazatok
    7 Hozzászólások
    345 Megtekintések
    Dan RathbunD
    @tim said: @dan rathbun said: Also if you have the DynamicComponents extension loaded, it adds some scaling methods to Group and ComponentInstance. Undocumented Geom::Transformation methods? ... If it is only added by an extension, I imagine I'd have to check that it exists and is active on the target system. if the DC extension is loaded, Then: ` defined?($dc_observers) >> global-variable defined?(DCObservers) >> constant` The keyword defined? returns nil (so evals false,) if the arg is undefined. And further if the DC extension is loaded: Geom::Transformation.method_defined?(:rotx) %(#008000)[>> true] %(#000000)[As well as:] roty rotz xscale yscale zscale Sketchup::ComponentInstance.method_defined?(:scaled_size) %(#008000)[>> true] %(#000000)[As well as:] local_transformation last_scaling_factors unscaled_size %(#000000)[(and one that only the DC extension should call:] set_last_size %(#000000)[)] .
  • Tricky Behavior project_to_line method

    7
    0 Szavazatok
    7 Hozzászólások
    383 Megtekintések
    Dan RathbunD
    We all know the API dictionary needs an overhaul. I will agree it should mention that an array for arg2 will be converted to a Geom::Vector3d
  • Yardoc for ruby api

    14
    0 Szavazatok
    14 Hozzászólások
    845 Megtekintések
    J
    Added some new methods that came in version 8.0 M2. https://github.com/jimfoltz/SketchUp-Ruby-API-Doc The new GitHub Windows client makes it very easy to contribute.
  • How 2 write a script 2 loop group names and move them

    2
    0 Szavazatok
    2 Hozzászólások
    154 Megtekintések
    D
    Hi Any tips and suggestions on how to do this are still welcome. However as many members are no doubt aware there is a great resource on writing scripts for Sketchup in the 13 Chapter 400+ pages on Automating Sketchup "by Matthew Scarpino at : http://www.autosketchup.com/downloads/Automatic_SketchUp.pdf This looks like it covers all of the things I set out in this post so here goes.
  • I get stuck with Pushpull

    2
    0 Szavazatok
    2 Hozzászólások
    295 Megtekintések
    J
    PushPull always extrudes a Face along the face's normal. If you notice after the first pushpull, the original face is reversed, so the subsequent pushpull extrudes in the opposite direction. You need to check the Face's normal and reverse the face before extruding, or just extrude in a negative direction.
  • Mesh additions typo?

    5
    0 Szavazatok
    5 Hozzászólások
    287 Megtekintések
    J
    @thomthom said: Where is mesh_additions.rb coming from? It's used by a few Google SketchUp scripts on this page.
  • Change tool onElementAdded

    6
    0 Szavazatok
    6 Hozzászólások
    203 Megtekintések
    thomthomT
    What version of SketchUp did you use? Note that the M3 fixed even more observer related crashes...
  • Last Lions Update

    14
    0 Szavazatok
    14 Hozzászólások
    780 Megtekintések
    A
    Hi Whaat, it's a compositing problem with text fields with default (=no) background color in a WebKit WebView (see Peter Saal's link to StackOverflow, and there the chances for a fix by Apple or SketchUp): http://forums.sketchucation.com/viewtopic.php?f=11&t=45382#p406422 It has been suggested there that you could work-around it by forcing a %(#000000)[input[type=text]{background-color: white}], but many haven't succeded with this solution.
  • Using round() in a SketchUp plugin

    10
    0 Szavazatok
    10 Hozzászólások
    714 Megtekintések
    S
    @dan rathbun said: No the round() function actually rounds.. the to_i() function actually truncates. Use the "meat" of TIG's example in a single statement .. or write methods into your module thus... Good point! I hadn't considered that my method just truncates. I'll have to see if I can figure out a simple way to incorporate TIG's example into one statement; a lot of that code goes right over my head! Thanks for the help!
  • Resetting bounding box to match world axis

    12
    0 Szavazatok
    12 Hozzászólások
    5k Megtekintések
    N
    Interesting topic, This this knowledge end up in a plug-in? I'm looking for a way to reset the bounding boxes of 'rotate multiple' components
  • Linux Windows API?

    3
    0 Szavazatok
    3 Hozzászólások
    139 Megtekintések
    A
    @anton_s said: Does linux use and support windows API? It wouldn't be Linux itself, but there is an optional compatibility layer "Wine" that would theoretically run Windows programs on top of any Unix(Linux/BSD/Mac) exactlythe same way like on Windows (but the developers need to do reverse-engineering and it won't ever be complete) I have not yet seen the Win32:API in SketchUp/Wine working. I had to hack it out of some scripts that don't have fallbacks. I wish it will work soon because I liked to use window settings to substitute the classic menu.
  • Adding pitch yaw and roll to xyz of a location

    10
    0 Szavazatok
    10 Hozzászólások
    2k Megtekintések
    Dan RathbunD
    @dan rathbun said: I thot Martin Rinehart did this with a biplane model ?? You can see how Martin did things through this search of his posts: http://forums.sketchucation.com/search.php?st=0&sk=t&sd=d&sr=posts&author_id=25586 then search within those results for "biplane"
  • SketchUp API Wish List

    22
    0 Szavazatok
    22 Hozzászólások
    4k Megtekintések
    aadbuildA
    Sorry about that I was not thinking. There are many improvements that would be fanatastic if were added. Has there been any thing mentioned that we will still be able to access the back end of Sketchup? Or do we have to become some sort of partner with Trimble and only a select few will have access? No point in asking for more access when there is a possibility we will have less. It would be greatto get a comment from the powers to be
  • Ruby String Encoding

    5
    0 Szavazatok
    5 Hozzászólások
    1k Megtekintések
    Dan RathbunD
    Looks a good place to pass on a nice link on String Encoding (that was posted to the ruby-talk-google.) http://blog.grayproductions.net/categories/character_encodings

Advertisement