sketchucation logo sketchucation
    • Login
    1. Home
    2. TIG
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    โš ๏ธ Important | Libfredo 15.8b introduces important bugfixes for Fredo's Extensions Update
    Offline
    • Profile
    • Following 0
    • Followers 12
    • Topics 264
    • Posts 19,746
    • Groups 6

    Posts

    Recent Best Controversial
    • RE: Selecting Entities inside composite Entities

      One you have got a list of a group's edges that have just one face why do you need to select them anyway ? You have them identified by their 'handle' and so you can manipulate them anyway - even when they are 'transformed'... e.g. e.erase! will erase them...

      There seems to be no (easy) way to simulate the 'edit group' command, BUT you can set a shortcut e.g. 'Shift+Ctrl+Alt+G' to the 'edit group menu' item and then use 'win32ole.so' to run the key stroke(s) to make that group active and then edit its entities to make your selection and then close the group using close_active as you suggest... BUT it's pretty convoluted and would be PC dependant ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Selecting Entities inside composite Entities

      You want to select all edges in the model that have just the one face.

      ###First;  sort out basic geometry 
      model=Sketchup.active_model
      ss=model.selection; ss.clear
      entities=model.entities
      entities.each{|e|ss.add(e) if e.typename=="Edge" and not e.faces[1]}
      ###Now;  make a list of all groups and get any oner-edges
      groups=[]; entities.each{|e|groups.push(e) if e.typename=="Group"}
      ###Adds these to the selection.
      groups.each{|g|g.entities.each{|e|ss.add(e) if e.typename=="Edge" and not e.faces[1]}}
      ###Now go through the component definitions and do the same...
      instances=[]; entities.each{|e|instances.push(e) if e.typename=="ComponentInstance"}
      instances.each{|i|i.definition.entities.each{|e|ss.add(e) if e.typename=="Edge" and not e.faces[1]}}
      

      You will note that this selects any edges in their 'original' location - rather than the current transformation... If you need that you need to delve into transformations a bit more...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

      I wrote this 'group_miner' script some time ago. It mines down through into any groups and makes sure that all groups are unique... Put it into your Plugins folder and it auto-runs at start up to ensure that the model is initially 'fixed'. You can invoke it in any script (remember to 'require' it if needed BUT it's a short bit of code to copy/paste inside any script anyway)... OR just type 'group_miner(Sketchup.active_model.entities)' to repeat the process 'live'...


      ~group_glitch_fixer.rb

      posted in Plugins
      TIGT
      TIG
    • RE: Spiral ramping form

      404 Not Found

      favicon

      (www.crai.archi.fr)

      Grow works on any platform...

      Didier's site has LOTS of goodies...

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: PROBLEM W/ INTERSECTING ROOF PLANES

      Start off to one side, away from everything else... Make an extruded rectangle the size of the stair tower over sized vertically, as a group. Make two large rectangular faces, as groups, and move and rotate these to about where you want the roof to be. Explode all three groups and group back as one group, Edit this group. Select all of its faces and intersect them 'with selection': the two roof rectangles will cut through the tower. Delete the unwanted bits and you now have the form you want. Add dividing lines etc and move/pushpull to get you final desired forms...

      posted in Newbie Forum
      TIGT
      TIG
    • RE: Spiral ramping form

      You could also try my Grow.rb. It lets you do spirals that scale as they grow...

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: What is wrong with this script?

      thresh=results[0]

      will work...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Ruby Challenge!

      Tweaking Jim's..

      i=0;Dir["/*/Media/*v"].map{|f|UI.play_sound f;p i+=1,f;sleep 3}
      

      That would be 63... AND it only plays wav files, not falling over on midi's etc... (62 otherwise)

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Shortcuts.rb: how does it work?

      Here's a 'universal solution'...
      Paste this into a file:

      (c) TIG 2007, ANY without warranty...

      BUT you can use it freely...

      however, it'd be nice NOT to claim it as your own

      OR at least just to mention me when you do reuse it...

      To use it: Put it in the Plugins folder...

      as 'GetShortcuts.txt', and the you can manually load it,

      when required [load"GetShortcuts.txt"] in the Ruby Console...

      require 'sketchup'

      Choose where you want the list to go PICK ONE # ...

      #filepath=ENV["TEMP"]+"/Shortcuts.txt" ### list's in, =YOUR Temp...
      #filepath=ENV["TMP"]+"/Shortcuts.txt" ### =YOUR Tmp...
      filepath="C:/Temp/Shortcuts.txt" ### =SystemTemp (PC)

      file=File.new(filepath,"w")
      Sketchup.get_shortcuts.sort!.each{|s|file.puts s}
      file.close

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Shortcuts.rb: how does it work?

      Sketchup.get_shortcuts.sort!.each{|s|puts s}

      will put a list of your shortcuts in the Ruby Console both on a PC AND a Mac - you could then copy/paste that into a text file and print it...

      To be a bit cleverer - if you want it to go directly into a file then use:

      filepath="C:/Temp/Shortcuts.txt"; file=File.new(filepath,"w"); Sketchup.get_shortcuts.sort!.each{|s| file.puts s}; file.close

      your make filepath to suit yourself.

      Copy everything from "filepath=" to ".close" and paste it into the Ruby Console, OR you could make a proper ruby script with a menu item - copy some other's methods for this...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Need some roof help.

      Look at http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1519 to get v2.0 of the 'new improved' roof script.

      Incidentally: Bootfredlay's manual tutorial on making a hipped roof [and tomdesk's] is more or less how the Roof.rb hipped roof tool works - but automated !

      posted in Newbie Forum
      TIGT
      TIG
    • RE: Latice-izer - usability query.

      It makes a lattice from a group that's a single plane - faces and edges. The frames can have open or paned centres. All lattice frames are the same width. If you want an exact size make the offset around half of the intended frame width and it'll then expand at its edges to suit. If you want a bigger frame offset than that, then offset it (but less the 1/2 frame) and then group only the inner part. Then lattice-ize, explode the group and it'll merge with the outer frame, pushpull the outer bit to suit erasing coplanar edges etc...

      posted in Plugins
      TIGT
      TIG
    • RE: Face width and height in 2d

      Perhaps you could make a temporary group and add the face into that. Then transform the face so it's flat normal=0,0,1. Rotate it so the longest side is say y=0. Then find the bounding box max/min etc ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Pro or free version

      Sketchup.version and Sketchup.version_number
      Returns the current version number.
      The Current Version of Google SketchUp Pro is:
      6.0.515 for Windows XP, 2000 and Vista
      6.0.514 for Mac OS X 10.4 or later
      BUT it's also that for the Free version ?

      However, since the Free version lacks some features in the Pro one then you can look for their absence ?

      For example:
      is_pro=Sketchup.find_support_file("Skp2Acad.dll","Exporters")
      is_pro is true for Pro and false (nil) for Free...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Mirror.rb blues

      Thanks Burkhard... I had had a bad day... It's at the very least polite to acknowledge the work of others in the headers of the script's text when you are using their code or ideas...

      It would have perhaps been easier to leave my original script alone and then link in you new toolbar/extension parts separately to that ?

      posted in Plugins
      TIGT
      TIG
    • RE: Mirror.rb blues

      @unknownuser said:

      ctrl+M? wouldn't that = copy?

      No.
      Pressing M and then Ctrl would Move+Copy IF you have M set to Move, but pressing ctrl + M together doesn't (at least not in the Pro version). I only used that key combination as an example !!! You can use any non-reserved key combo: shift+M, alt+M, ctrl+shift+alt+`, shift+spacebar etc etc... the list is only as restricted as your imagination...

      posted in Plugins
      TIGT
      TIG
    • RE: Mirror.rb blues

      @burkhard said:

      try this one. ๐Ÿ˜‰ simple but works

      And I thought Frank Wiesener, and then I did all of the hard work in the last three years developing "Mirror.rb" for you all to use freely.........
      http://suwiki.org/suwiki/index.php?title=Mirror_%28plugin%29
      [but link to old forum is now defunct.]
      http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/Mirror_31.rb

      I know it doesn't have a (c) para or an 'acknowledge who done this' para at the start, BUT let's be nice - it's certainly got little that's wholly "Burkhard's"...
      I fully acknowledge Frank's earlier input in my updates, at least you could acknowledge others work that's been included in yours - which quite frankly lifts whole lumps of code direct - you even have my ###v3.1 rem tags in yours...

      Let's stay friends about this... but...

      posted in Plugins
      TIGT
      TIG
    • RE: Mirror.rb blues

      @unknownuser said:

      Is there a hope for this script to have a toolbar button sometime?
      I am using it more and more and find myself hunting for the button too often.

      Thanks.

      So much to do and so little time...

      I have a shortcut key that mirrors selections... even quicker than a button ? (M=move but say ctrl+M=Mirror ?)

      posted in Plugins
      TIGT
      TIG
    • RE: Align face to endpoint script ?

      @dtrarch said:

      How about a script that will align a face perpendicular to the end point of a line segment that may be off axis in 3d?

      This would be a big help when using follow-me for this condition.

      Dave

      My ExtrudeAlongPath, TubeAlongPath and PipeAlongPath scripts all align a face perpendicularly to the start of the selected path... So it shouldn't be difficult (for someone) to pinch the appropriate bits and make your tool... Also Mirror.rb also has methods for copying faces etc and moving them about selected lines/planes etc so all in the bits exist already...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: VolumeCalculator Script - Modification Requests Attn: TIG

      Added to the list...

      [EDIT: Done - for v1.7 see: http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1531]

      posted in Plugins
      TIGT
      TIG
    • 1 / 1