⚠️ Update | Sketchucation Tools 5.0.8 released with licensing improvements and bugfixes 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
  • Using the Windows7 Taskbar Progressbar?

    4
    0 Szavazatok
    4 Hozzászólások
    6k Megtekintések
    T
    I know nothing about Win7 and its progress bar and Win32, but I have done one using WxSU and I export model while having the progress bar alive. The only thin is to give it an update from time to time to keep it 'active'. WxSU gives also an option of Cancel button. It has this advantage over your solution that it works on Mac & lower Win version as well. Disadvantageous is installation\addition of WxSU library.
  • [Question] on transformation.rotation

    3
    0 Szavazatok
    3 Hozzászólások
    573 Megtekintések
    R
    Great, thanks TIG! Now it works
  • How to set Layer property of a Group?

    7
    0 Szavazatok
    7 Hozzászólások
    829 Megtekintések
    Dan RathbunD
    @grojguy said: Ah yes, OK, that would make sense, i.e. class inheretance. But, from your comment I was anticipating seeing "layer=" in the instance methods list returned by that nifty command... So, why is "layer=" it not in the list? Because.. you see the warning for the "show inherited" argument is default false for your version of Ruby, but will (actually was,) changed to true as a default, in all Ruby versions 1.8.1 and higher. IF you are still using Sketchup 7.x, then the Ruby DLL distro'd is v1.8.0-initial_release (ie: patch_level p0) You can backup the current "Deceased 1.8.0" dll, msvcrt-ruby18.dll by renaming it: msvcrt-ruby180_p0.dll then replace it with your choice of a newer version from: Ruby Interpreter DLLs (Win32) (you will need to make a copy of the version you want Sketchup to load named: msvcrt-ruby18.dll.) .
  • Undo shifts geometry

    5
    0 Szavazatok
    5 Hozzászólások
    396 Megtekintések
    thomthomT
    No - I need to ensure that when the tool deactivated that the group is closed.
  • Outliner like tool for geometries

    3
    0 Szavazatok
    3 Hozzászólások
    289 Megtekintések
    W
    Short version. Sketchup to G-code. The version, sketchuptogcode, does not follow the edges accurately enough. Long version. G-code is the language used to drive the automated router I have access to. I have worked out the details of the three designs in sketchup, then I reenter the design into another CAD tool that can output g-code. I'm just way too lazy to enter even my simple designs twice. G-code is an "edge" based language. G-code commands the router to move in 3-D lines and arcs. A few details beyond just following a edge, but pretty straight forward. I have written software to perform this kind of task many times in my past life, but it was not done for Sketchup in Ruby. As a retired programmer, I thought I might look into creating a g-code generator. So a Ruby script that outputs geometry info serves two functions: offers a concrete example I can build on; and offers a concrete example I can learn from. I know I will learn Sketchup and Ruby much faster if I have a problem that's of interest to me. Woodworker Bob, retired programmer - I'm so old I wrote programs using paper tape and teletypes.
  • [Code] Group.real_parent

    2
    0 Szavazatok
    2 Hozzászólások
    2k Megtekintések
    thomthomT
    Standalone version - doesn't extent the base class and also returns the definition for Group, ComponentInstance and Image entities: # Returns the definition for a +Group+, +ComponentInstance+ or +Image+ # # @param [Sketchup;;ComponentInstance, Sketchup;;Group, Sketchup;;Image] instance # # @return [Sketchup;;ComponentDefinition] # @since 2.0.0 def self.definition(instance) if instance.is_a?(Sketchup;;ComponentInstance) # ComponentInstance return instance.definition elsif instance.is_a?(Sketchup;;Group) # Group # # (i) group.entities.parent should return the definition of a group. # But because of a SketchUp bug we must verify that group.entities.parent returns # the correct definition. If the returned definition doesn't include our group instance # then we must search through all the definitions to locate it. if instance.entities.parent.instances.include?(instance) return instance.entities.parent else Sketchup.active_model.definitions.each { |definition| return definition if definition.instances.include?(instance) } end elsif instance.is_a?(Sketchup;;Image) Sketchup.active_model.definitions.each { |definition| return definition if definition.image? && definition.instances.include?(instance) } end return nil # Error. We should never exit here. end
  • Interacting with a Sketchup file from another program

    21
    0 Szavazatok
    21 Hozzászólások
    7k Megtekintések
    Dan RathbunD
    I think the answer is to export as Collada (.DAE,) and have the website use the Google O3D plugin. (Manipulation and User Interaction is done via Javascripting.)
  • Snap Alignment

    13
    0 Szavazatok
    13 Hozzászólások
    3k Megtekintések
    R
    My ideas was do create a Fence-Builder where you can plan fences for your garden. So you could be able to snap the fences vertically and horizontally. Add doors and so on. Thats what snap alignment would be great for.
  • Create zip files with sketchup ruby api

    4
    0 Szavazatok
    4 Hozzászólások
    1k Megtekintések
    TIGT
    That's one but there's also http://rubyzip.sourceforge.net/
  • Get Mouse x,y on "resume"

    2
    0 Szavazatok
    2 Hozzászólások
    336 Megtekintések
    thomthomT
    Don't think you can. It's one of the several annoying limitations of the Tool class. (Why doesn't activate return an view argument?)
  • Using printf to help trace ruby errors

    2
    0 Szavazatok
    2 Hozzászólások
    482 Megtekintések
    Al HartA
    I was trying to get the function name in the trace as well. It turns out that adding this line after every function definition may work well. It displays the rotuine name as well as the file and line number. puts("TRACE: " + caller(1)[0].to_s) if $rps_show_traces
  • Load an object and attached it to the pointer

    10
    0 Szavazatok
    10 Hozzászólások
    1k Megtekintések
    S
    And it work ! Thank y'all for your help...
  • Latitude/longitude not working ?

    3
    0 Szavazatok
    3 Hozzászólások
    512 Megtekintések
    Didier BurD
    Thanks a million TIG
  • The results of "line.strip"

    3
    0 Szavazatok
    3 Hozzászólások
    364 Megtekintések
    honoluludesktopH
    Tom, Thanks, I previous looked at that page, and tried to correct my code, but couldn't make it work. Guess it's another case where I am asking the wrong question. It's late, I will take another stab at it tomorrow. Except for speed, parsing, layers, block names, and nested blocks the plugin is (beta) usable. [image: temp09.jpg] This is a import of a Dxf file. The coding is very basic, but modular enough to add other Dxf features in the future.
  • Different styles

    3
    0 Szavazatok
    3 Hozzászólások
    451 Megtekintések
    D
    mm. a shame. would be good to ask the google team to enable this option. no? thanks for replying
  • To space or not to space ".add_circle[@entity[0]...."

    3
    0 Szavazatok
    3 Hozzászólások
    334 Megtekintések
    honoluludesktopH
    OK, thanks.
  • Create a group and manipulate add geom

    11
    0 Szavazatok
    11 Hozzászólások
    1k Megtekintések
    S
    Perfect I made a stupid mistake I investigate not thanks a lot
  • Down to Top traversal

    6
    0 Szavazatok
    6 Hozzászólások
    511 Megtekintések
    thomthomT
    Yea - you'd need to keep store the path to where you found the group in the first place.
  • Running SketchUp with command line redirection

    14
    0 Szavazatok
    14 Hozzászólások
    3k Megtekintések
    Al HartA
    All this work trying to redirect output led me to come up with a ruby script which will redirect output, and flush the output file. See: http://forums.sketchucation.com/viewtopic.php?f=180&t=31160
  • How to add entities to a nested group?

    32
    0 Szavazatok
    32 Hozzászólások
    3k Megtekintések
    D
    YAY! Thanks a ton thomthom, your solution works.

Advertisement