sketchucation logo sketchucation
    • Login
    1. Home
    2. philbx1
    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!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Component search, select and zoom. Howto?

      Hey Sam,

      Just looking through your nice plugins and thought I'd get the main SDM Tools required dependancy plugin to check them out.

      Well, I failed again as I can't seem to locate the 'main' plugin as yet.

      Maybe I'm not looking hard enough...

      Thanks again,
      Phil B.

      posted in Plugins
      P
      philbx1
    • RE: Component search, select and zoom. Howto?

      Hey sdmitch,

      Thanks much for the reply. much appreciated.

      This will give me a good start as after looking at the SU Ruby API
      docs left me fairly confused.

      Similar to what pcmoor has stated, I now also need to find examples of menus etc.

      Hey, very nice web page BTW πŸ˜„

      Cheers,
      Phil.

      @sdmitch said:

      Here's a start

      mod = Sketchup.active_model
      > ent = mod.active_entities
      > sel = mod.selection
      > vue = mod.active_view
      > cmp_names = mod.definitions.map{|cd|cd.name}
      > ctf = UI.inputbox(["Find;"],[cmp_names[0]],[cmp_names.join("|")],"Find Component Instances")
      > if ctf
      >  mod.definitions[ctf[0]].instances.each{|ci|
      >   vue.zoom ci;
      >   break if UI.messagebox("Keep Searching?",MB_YESNO) == 7
      >  }
      > end
      > 
      
      posted in Plugins
      P
      philbx1
    • Component search, select and zoom. Howto?

      Hi all,

      I started looking for Ruby examples on menu driven searching for components (with filters),
      then zooming to the selected component - pretty much like a scene selection.

      Failed big time...

      I don't expect any replies to this message, but thought I'd throw it out there as an idea.

      Any thoughts fine SK people?

      posted in Plugins
      P
      philbx1
    • 1 / 1