sketchucation logo sketchucation
    • Login
    1. Home
    2. philbx1
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    P
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Groups 1

    philbx1

    @philbx1

    10
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    philbx1 Unfollow Follow
    registered-users

    Latest posts made by philbx1

    • 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