DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Having problems with SWEEP, particularly for a helical spiral

Started by Flrn, August 19, 2013, 08:40:58 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Flrn

I have been trying to draw a representation of a commonplace 1/4"x20 machine thread, using 3D Max 22.1, on a machine running Win7Pro.  The machine (Asus) came with Win7 Home Premium and was 'upgraded' to 'Pro' (if that could contribute to 'quirkiness'), mostly for the supposed added capability to run 'legacy' software in "XP Mode."

Started with a 2D drawing of an 'equilateral triangle,' 0.050" on a side, with its 'base' missing (an inverted "v"), followed by a horizontal line (parallel to x-axis), located 0.125" below the 'peak' of the inverted v.  Changed to 3D mode, selected the inverted v's 'crest,' (high-point), 'called' SWEEP, with "W,"  and set axis 'about a line,' 'number of repititions': 20 (my thinking was 20 reps. per revolution), 'span angle': 7200 (for 20 'threads'), 'vertical offset': 0.05, 'vertical offset velocity': 0, 'radius': 1, . . . then picked/selected the 'left' end of the line (same result w/right end) to be told, "Command fail! No lines or planes are selected."

Having heard, long ago, "Doing the same thing over and over and expecting a different result is insanity" I toyed with selecting the line before "W," etc.  Seems the 'best' such attempts gave was a 'linear' repetition of the inverted "v."

Help!  It seems that several commands are most unforgiving of 'tiny' (as in seemingly inconsequential) variations in order/syntax/method.  Had first misunderstood ver. 22.1 to be a 'beta'-like improvement instead of a series of patches (more akin to MS's 'service packs').  Downloading/installing 22.1 did seem to lessen the frequency of finding 'new' ways to 'break' commands.

Thanks.

minstrel

Flrn, it's unlikely an OS problem, so lets check some DCAD things.

Select your thread profile...be certain both lines [sides] are joined.  Now, with it still selected call the info box [Ctrl = I]   - verify it's a vector.  With that out of the way perform the sweep.

You can actually perform the 'sweep' by selecting the profile and using, in this case, either the 'x-axis', 'about 2-points' or 'about a Line'.  With 'about a line' use the 'line snap' K to be sure to hit the target.

Seems your 'vertical offset' may need to be increased...so experiment once you get the sweep to function.  You might try these settings: 100, 3600, 0.5, 0. 1  -  I added additional files for you to check. 

Perhaps, if the settings are way out of bounds, the sweep function will fail?

Actually you could leave the profile [triangle] as a plane [unless for 3D printer?] ...no need to remove the base [which might have caused the initial 'sweep' failure?]

All Success!

edit - added an example file for you to test the 'sweep' and maintain your 'sanity'!  It might help you locate and identify those 'sweep' trouble-spots!

Plus - tons of threads on these 'critters'...be sure to search them out, especially Dr. PR's stuff!

DrollTroll

The Number of Copies field is the TOTAL number of copies, not the copies per revolution. 7200 degrees is 20 revs, so try 400 copies (20 revs * 20 copies/rev)
If "About a line" fails, try "About 2 points" and snap to both ends of the line.
25 years with DesignCAD

Flrn

Gentlemen: 

First let me apologize for my delay in responding.  Thank you for the considerate, helpful suggestions!

Minstrel, guess I don't understand how or why to 'confirm' that the selected profile is in fact a vector...  Have some notion of
vector vs. scalar or vector vs. bit mapped, but am at a loss to understand how and why one confirms, using the info box,
that the profile is a vector.  Concerning the 'removal' of the equilateral's 'base' possibly breaking the command:  (maybe I'm comparing apples to oranges) The PDF 'manual(s)' 'instruction' for using sweep to 'form' a reel (ver. 18 and 22), works nicely with the profile as a line.

There 'seem' to be two 'indications' that the lines are connected: 1) selecting the apex causes both segments to 'color' as
though they're connected/one entity, and 2) using zoom>window repeatedly (magnifying the apex) reveals no separation.

The suggestion to increase the vertical offset is given much credence by the fact that one of my "almost worked" tries gave
a wire frame representation that looks like a 'very busy' doughnut/torus 'hanging' about the end of a 'long' line (when in fact, the line is only 1/2" long!), when my expectation was that the accumulation of offsets per rev. would have 'extended' the wire frame to TWICE the length of the line.  Because...20 offsets times 0.05" per, would seem, logically, to lead to a 'thread' of 1 inch length.

And, DT, thank you for pointing out that the number of copies was incorrectly entered; changing 20 to 400, immediately led
to one of the most-successful-to-date almost/kinda' worked results.  And, it helped shed some light on why my previous
results looked like a 'linear' repetition of the profile.

It becomes ever more apparent that the things that I DON'T know about this feature-rich software are LEGION!

Mark Twain successfully 'spoke' to this sort of dilemma when he observed, "There has been an ALARMING increase in the number of things that I know nothing about!"

minstrel

Quote from: Flrn on August 21, 2013, 09:45:42 AM
...but am at a loss to understand how and why one confirms, using the info box,
that the profile is a vector.
Sorry, thought that might confuse you.  Here's the why -  when I first attempted your original setup for the sweep I had not scaled the drawing to your specs ...just ran a crude test, as it were.   First attempt at the sweep, nothing happened [or so that appeared to be the case].  Ran the sweep again and your dreaded  "Command fail! No lines or planes are selected" suddenly appears!

Huh? What's up with this?  Only then did I realize the 1st sweep 'swept' at a barely noticeable degree [ scale was way off ] and naturally on my 2nd attempt the "Command fail..." occured.  Why?  The first sweep created a 'grid' copy,  of which I had selected and of course, you can't sweep a grid ???   

Thought that might be happening in your case, too.  So it was best to have you check.

Glad to here you are making some progress...did you try the first .dcd I attached to 'toy' with?




Flrn

Minstrel, yes, did 'toy' with the first drawing...  Began by deleting 'sweep' dialog box and rendered bolt.  Then using the same parameters as you had, picked the lower end of the apparent center-line...  And, "Bob's your uncle!"  Thank you!  Finally, it 'dawns' on me that the 'vertical offset' (similarly to 'number of copies') is the TOTAL axial 'change' for the helical spiral!  Which I now realize is what you were telling me with, "...try a larger offset."

Who knew?  Jumping to the wrong conclusion/assumption initially (that the 'offset' was for ONE revolution), and stubbornly 'sticking to it' was giving me a headache!  :-\  Y'all made my day!  Thank you!

Guess one of the next 'hurdles' will be trying to (successfully) represent a right- or left-handed thread, on demand...  Negative or positive (respectively) span angle?  Seems to do it!

Dr PR

Flrn,

Sweep is a complicated function, but extremely powerful once you have mastered it. Here are a few tips:

1. By "vector" minstrel means "line" (the "V" function) as opposed to a curve, arc, etc. Yes you can sweep lines (circles, 3D spheres - just about any basic entity) BUT when working in 3D you should always sweep planes (the "P" function). The reason is simple - if you Sweep a line you get a grid, if you Sweep a plane you get a solid. In 3D you should work with soids as much as possible.

2. A solid is a single entity with surfaces that entirely enclose the volume. Only true solids work with a lot of the 3D functions.

A grid is just a complex surface. The grid has zero thickness - it is just a bunch of interconnected planes that function as a single entity. Grids are not true solids, and a lot of 3D functions will fail if you try to use grids.

3. With the Sweep function the location of the object's handle is extremely important. The operation works relative to the handle, and if you haven't placed the handle correctly all bets are off as to what you will get.

Here is how it works. The handle is the point that gets swept - the rest of the object goes along for the ride. The handle is swept relative to the point you set for the center of the sweep. So, if you just sweep an object in one plane for 360 degrees it will be swept in a circle with a radius equal to the distance between the handle and the center of the sweep. If the handle is at the center of the sweep the radius will be zero - the object will just spin around the center/handle.

The "Radius Ratio" in the Sweep function is the difference between the initial radius and the final radius. If it is "1" the radius will be constant through the entire sweep. But if it is not "1" you will get a spiral. This is where the initial distance between the handle and sweep center must be controlled very carefully.

You can use Radius Ratio to create a tapered thread like you see on the ends of wood screws and sheet metal screws.

4. "Vertical Offset" is how far along the sweep axis the sweep will proceed. If it is "0" the sweep will be entirely in a single plane - good for making 2D spirals (but Sweep only works in 3D so you will have to create the spiral in 3D mode and then switch to 2D to work with it as a 2D drawing).

If Vertical Offset is greater than zero you will get a 3D sweep along the sweep axis. For a bolt, the Vertical Offset is the length of the threaded part. It is the distance from the starting point of the handle and the ending point of the handle. This can be a bit tricky because the handle normally will be somewhere within the triangular thread pattern so the actual length of the spiral thread will be longer than the Vertical Offset by the width of the thread. Think about it.

5. "Vertical Offset Velocity" is a way to create a non-helical sweep. If it is zero the sweep will be helical - the length of each full turn around the axis will be the same. If the "velocity" is non-zero each turn will be a different length - like a stretched party streamer with tight turns at one end and long stretched turns at the other.

6. My Sermon For The Day: When working in 3D ALWAYS work with planes or solids. Avoid lines, curves and other 2D objects like the plague. The reason is simple - if you extrude or sweep 2D objects you will not end up with a true solid. It may look to you like a solid, but DesignCAD's 3D functions will treat it like a bastard at a family reunion.

When you use Sweep to create the threads of your bolt you will get a hollow helical object. You will need to put a center cylindrical core inside the threads for the shaft of the bolt. Then you will need to add the bolt head. To combine all of these into a single true solid object with Solid Add, all MUST be true solids.

If you sweep a line to get your threads the result will be a grid. You cannot use the solid Boolean fuctions (Solid Add, Solid Subtract, etc.) with grids (see caveat below). You should sweep a plane to create the threads, and then you will have a true solid that will work with the solid Boolean functions.

7. Finally, DesignCAD will allow you to create objects that are totally impossible in the real world. In this respect it is extremely powerful, but this power allows you to screw things up so fast it makes your head swim. Work cautiously.

You can define ANYTHING to be a solid with "Solid Define." After doing this you can use the false solids with the solid Boolean functions and other 3D functions. However, the results may be unpredictable and they may not be true solids.

You can create your screw threads by sweeping a line, and then define the resulting grid to be a false solid. Then you can add these threads to a central cylinder. But the result will be a pseudo solid with hollow threads and a bazillion interior surfaces. These things will cause your file size to increase exponentially, and that slows down everything. Don't do it or you will live to regret it!

Phil
DesignCAD user since 1987

Flrn

DR PR,

Wow!  That quality and quantity of insight would not have come (to me at least) for a long, long time--if ever.

You can believe that those comments will be copied into a text file, "_DR PR on SWEEP," and inserted into an appropriate DesignCAD directory.

Thank you, so much!

Jim