News:

Please note new Forum URL: forum.designcad.com

Main Menu

Rotate to plane

Started by Dr PR, November 13, 2012, 04:30:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr PR

I am looking for suggestions, and possibly a new feature for the program, to solve a problem.

Note: in this post "block" refers to what lubbers call a "pulley" - a housing containing a rotating sheve (pulley) around which lines (ropes, cables) are run. As in "block and tackle." "Block" does not refer to the DesignCAD drawing entity.

See the attached image. I had cables running through several blocks, all at different angles. In the real world you just run the lines, pull them taut, and the blocks orient themselves appropriately. Well, it doesn't work that way in CAD!

Each of the two blocks shown had four axes of rotation - two hinge joints with rotation around hinge pins, and two swivels with rotation around the axis of the joint.

I did the work by drawing temporary lines from the center of rotation on one block assembly to the corresponding center of rotation on the adjacent block assembly, starting with the joint that is attached to the ship's structure. I bisected the angle between the lines, and rotated the joint around the axis of the hinge/swivel pin to bring the rest of the assembly into line with the bisecting line as close as possible. Then I started over with the next joint outward toward the blocks, drew new temporary lines and repeated the process. Hinge 1, swivel 1, hinge 2, and then swivel 2 at the base of the block.

Each of the first three joints allowed one of the three rotations necessary to achieve the correct alignment in 3D space. The second swivel joint allowed the block to rotate into the correct plane.

For each rotation I set a custom workplane relative to the axis of rotation of the joint, and rotated manually around that axis (Drag Mode, Increment zero) until the assembly appeared to move into the plane of the two temporary lines. There are a total of 32 blocks in the whole assembly, and 82 axes of rotation. That's a lot of temporary lines, custom workplanes and rotations!

****

Can anyone suggest a better way to do this?

****

One caution: because each joint has only one degree of freedom, it isn't possible to actually rotate the block into alignment with the angle bisection line except for the next to last last joint. It is the purpose of rotating all of the other joints (hinge 1, swivel 1 and hinge 2) to bring the final swivel joint 2 into alignment with the bisection line. Then this joint can be used to rotate the plane of the sheve (pulley) into the plane of the temporary lines.

Because of this limitation, I did not try to calculate the precise rotation angle of each joint (hinges and first swivel) in 3D space around the single axis of rotation of that joint. Think about it - that is some complex geometry and trigonometry. Eyeballing got it close enough.

****

It would be really nice to have two new functions in DesignCAD.

1. The first would rotate a line around a specified axis until it is parallel to the surface of a polygon (a plane).

In this example the line would extend perpendicular from the axis of the hinge joints, and the axis of the hinge would be the axis of rotation. By placing a corner of the plane on the axis of rotation, the line would actually be rotated into the plane of the polygon. That is what is needed for the hinge joints.

2. The second is a function that would rotate this line parallel to that plane around a specified point without having to calculate angles.

This is what is neede for the swivel joints. In the example shown the line would be a part of the block and the plane would be defined by the temporary lines.

Phil
DesignCAD user since 1987

MarkX

Hi Phil,

I seem to recall that you don't use the handle-move technique very often.

On function #2, I might consider using this technique rather than trying to use the Rotation tool and guessing when you've rotated your block or line into a parallel position.

I am attaching a screen shot of how it might work. Sorry that its kind of disorderly, and moves counterclockwise. In the shot, there is a green line arbitrarily positioned in space that needs to be rotated around its end to become parallel to a block (really!) that represents the plane you want be parallel to. Of course, the technique would also work if you want to rotate some other part of the line.

I create a small guide line on the plane, and then move it until it touches the point of "rotation" you wish for your green line. Then I create 2 handles on the green line and then snap it to the guide line. Now the line is parallel to the original plane, as if it were rotated in space to match the plane.

My apologies if I've completely misunderstood the problem. You're doing some really advanced stuff there. Those blocks (your meaning) look really nicely done.

Good luck!
Mark

Lar

#2
<<...I see that MarkX posted ahead of me and we partly discuss the same 3-handle technique...>>

Phil,

