• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

An U bolt

Scheduled Pinned Locked Moved Developers' Forum
7 Posts 3 Posters 584 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    shirazbj
    last edited by 23 Jan 2011, 12:29

    Hi,

    I want to draw an U bolt (no thread now) with Ruby, thought I need FollowMe command. Is there a FollowMe example?

    Thanks in advance

    Cean

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 23 Jan 2011, 16:52

      @shirazbj said:

      Is there a FollowMe example?

      Yes in the API doc, see:

      Face.followme

      Best way to find methods in the API is to use the Methods Index
      ~

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • S Offline
        shirazbj
        last edited by 28 Feb 2011, 01:24

        tried follow me. But it can't follow an arc. Any suggention?

        Thx

        btw: I drop my line very soon each time I visit this site.Any problem?

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 28 Feb 2011, 02:23

          @shirazbj said:

          tried follow me. But it can't follow an arc. Any suggention?

          Thx

          btw: I drop my line very soon each time I visit this site.Any problem?

          A face WILL easily 'followme' around an arc, or any set of connected edges/curves - it's easiest to preselect the path then run followme, then pick the face...

          TIG

          1 Reply Last reply Reply Quote 0
          • S Offline
            shirazbj
            last edited by 28 Feb 2011, 03:06

            I'm tring with ruby.

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 28 Feb 2011, 10:17

              @shirazbj said:

              I'm tring with ruby.

              It's much the same in code as doing it manually...
              Specify the path edges as an ordered array and the face...
              face.followme(edges_array)
              If the edges are not continuous or out of order it will fail.
              If you code first adds say two edges and an arc to make a U then ensure that they are added in a logical order so that each end vertex is a start vertex for another edge - alternatively you can add code that checks all path-edges are 'joined' - no gaps or branching - and orders the edges so that they are correct and followme will work OK...
              Also note that the face you are extruding needs to be placed perpendicular to the vector of the first edge at at its 'start' if you want to avoid 'distortion' in the extrusion.
              I suggest that you find my old tool 'TubeAlongPath' ruby [or one of its siblings like 'PipeAlongPath'] which does exactly this on a preselected path, adding the 'disk' needed to make the form...

              TIG

              1 Reply Last reply Reply Quote 0
              • S Offline
                shirazbj
                last edited by 28 Feb 2011, 11:25

                I read your PipeAlongPath code. I'm not using pre-selected path, instead generating by add_line+add_circle+add_line for U.

                add_circle return an array of edge, I need to include them into the path array.

                it works now (attached).

                Thanks


                draw a u-bolt

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement