An U bolt
-
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
-
@shirazbj said:
Is there a FollowMe example?
Yes in the API doc, see:
Best way to find methods in the API is to use the Methods Index
~ -
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?
-
@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...
-
I'm tring with ruby.
-
@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... -
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
Advertisement