when I want to do stuff that require free rotations I use dcad's 2 or 3 handles and 'move' rather than 'rotate'. For the move you have to keep 'use original scale' active.

When setting up your temporary lines place points for an anchor and 2 target locations. The anchor points have to be in precise locations. For the targets the direction is important but distance is not. When creating the object to be positioned place an L-shaped axis line along it's center, with the end of the L sticking out where ever it makes sense. Set the first 2 handles along the center of the axis and the 3rd at the end of the L. Now just move the object (along with the axis line, of course), snapping first to the anchor, then the first target then the 2nd target. It feels as natural as placing something with your hand. Another of dcad unique abilities.

For precise angles off of the standard axes create something like a 360 deg. protractor. Set the first one in any of the regular axes that make sense. Set handles at the center, 0 deg and maybe 45 deg. Duplicate it on itself by snapping the 1st point at handle-0 and the 2nd at the necessary degree on the protractor. For the 3rd turn on ortho mode and move the cursor somewhat perpendicular to the original protractor and click. This would place the duplicate at the necessary angle and in the necessary plane. Do as many of these to as necessary to get whatever angles you want.

See attached image.

Lar

Dr PR

Lar,

Sorry, but that is as clear as mud. However, this technique is what was in the back of my head when I posted the question. I knew there had to be a better way!

So, if I recall what I think I know, it works this way:

1. Select the object to be rotated.

2. Set handles. The first handle will be the point of rotation on the object and the handle for the move operation. The second and third handles (labeled 1 and 2) define a reference plane for the rotation, relative to the object. These handles can be anywhere on or relative to the object.

3. Start the "Move" (M) function or "Duplicate" (N) function. This is one advantage of "Duplicate" over copy/paste - you keep the three handles and can copy and rotate in one action.

4. Move the object (first handle) to the desired place for that part of the object to be moved to and click to place the handle. This anchors the object at one point.

5. Click twice more to set the directions of the second and third handles relative to the first handle. This creates the rotation of the object into the new plane.

****

Prior to moving an object you need three reference points for the position and plane you want to move the object to.

In my example I have the two temporary red reference lines from other blocks that converge on the rotation axis that define the plane to rotate to. The blue angle bisection line defines the desired axis of rotation. The green line is part of the angle bisection geometry construction and defined the new plane to rotate to. See the "3 point move 1.jpg" image.

I can set the first handle on the axis of rotation (blue) at a point corresponding to the place I want to drag the block to. The second point would also be along the axis of rotation and the third would be in the plane of the pulley (green line perpendicular to the axis of rotation).

Then all I need to do to copy the block and place it into the desired rotation plane is (see the "3 point move 2.jpg" image):

1. Press "N" to create a duplicate,

2. Snap to the intersection of the red reference lines to anchor the copy,

3. Snap to the end of the blue bisector line to set the new axis of rotation, and

4. Snap to the end of the green construction line to set the plane of rotation.

****

Damn that was easy! Thanks guys for reminding me of the long forgotten three point handles and how to use them to reorient an object. I had completely forgotten, but an ancient lurking memory nagged at me to say there was a much easier way!

Phil
DesignCAD user since 1987

Lar

Phil, it appears your x-ray vision is working just fine.

Lar

Dr PR

Lar,

This also demonstrates that (at least some) long time users don't always know the best way to accomplish something.

When I first started using 2D ProDesign I don't think it had the "Use Original Scale" option for the "Move" or "Duplicate" functions. It was FAR too easy to totally screw up something if you used more than one handle. In fact, it was almost certain that you would rescale an object if you moved it with multiple handles. I think that was the original purpose of multiple handles - to rescale objects. When 3D came along a third handle was added to allow scaling and rotation in three axes.

For this reason multiple handles were anathema to me and I never used them.

Only later was the fixed scale option added to avoid screwing up objects with multiple handles.

I just never learned to use this new option and I forgot about multiple handles.

Phil
DesignCAD user since 1987

MarkX

Quote from: Lar on November 13, 2012, 07:00:32 PM
See attached image.
Lar,

This is probably very lazy of me, but could you post that nice protractor of yours?

Thanks!
Mark