Mac User? | Join the Rayscaper Beta for Mac Learn More

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
  • Move groups with different measures?

    55
    0 Votes
    55 Posts
    35k Views
    pilouP
    Yep!!! THX! Miracle that is working! Sure I should read the Api document before But I had risked the trick So my second script was a new speedy success and a big lesson @unknownuser said: groups=[];selection.each{|entity|groups.push(entity) if entity.kind_of?(Sketchup::ComponentInstance)} groups.each{|ComponentInstance|zeds.push([ComponentInstance.bounds.min.z, index]) Copy my code follow in the Web console from Jim Foltz (if you have components use the file linked ) model = Sketchup.active_model model.start_operation("Move in Z") entities = model.entities selection = model.selection zeds=[] index=0 sorted_groups=[] groups=[];selection.each{|entity|groups.push(entity) if entity.kind_of?(Sketchup;;Group)} groups.each{|group|zeds.push([group.bounds.min.z, index]) index+=1 } zeds.sort! zeds.each{|z|sorted_groups.push(groups[z[1]]) } ### sorted_groups is now groups sorted by z z = 0.0 sorted_groups.each do |e| # update! # Now we process the groups t = Geom;;Transformation.new(Geom;;Point3d.new(0,0,z)) # Apply the transformation e.transform!(t) z = z + 100.cm end model.commit_operation return nil Some help for fun variations [image: http://forums.polyloop.net/picture.php?albumid=23&pictureid=421] Undrop_component.zip
  • PLUGIN REQUEST: material by slope

    3
    0 Votes
    3 Posts
    3k Views
    Chris FullmerC
    ok, here it is: http://forums.sketchucation.com/viewtopic.php?f=180&t=20635 Check it out and see how it works. Chris
  • Code to check isFaceInFace

    2
    0 Votes
    2 Posts
    298 Views
    thomthomT
    I think this will work. It checks the loops of face1 and looks for face2. def isFaceInFace(face1, face2){ face1.loops.each { |loop| next if loop.outer? return true if loop.edges.first.faces.include?(face2) } return false end
  • Creating documetation with RDoc

    17
    0 Votes
    17 Posts
    1k Views
    thomthomT
    Ah. I finally figured out what that gem thing was. Everything is working fine now. Pretty docs.
  • Transformation array

    9
    0 Votes
    9 Posts
    2k Views
    chrisglasierC
    @chris fullmer said: Is that the case? Yes! I don't know why it happened, but now I know a little bit more - e.g. to refer to the comp axis when editing. Thanks Chris
  • Creating a slot on a face

    2
    0 Votes
    2 Posts
    403 Views
    TIGT
    Name : slot.2.rb Description : This file creates a 2D slot. Parameters : The slot width and length. Menu Item : Draw -> Slot Context Menu: NONE Usage : N/A Date : 8/14/2006 Author : Doug Herrmann Probably available on Didier's Library Site ?
  • Shape Bender - preview

    55
    0 Votes
    55 Posts
    11k Views
    Chris FullmerC
    Hi Hasan.
  • FFD Idea/Question..

    5
    0 Votes
    5 Posts
    646 Views
    CadFatherC
    telling by your latest creations BTM, you should.. (must?) i'll be happy to pace it further if you need
  • Thanks for all you do!

    3
    0 Votes
    3 Posts
    412 Views
    J
    kayjay, well said! My thanks to all of you as well.
  • I cant rigister on belw link

    2
    0 Votes
    2 Posts
    195 Views
    thomthomT
    If his site is broken you probably have more luck contacting him. Try that email address listed on his main page: http://tx.technion.ac.il/~arrguedi/
  • Guide Point and Line

    4
    0 Votes
    4 Posts
    434 Views
    TIGT
    The cpoint_with_cline is treated as if it were a lone cpoint at the picked point - i.e. the end of the line with the cpoint attached. The bit of line is ignored, you can't snap to it as if it were a normal cline ! The cpoint_with_cline has the cline permanently attached and it cannot be removed separately... To get rid of the cpoint's cline try this... model=Sketchup.active_model;ss=model.selection;ents=model.active_entities;ss.clear;cpts=[];ents.each{|e|(cpts.push(e.position);ss.add(e))if e.kind_of?(Sketchup;;ConstructionPoint)};ss.each{|e|e.erase!};cpts.each{|p|model.active_entities.add_cpoint(p)} ### or could be reworked to apply to a selection... ;ents=ss.to_a;
  • Follow-Me Tool on Multiple Lines.

    23
    0 Votes
    23 Posts
    6k Views
    W
    Dear Bob, Great stuff! I see you get to play with much bigger toys. Your modelling looks very good, and very informative. Kind regards, Bob
  • Transformations to faces

    3
    0 Votes
    3 Posts
    343 Views
    Chris FullmerC
    You can use a transformation object on face and edge entities if you use the entities.transform_entities method: http://code.google.com/apis/sketchup/docs/ourdoc/entities.html#transform_entities That makes it easier to just scale and rotate and stuff. Chris
  • Auto Centerpoint confict

    5
    0 Votes
    5 Posts
    582 Views
    K
    It works great! Thanks for such a fast fix!!! KJ
  • [Question, Request] Component or Group Highligting

    3
    0 Votes
    3 Posts
    337 Views
    JClementsJ
    Thank you for looking into this and the speedy response. John
  • 3d Model to Flat Map/Net - ?

    5
    0 Votes
    5 Posts
    498 Views
    R
    There's also waybe
  • Windows 7 RC and SketchUp 7 PlugIns

    4
    0 Votes
    4 Posts
    4k Views
    D
    Fredo6 and thomthom, Thanks for your replies. You both make good points and provided useful insights. I'll keep testing. Thanks again (for the info and the great plugins you develop). Dave
  • Comps scale handles upset why

    9
    0 Votes
    9 Posts
    715 Views
    Bob JamesB
    Got it - thank you CadFather. Now I see why it would be nice to have a ruby to get the same dialog.
  • Plugin-Request: draw-Wall

    3
    0 Votes
    3 Posts
    604 Views
    M
    wow.. thanks for the fast answer.. the tool "wallgrouptool" does pretty much the job! than you! And that was another proove that one's never the first with a thought -especially online.
  • Where's SU's Ruby files installed?

    4
    0 Votes
    4 Posts
    392 Views
    Didier BurD
    msvcrt-ruby18.dll in the main folder is the only one I see that could be it.

Advertisement