Check out Febhouse | New extensions for Shadow Analysis in 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
  • Is it possible...

    7
    0 Votes
    7 Posts
    1k Views
    TIGT
    @whaat said: Is it possible to enter 'component edit mode' with Ruby? Is it possible to prompt the user to browse for a file folder (not a file)? If not, consider these requests for the next service release of SU. Thanks. I used a trick to edit groups [PC only] - components could be done similarly... require 'sketchup' require 'win32ole.so' def edit_group ### an example of access SUp tools not otherwise available... ### make shortcut here if NOT set already = ctrl+alt+shift+G ### check that you have one group selected and if so do this... WIN32OLE.new("WScript.Shell").SendKeys("+^%{g}") end#def ### run it from within other tools ### the menu here for test only... if(not file_loaded?("edit_group.rb")) UI.menu("Plugins").add_item("Edit Group"){edit_group} end#if file_loaded("edit_group.rb") ### This is how I find a directory - you do need to pick a file in it though... require 'sketchup.rb' #----------------------------------------------------------------------------- def materialimporter model= Sketchup.active_model materials= model.materials model.start_operation ("Import Materials") ###undo - see commit at end pwd= Dir.getwd.split("/").join("\\")+"\\" ### fix for SU drctry= UI.openpanel "To Pick this Directory; Pick Any Image File + OK...", pwd , "*.???" return nil if not drctry drctry= File.dirname(drctry) return nil if not drctry cwd= Dir.chdir(drctry) images= Dir["*.{jpg,png,tif,bmp,gif,tga,epx}"]### for all supported image file types for image in images imgname= image.split(".")[0..-2].join(".") ### removes .jpg etc from end mat= materials.add(imgname) mat.texture= image end#for image### model.commit_operation ###undo all if needed end#def### .
  • Selection

    3
    0 Votes
    3 Posts
    435 Views
    R
    Thanks for the reply, but I still can't get it to work. #This works when I select everything with a mouse #I have the transform "t" defined elsewhere model = Sketchup.active_model.selection Sketchup.active_model.active_entities.transform_entities t,model ...... #I tried this to select everything without the mouse, but it does nothing model = Sketchup.active_model.selection.add(Sketchup.active_model.entities) Sketchup.active_model.active_entities.transform_entities t,model
  • Req script to draw squares by specifying the area

    6
    0 Votes
    6 Posts
    743 Views
    T
    I have a tile maker.rb file I created. It can be used to make cubes of uniform dimensions of a selected area. I don't know if this tool would be helpful for what your are describing. attached is a short wmv file. tile.wmv
  • Save as sketchup v6

    6
    0 Votes
    6 Posts
    695 Views
    thomthomT
    @cheffey said: I'm not sure how long it will be until we switch to 7, due to the economics of our industry. Will the free version of 7 work ok installed alongside the Pro version of 6? Yes.
  • Help! Ruby and Sketchup information required!!!

    3
    0 Votes
    3 Posts
    466 Views
    R
    I'm willing to help in any way I can, but I don't know of many articles or publications about customizing SketchUp via Ruby. I've done my share of scripting, but I just don't know of much written about what we rubyists are doing. There are some discussions on the old SU ruby forum (and some here) that get into some technical issues, but I don't know if that will meet the criteria for the types of sources you need. Feel free to contact me through Smustard if you have any specific questions. If I can, I'll be happy to help.
  • Scaling

    2
    0 Votes
    2 Posts
    355 Views
    Dave RD
    Now that would be an interesting plugin. Just think of being able to download all those models folks have drawn and uploaded to the warehouse without bothering to draw them correctly. Good luck with this.
  • Web dialog import/export

    3
    0 Votes
    3 Posts
    1k Views
    chrisglasierC
    That sounds interesting. Do you know of any better reference material, the one you tagged is mainly just headings. Please let me know if you have a moment to spare. Chris
  • Full ruby documentation for SU7?

    2
    0 Votes
    2 Posts
    429 Views
    R
    I think its currently being updated, you should be ale to find it here when its finished: http://code.google.com/apis/sketchup/
  • Right click suppression

    3
    0 Votes
    3 Posts
    438 Views
    R
    Well.. it looks like I need a ruby-predator that would kick others out.)
  • Review entity count per group/comp?

    3
    0 Votes
    3 Posts
    493 Views
    chrisglasierC
    Quite a different topic but have a look at the bit of code in this post: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=14299 As it walks through the groups and components, I guess you only need to add some code to count the faces and edges of each. Outputting to a webdialog would be good so that you could use some javascript to list rogues as links so you can identify and fix them one by one*. I would be interested to find out if this approach turns out to be useful. Chris edit: or in batches of same problem
  • [Help]How to get the path where SU6 is installed?

    3
    0 Votes
    3 Posts
    352 Views
    fredo6F
    Wikii in Ruby, use Sketchup.find_support_file "" Fredo
  • Advanced Ruby Sketchup

    2
    0 Votes
    2 Posts
    373 Views
    D
    Oh , I just saw Scott did upload his script, anyways we can have general discussions for developers around and feedbacks of what can be done further with this kind of simulation. Cheers, Dhruv
  • Is there a "copy-multiple" ruby...

    11
    0 Votes
    11 Posts
    1k Views
    R
    Sorry I don't know about 5 or know of ruby but if its anything like 6 with copy and paste - Select the object to copy Choose an insertion point with the move tool. (don't worry when the object moves as you move the curser to select copy, because after using copy and then holding down Ctrl+V the original one appears back in it original position) Copy object or you could use Ctrl+C Then Holding down the Ctrl+V keys when pasting you get multiply copies to paste were you want, with a insertion point. EDIT SEE MY POSTS BELOW TO CHANGE INSERTION POINT
  • Ruby PC > MAC

    3
    0 Votes
    3 Posts
    390 Views
    J
    Hi Todd Thanks for your info - I will try it out.
  • Deleted Shadow Info???

    4
    0 Votes
    4 Posts
    437 Views
    Al HartA
    I was on a PC. I'll try the valid check. I can create an ordinary deleted entity - by deleting one - but I would still like to know how this state happens.
  • Getting error in Layer Manager v2

    3
    0 Votes
    3 Posts
    553 Views
    Didier BurD
    Hi, Try to replace the min script in your plugins folder with the attached one. I have found a small glitch that may cause the command "lm_set_current" to bug. No sure if it will solve the problem, but... P.S.: nothing to do with an install on D:/ instead of C:/ layer_manager_extension_v6.rb
  • Layer by material

    4
    0 Votes
    4 Posts
    625 Views
    free agentF
    thank you very much knew i'd seen it before
  • [poss. BUG] Best-Fastest way to loop through all objects

    6
    0 Votes
    6 Posts
    702 Views
    P
    ah thx, will give that a try see if it goes faster
  • $ versus @

    20
    0 Votes
    20 Posts
    4k Views
    M
    Hello Fredo6 ! Thank you for your answer ! It works great ! get_toolid & set_toolid are perfect ! Just one thing, @@variable doesn't work. Just @variable... Thank you Fredo !
  • Idea for an Orbit tool focused on single object

    11
    0 Votes
    11 Posts
    3k Views
    M
    Well, may be this (reused code) is more closer to what you will be talking about: Here is an initial version of +1 product from OrbitOnTarget Line of Products (hehe ) Later I will write a better "manual", but in the mean time ... Select Component(s). Select the Tool (Component OrbitOnTarget) Select a Reference point (with double-click and no feedback for now) - this is used to Move the selected Compo(s) in a radial direction, closer of more distance relative the Target. Select the Target point (with double-click and no feedback for now) - this is used to Rotate the selected Compo(s) relative the Target. LButton-down + drag to move the selected Compo(s). LButton-down + Shift + drag (up/down) to move the selected Compo(s) more closer or distant the Target (up= +closer, down= +distant). Both OOT: Camera and Component OrbitOnTarget. Give a try and let's see how to improve them. OOT.zip The ComponentOOT can be much more improved toward the concept of Connectors. For now this is a initial concept for the Point-to-Point connector (Reference-to-Target). It's also necessary a roll-back mechanism to undo, etc, etc but looks promissing. Regard, Marcio

Advertisement