sketchucation logo sketchucation
    • Login
    1. Home
    2. ManuelB
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 9
    • Groups 1

    Topics

    • M

      Find the position of a specific vertex on a face.

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      6k Views
      TNTDAVIDT
      Hello, Try this: mod = Sketchup.active_model sel = mod.selection sommet = [] sel.grep(Sketchup;;Face).each do |f| @pt = f.bounds.min f.edges.each do |e| e.vertices.each do |v| sommet << v.position end end end p "VERTICES POSITIONS = #{vertices_posy}" p "POINT POSITION = #{@pt}" Then follow the instructions of TIG.
    • M

      Create a component from a selected face.

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      6k Views
      No one has replied
    • M

      Subtract the selection of edges

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      13
      0 Votes
      13 Posts
      8k Views
      TIGT
      This isn't a method, but an outline of a process... You have a component-instance. From that instance you can get the component-definition. You can then add a new instance of that into the same entities-context as the original instance, using a copy of the original's transformation. Now you can process that new instance. For example, you can explode it get a reference to everything, then erase everything that's not an edge - e.g. faces, text, dims, and nested groups and instances. Now you have the edges. If you'd like a group containing just those edges... Once you have the component-definition, you first add a new empty group into the same entities-context. You can now make a reference to the group.entities context and then add the new instance into that new context, explode and trim the array of entities, to finally leave only the desired edges inside the group. Now you have the required edges inside your group. [Remember that you can rename that container group etc as desired]
    • 1 / 1