🏢 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Iterating over multiple hashes

    3
    0 Votes
    3 Posts
    185 Views
    T
    Thank you so much for the response! It works great!
  • Conponent along path

    7
    0 Votes
    7 Posts
    376 Views
    takesh hT
    When using complex curves (e.g. bezier curves) as a path, Pathcopy sometimes doesn't do what it's supposed to do. If you see that happening, try the following method; Get "Weld" Ruby script (also by RickW) from http://www.smustard.com/script/Weld , drop it in "Plugins" folder. Select the entire path, right-click and "explode" or "explode curves". Select the entire path again, call up "Weld" from [Plugins] menu. When prompted "Close curve?" say yes, and no to "Find faces for this curve?". Now you are ready to run Pathcopy script, but don't erase the unwanted connecting edge created by "Weld" until you finish running Pathcopy successfully.
  • Adding to the $: variable

    2
    0 Votes
    2 Posts
    199 Views
    thomthomT
    hm... that's an interesting question. That snippet looks very useful. Something SKX could use.
  • How to get the path to a Mac application?

    4
    0 Votes
    4 Posts
    200 Views
    C
    hahhaha sorry http://rubyosa.rubyforge.org/tutorial.html
  • Add hidden layer

    8
    0 Votes
    8 Posts
    639 Views
    J
    @TIG Thanks for your input, even though I couldn't understand your script But I managed to get it to work by using this: page = model.pages.add newname layers.each { |l| page.set_visibility(l, false)} page.set_visibility(layer, true) puts page.update(32) page.use_axes = false page.use_camera = false page.use_hidden = false page.use_hidden_layers = true page.use_rendering_options = false page.use_section_planes = false page.use_shadow_info = false page.use_style = false It might not be beautifull, but it works
  • Include and extraction?

    3
    0 Votes
    3 Posts
    191 Views
    A
    You may try to open the component (double click, or right click menu), select geometry, close component and paste. Or do you mean something more specific?
  • [Help]Property Grid Sketchup

    3
    0 Votes
    3 Posts
    285 Views
    chrisglasierC
    If you want it to look something like this [image: LniQ_Structure001.png] use something like this css for the body body{ cursor;pointer; font-family;arial; font-size;.6em; border;0px; margin;0px; overflow;hidden }
  • Add X and Y Postion text

    4
    0 Votes
    4 Posts
    199 Views
    kenK
    Chris Thanks for the very quick reply. Sometimes one just forgets all the tools available. However, what I was trying to do. I work with plate steel panels. I align copies of each panel to the front view, arranging all the panels in order. I like to make sure they are all aligned correctly before I make a ACAD export. Also I need to be in the parallel projection view before exporting. I have noticed that if I use the section view, and starting on no particular panel, most of the time not all the panels will show up in the section view, or sometimes just part of the panel. So my reasoning was that they were not all at the same position. So I wanted the plugin so I could go around to each corner and have a text message showing the position. I like using the “Export Section Slice” as a DWG. This way I don’t have to hide the rest of the model and I can be selective about what I want exported. The elevation plugin works on groups, however, the TEXT menu option only gives the info when the plate section is exploded. Thanks for your reply Ken
  • Help: Any good Array Script?

    9
    0 Votes
    9 Posts
    437 Views
    thomthomT
    1001bit also got a selections of array functions.
  • Bezierspline

    4
    0 Votes
    4 Posts
    384 Views
    D
    Download again the plugin from here: http://forums.sketchucation.com/viewtopic.php?f=180&t=13563 and read the important note before install (You should delete any BZ__***.rb files that existing the Plugins folder. You should also delete the folder BZ_Dir.). Daniel S
  • Extension Index List snapshot

    6
    0 Votes
    6 Posts
    6k Views
    A
    Hi Jim, @jim said: It's almost certainly broken - it is no coincidence since I was working on it this afternoon. I will look at it on Monday - my eyes are blurry. It appears to still be broken. When I click Submit, I go to http://www.sketchucation.com/wp-comments-post.php which just shows a blank, white page and the comment is not there on the Extensions List page. And I don't seem to be able to test Logged-In vs. Logged-Out because I can no longer find where to log in to that part of SketchUcation. Logging in to the group Forums here is not sufficient. Meanwhile, the Extensions List page now shows 679 entries while my list has 678. I'd rather not go through the work of regenerating the list just to compare. Do you happen to remember what the newest entry was? If so, could you mention it in the Comments on the Extensions List page? Adding notes in the Comments seems a good way too keep people updated and would make it easy for me to update both the text list in this thread and the HTML list at http://supowertools.wordpress.com/scfextenslist/ The above is, of course, assuming the Comments function is working. Some kind of search system has added a comment since I reported the problem over a month ago, but it seems to be an automated result for when "Extensions List" is mentioned anywhere within SketchUcation/SCF. Or it could have been done manually, it is only one entry. Thanks for you efforts, Jim, and I hope this helps, August
  • [Question] Is it possible to get a point on UV ?

    9
    0 Votes
    9 Posts
    279 Views
    PixeroP
    I will, thanks.
  • Script Problem - HTML

    12
    0 Votes
    12 Posts
    412 Views
    chrisglasierC
    @chris fullmer said: I'm not sure what one you are thinking of Chris, but this article talks about web dialogs: The trouble you see is that I cannot open anything with blog in it (nor you or tube) but the date seems right. Perhaps the other other Chris will let us know if it is useful. As you know I am very keen to interest more people in web dialogs, because, for example, I agree with this chap. @unknownuser said: Vic Gundotra, Google Engineering vice president and developer evangelist, told the Mobilebeat conference in San Francisco on Thursday that the web had won and users of mobile phones would get their information and entertainment from browsers in future. ... “What we clearly see happening is a move to incredibly powerful browsers,” he said. “Many, many applications can be delivered through the browser and what that does for our costs is stunning. “We believe the web has won and over the next several years, the browser, for economic reasons almost, will become the platform that matters and certainly that’s where Google is investing.”
  • [Question] A way to control the View Menu option in dialogs?

    6
    0 Votes
    6 Posts
    230 Views
    JClementsJ
    Chris, in SU it always goes to List display. In Windows XP, all my default Folders View is to browse and display Details.
  • Solid Element Operation?

    3
    0 Votes
    3 Posts
    257 Views
    B
    @chris fullmer said: That sounds like booltools plugin. Search for the one. Chris That's right. thanks
  • Access to hashes

    10
    0 Votes
    10 Posts
    389 Views
    T
    Hello, Sorry for the confusion! Thanks for pointing this out Fredo6. I'll try to better explain my predicament... I have list2 (beaphash and spihash - a list of all hashes) and list1 (user-generated list where each of the elements refers to a hash). So, I have a user-generated list (this code is just a snippet) and I want to access the the hashes that correspond to list1 and pull, say, the length of the "companion" array from these hashes. beaphash = Hash["companion" => %w{carrot corn pea}, "antagonist" => %w{beet broccoli onion}, "name" => "bean(pole)"] spihash = {"companion" => %w{lettuce pea radish}, "antagonist" => %w{}, "name" => "spinach"} tomhash = {"companion"=> %w{bean(pole) potato}, "antagonist" => %w{carrot}, "name"=> "tomato"} list1 = %w{bean(pole) tomato} list2 = %w{beaphash spihash tomhash} list3 = Array.new list1.each do|x| list2.each do|y| if y["name"] == x list3 << (y["companion"]).length puts "Hey, hash length; #{y.length} and name from hash; #{y["name"]} and name from list1; #{x}" puts "But beaphash name is #{beaphash["name"]}" else end end end ...then I can interleave list1 and list3 to make a new hash. I realize that I may have made this more complicated than it needs to be and there may be a simpler solution...I'm really new to Ruby! Any help would be very much appreciated! Thanks, laura
  • Move groups with different measures?

    55
    0 Votes
    55 Posts
    29k 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: 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
    151 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
    501 Views
    thomthomT
    Ah. I finally figured out what that gem thing was. Everything is working fine now. Pretty docs.

Advertisement