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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement