FredoBend | Powerful new bending tool for SketchUp Download

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Evaluate expression as input to input form

    11
    0 Votes
    11 Posts
    2k Views
    thomthomT
    @ktkoh said: The problem was that some entries were interpreted as strings. UI.inputbox returns values in the same class as you feed the defaults. So if you feed it Lengths it returns lengths.
  • [Code Snippets]

    4
    0 Votes
    4 Posts
    43k Views
    Dan RathbunD
    (No longer Maintained due to lack of donations.) Platform Issues / Differences / Specifics Platform Differences Bugs / Issues When do Tools.active_tool_id return 0 ? GUI UI.show_model_info() w/ no args X-Mouse Window Focus for Mac OSX ?? Misc. Help with Mac compatibility? Ruby [FAQ] Detect if plugin is running on the Mac vs PC ? Ruby (versions) Sketchup.send_action arguments: Mac vs PC WebDialog WebDialog - hide scrollbars WebDialog (resizing windows) WebDialogs - The Lost Manual — R1 2009NOV09 WebDialog set_file WebDialog.set_html() Gotchas Webdialogs and Javascript void [FIXED!!!] Anyone seen this web dialog bug? System / OS [Code] Sketchup Safe Shutdown method [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=24327:1a2mqsys]onKeyDown repeat parameter problem[/url:1a2mqsys] Mac / OSX Specific Bugs / Issues [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=35959:1a2mqsys]SU 8 Mac & strange content[/url:1a2mqsys] (memory leak?) GUI [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=33888:1a2mqsys]Mac Toolbars Editable?[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=34002:1a2mqsys]My Apple Keyboard VK_KEYS[/url:1a2mqsys] Misc. Ruby [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=34219:1a2mqsys]Ruby Version for Sketchup 8.0 M1 on Mac ??[/url:1a2mqsys] WebDialog [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=30127:1a2mqsys]JS loading problem under Mac OS X SU[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=29751:1a2mqsys]PC v MAC webdialog populate[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=26927:1a2mqsys]Sketchup use of WebKit[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=32415:1a2mqsys]Webdialog position not preserved across session on MAC[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=25865:1a2mqsys]WebDialogs are caching and not refreshing images[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=39842:1a2mqsys]WebDialog.set_html fails under Safari 5.0.6[/url:1a2mqsys] System / OS [url=http://forums.sketchucation.com/viewtopic.php?f=15%26amp;t=29330:1a2mqsys]Auto-running a Mac '.command' File from Sketchup?[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=30314:1a2mqsys]"Mac32API.so" ?[/url:1a2mqsys] PC / Win Specific Bugs / Issues Files [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=43007:1a2mqsys][Code] PCFileTools[/url:1a2mqsys] - Support UTF8 (TIG) GUI [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=29970:1a2mqsys]Windows: Moving Floating Toolbars[/url:1a2mqsys] Misc. Ruby [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=16574:1a2mqsys]Win32API vs DL lib[/url:1a2mqsys] WebDialog [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=27594:1a2mqsys]Web dialog browser version[/url:1a2mqsys] System / OS [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=36772:1a2mqsys]Determine OS bit version with ruby[/url:1a2mqsys] [url=http://forums.sketchucation.com/viewtopic.php?f=180%26amp;t=18488:1a2mqsys]Sketchup registry key ?[/url:1a2mqsys] (No longer Maintained due to lack of donations.) COMMUNITY CONTENT Moderators may edit post / add links at will.
  • Input and Output files in Ruby

    4
    0 Votes
    4 Posts
    453 Views
    J
    Just another thought (while browsing around the forums..) depth = width = length = nil File.open("My Documents\\slabout.text") { |fp| depth, width, length = fp.gets, fp.gets, fp.gets }
  • Deleting a layer

    3
    0 Votes
    3 Posts
    1k Views
    Dan RathbunD
    The erase!() method is defined in class Sketchup::Drawingelement Sketchup::Layer is a subclass of Sketchup::Entity, NOT a subclass of Sketchup::Drawingelement, so it does not inherit a erase!() method. You will need to move all entities off of the layer, then use Layers.purge_unused() BTW.. Layers is a C++ collection, not a Ruby Array.
  • Writing a C extension

    3
    0 Votes
    3 Posts
    335 Views
    Dan RathbunD
    @ishboo said: Nobody have experience with this? We have discussed this in previous topics... ... we currently have an active topic going on C/C++ Plugins: Plugin DLL Other threads on this issue: Getting Started with C++ and Sketchup Ruby extension module using C/C++ (mostly about using SWIG) Example of Compiled Extension with SWIG and CMake Ruby C++ extension crashes SketchUp Re: Optimization Tips (discussing Ruby vs C speed) Programming in C, C++ for Mac and Windows? Are Swig generated Ruby bindings compatible with Sketchup? Examples: TBD's SUExt extension example
  • Does Sketchup has a threading mechanism

    3
    0 Votes
    3 Posts
    409 Views
    Dan RathbunD
    You could also try to see if using the UI.start_timer block method works for you. This with execute the block immediately, and not repeat: UI.start_timer(0.0,false) { my_calc_method() }
  • Browserscope

    2
    0 Votes
    2 Posts
    331 Views
    thomthomT
  • Transformation Newbie...

    4
    0 Votes
    4 Posts
    440 Views
    thomthomT
    InputPoint.transformation http://code.google.com/intl/no/apis/sketchup/docs/ourdoc/inputpoint.html#transformation Gives you the transformation for the input point. Will probably be useful to you for converting between local and model co-ordinates.
  • 000

    4
    0 Votes
    4 Posts
    409 Views
    H
    I just test your plugin
  • Layer0 questions

    5
    0 Votes
    5 Posts
    4k Views
    TIGT
    layer=model.add("Layer0") does return a reference to a layer in any locale - including EN. It is the same layer as model.active_layer=nil Setting the active layer to nil and getting its name is the foolproof way of finding the default-layer's name in that locale. If you are sure that layers[0] is always the default layer then using that should work too. Then to process all layers except the default-layer you can use model.layers.to_a[1..-1].each{|layer|###do process###} as it misses off the first one...
  • Detecting Ctrl-[Move || Rotate]

    4
    0 Votes
    4 Posts
    350 Views
    P
    Awesome, thats exactly what i needed! Have a great sunday!
  • Module, Class, attr_accessor help?

    4
    0 Votes
    4 Posts
    359 Views
    D
    I do it that way all the time.
  • Ruby & sectionplane

    3
    0 Votes
    3 Posts
    375 Views
    P
    Thanks for the immediate reply.
  • Other dynamic component platforms

    4
    0 Votes
    4 Posts
    330 Views
    Dan RathbunD
    Microsoft Visio (costs,) or the free open-source clone OpenDraw (part of OpenOffice.) http://www.openoffice.org/ You may wish to try out DoubleCAD XT it's a free AutoCAD LT clone from IMSI. http://www.doublecad.com/
  • Deleting an observer

    3
    0 Votes
    3 Posts
    419 Views
    Dan RathbunD
    You should always be running your code within your OWN namespace, so using a global variable is NEVER needed. I use @@ module vars to hold references to observers. YES you can write a method within your observer class that can remove itself. I do this sometimes, and it is really just a wrapper for the remove_observer() method. This example assumes your using your Observer in a Singleton manner: class MySelectionObs < Sketchup;;SelectionObserver @@watched = [] def attach(selection) raise(TypeError,"argument is not a Sketchup;;Selection object.") unless selection.class==(Sketchup;;Selection) if selection.class==(Sketchup;;Selection) && (not self.watching?(selection)) selection.add_observer(self) @@watched << selection end end def dettach(selection) raise(TypeError,"argument is not a Sketchup;;Selection object.") unless selection.class==(Sketchup;;Selection) if selection.class==(Sketchup;;Selection) && self.watching?(selection) selection.remover_observer(self) @@watched.delete(selection) end end def verify_watchlist() unless @@watched.empty? @@watched.delete_if {|e| e.class != Sketchup;;Selection } @@watched.delete_if {|e| !e.model.valid? } end end def watching() verify_watchlist() return @@watched.dup end def watching?(selection) raise(TypeError,"argument is not a Sketchup;;Selection object.") unless selection.class==(Sketchup;;Selection) verify_watchlist() return @@watched.include?(selection) end ### define your other callback methods ### end # class ONE BIG EXCEPTION : NEVER dettach (remove) observers within the onQuit() callback of an AppObserver subclass instance !! A BugSplat! will occur.
  • Problems with Soap Skin Bubbles

    40
    0 Votes
    40 Posts
    12k Views
    C
    @dave r said: Patience. The author has always updated it in the past. I'm sure it'll get updated soon. yes, version 12 which works until 10 april 2012 was released. http://www.tensile-structures.de/sb_software.html and taking system time back worked for me for last 2 days.
  • Model.import() always true?

    6
    0 Votes
    6 Posts
    366 Views
    A
    For yery corrupted collada files, there appears just a messagebox "import failed [OK]". The ruby console does not display any exception but just true``. For some collada files, SketchUp says there is a chance that the import could fail and asks if I want to continue [yes]/[no]. If I click yes, it succeeds to import it anyways, if I click no, the same messagebox appears "import failed [Ok]. In all cases, the console says true. I tried it with begin ... rescue ... end without success. model.zip
  • Selectionobserver

    13
    0 Votes
    13 Posts
    1k Views
    K
    hmmm... ok. in this case i don't understand why the lines behaved like that. not that important. ok, thanks to you once again.
  • Soap Skin &amp; Bubble expires

    23
    0 Votes
    23 Posts
    5k Views
    C
    Soap Skin & Bubble expried yesterday. what to do?
  • Ruby &quot;split&quot; in file line reading

    8
    0 Votes
    8 Posts
    3k Views
    C
    @shirazbj said: Heard of regular expressions before, This time I tried to understand it. Thanks. Regular expression are simultaneously very useful and painful to work with. There is a great quote by Jamie Zawinski which goes "Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems." I first ran into them at Dive into Python 3 which gives a couple simple case studies and although the language is slightly different the regular expressions are basically the same. Looking at the regular expression given by /[-|+]?\d.\dE[-|+]?\d\d\d/ we have the / on each end marking the start and end of the expression. There are two blocks of [-|+]? which matches an optional + or - sign. I would read this is "0 or 1 instances of + or -". Then we have \d.\dE which matches a single digit, then some arbitrary number of digits until it find an E, then we again have an option sign followed by exactly 3 digits. So this pattern will match a single numerical value in the string given. The .scan method then constructs an array out of every match. From here you can wrap blocks in parenthesis to create groups so you can break the matches up into their own arrays which is what I had done originally until I realized Ruby would parse scientific notation with the .to_f method.

Advertisement