sketchucation logo sketchucation
    • Login
    1. Home
    2. regevz
    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
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 1

    regevz

    @regevz

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

    regevz Unfollow Follow
    registered-users

    Latest posts made by regevz

    • RE: Length line/Edge

      TIG, 10x allot for your detailed post.
      very useful.

      regevz

      @tig said:

      The edge has two vertices - its 'ends'.
      Found by edge.start and edge.end or edge.vertices[0] and edge.vertices[1].
      Let's assume you want to move the edge's end by dist=100.mm
      We know the 'line' of the edge from line=edge.line, where line[0]==edge.start.position and vector=line[1] is the line's vector towards its 'end'.
      Now work out where the new end would be by using an offset on a copy of the end-point by dist...
      new_end_point = edge.end.position.clone.offset(vector,dist)
      So now we have the point where we want the end-vertex to move to.
      You have to make a transformation to apply to that vertex
      [ruby:anqq9m2l]tr=Geom::Transformation.new(new_end_point)[/ruby:anqq9m2l]
      Now you apply it to the vertex - it's done in a convoluted way for a vertex compared to other '[ruby:anqq9m2l]entities[/ruby:anqq9m2l]'...
      If you are working in a group use '[ruby:anqq9m2l]group.entities...[/ruby:anqq9m2l]', but here I assume it's in the model...
      [ruby:anqq9m2l]Sketchup.active_mode.active_entities.transform_entities(tr, edge.end)[/ruby:anqq9m2l]
      The end-vertex of the edge should now move 100.mm further away from the start-vertex...
      If you want to move the start-vertex then use [ruby:anqq9m2l]vector.reverse[/ruby:anqq9m2l] and substitute the start/end vertices.
      For other units change the method e.g. [ruby:anqq9m2l]0.1.m[/ruby:anqq9m2l] or with no suffix it's taken as [ruby:anqq9m2l]inches[/ruby:anqq9m2l]........... 🤓

      posted in Plugins
      R
      regevz
    • RE: Simple Plugin Request - measuremeter

      DIEGO-RODRIGUEZ thanks allot.
      this tool is exact what i looking for.

      friends, i am amaze from your responses...
      10x

      posted in Plugins
      R
      regevz
    • Length line/Edge

      hello,
      how can i change the length of line/edge by ruby script ?

      regevz

      posted in Plugins
      R
      regevz
    • Simple Plugin Request - measuremeter

      hello,

      i have a device "disto d8" it's a measuremeter by laser.
      http://www.leica-geosystems.com/en/Laser-Distancemeter-Leica-DISTO-D8_78069.htm

      the device have the ability to send by BLUETOOTH the measure to the computer as keystrokes from the keyboard.

      i want the draw a sketch and after that to change the length of the edges of it to the real measures by using the device one by one (without going into the edge properties and change the value)

      please help me.

      these are the steps that i think are needed

      1. select the object
      2. loop throw the edges one by one
      3. input from the keyboard the measure and ENTER/TAB for end
      4. change the edge to the length that input

      regevz

      posted in Plugins
      R
      regevz