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.

Extruding along yet another curve - starting with helical thread

Started by samdavo, April 17, 2015, 05:01:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

samdavo

Just thinking aloud (because thinking is fortunately allowed on this forum - indeed, imo, to get the most out of DCAD, you have to keep thinking allowed/aloud.

Sorry I know this has been discussed elsewhere,  - and I recall Lar's method of achieving an extrusion that followed a spiral - but I still think there should be a way (possibly a macro?) to achieve this.  (Long term project obviously).

I enclose a drawing of
a) a 20mm diam cylindrical bolt blank on the left,
b) a spiral (20mm diam x 2.5mm pitch), and
c) the cross section of a "triangle" that, if it followed that spiral, and superimposed on the boltblank, would result in an (APPROX) M20 thread.

Now the problem when you extrude the spiral along the curve is that it twists (fairly slowly, but nonetheless pretty useless).

Hence I also enclose the result of extruding that triangle along the helix, (and at risk of confusing - also the result of subtracting that from the boltblank - as if it had been cut using a "twisting lathe")

THE objective however is just to get a spiralling triangle which remains correctly oriented, i.e. where the apex points horizontally at the vertical axis of rotation.

Options to get around this twist :-
1.  DON'T USE EXTRUSION, but instead use circular array (with spiral component) - and then use surface connect

Using macros (I suspect too difficult):-
2.  AFTER THE EXTRUSION EVENT just extrude along the curve,  measure the (unwanted) twist between the first and last trianlges, and apply a correction to each set of crosssectional points along the helix.
3. DURING THE EXTRUSION EVENT - mmm sounds more difficult that (2) - to my untrained eye anyways. 
 
using Point-Select Mode (I suspect this is best - partly because it can also be applied to extrusions along more general / random curves)
4. just grab each triangle and twist it back manually.   

After achieving the spiral, there is the problem of a more random path - and I'm starting to wonder if Point-Select might be the way to go there as well .

Adrian 2.0

Sam,
To get the simplest result for this specific task I used 'sweep' command
I drew the triangular plane (red) and swept it around the red line  with settings of 1440 degrees, 144 segments and an Offset of 8.
The orientation of each segment relative to the axis stays constant.

In ordinary circumstances I'd do a 360 degree sweep, 36 segments and an offset of 2, then copy and paste to get the required length but I needed to confirm no creep over repeated laps.

I do know of your problem for other applications though, especially for handrails where the curve is not consistent. 'Extrude along a curve' is flakey anyway & it always takes multiple attempts at reversing the order of the points on either the object or the path before I get something I can use.

samdavo

Ak,
well you made that look easy lol. (thanks)
ok - next challenge.
This time I have used your trick and swept a U shaped concrete ramp with flat base slab and side walls - (sweeping a plane to give a solid with ends) ...

1. initially around a circular spiral (using sweep as you rightly say) (73 sections in 730 degrees = 2 full turns + a 10 degree bit in excess).
= the YELLOW ramp

2. and to amend it to follow a "standard running track egg-shaped" in plan, by rotating it 5 degrees  about Y axis (so that you have 2 full turns plus 5 degrees hanging out each end) - you'll see why when you come to move points and hence stretch planes in X dirn  - ... and then moving the bits using point select.  (Note that there are moves of half the points in the X direction, and then several moves in Y dirn to maintain the ramp slope through the straight bits of ramp).
= the GREY ramp

I have then added rails by 
3.  copying the grey solid, exploding the copied version, and using VC vector convert,  - this gives two curved "spiralling" lines for the centres of the rails (inside and outside) - which I positioned about the concrete sides of the ramp,

4. I then extruded a small octagonal plane using "extrude along curve", red for the right hand ascending, and green for left. (near enough to a circle at that scale).

For discussion as necessary.
cheers 

samdavo

Not sure if everyone is familiar with prl's macro qs2.d3m , but it is a real boon imo.
For instance I added above (i.e. previous post) what happens with all layers selectable, and everything shows up with shading AND black lines.

Now if you have only the grey layer selectable (layer 8 ), then when you run the qs2 macro,  you get the effect in the png that I post below.  Note that the yellow circular spiral is no longer bounded by black lines - nor the red nor green rails. (this is because the black lines are just "selection colour", and the red green and yellow colours are locked - only grey is unlocked).

I add another copy of that macro in case anyone doesn't have it. (2 cents)

samdavo

Finally I show what happens if you try to extrude that concrete U-shaped cross section around the "running-track shaped spiral" - the twist is evident (blue).

Yellow ramp is swept;
grey is a "point-select-stretched" version of the yellow ramp; and
blue (cyan) is extruded along a curve.

Moral of this particular story ( this chapter anyway) is to sweep the shape, then amend it.

...................
Late Extra
Also, as long as you used an initial vertical sketch, and swept it around a vertical axis, then every crosssection (normal to the axis) is also the same vertical sketch - and you can cut and paste segments like leggo (2 cents). 

samdavo

So just to fully check out the Sweep option, (because examples are rare and/or missing from F1 Help)
Herewith that same U shape swept 2 revolutions around a vertical axis
a) with Radius Ratio = 5,  (but Vertical offset = 0, hence a flat spiral);  and
b) ditto but with Vertical Offset = -1000, and Vertical Offset Velocity = 5  (similar to a road down a mountain from the peak).

Dimensions.  the original radius to the handle was 300, hence ended up as 5x300=1500;  and the overall height after 2 revs = -1000. 
Interesting that the grade appears to be constant  (approx 4.5 degrees).

Where is this going? Hopefully it is possible to make many if not all "extrusions" using a leggo-type mix of swept elements.  (2 cents)

 

samdavo

ok - finally cut that thread, together with a lead-out at the top (using radius ratio with Sweep).
Thanks AK for that valuable tip.

Adrian 2.0

No problem.
Now to make some nuts for that bolt, but that will be much easier!
I'd like to see you make a spring washer too please - but in our virtual world 'solid add' works better than Loctite and you may not need one!

samdavo

AK, herewith a pathetic animated gif file :)
But hopefully you get the idea.

You know the joke about the inmate who breaks out of the asylum to freedom - via a window in the laundry -  and in the process has his way with a couple of the washerwomen who worked there ...

Next day the headlines read "Nut Screws Washers and Bolts"  :)

Adrian 2.0

I have a folder in my computer in which I keep standard drawings of nuts & bolts, expanding anchors, screws of various types as well as chain & hooks.
It's called 'nut screws washer and bolts'. (in my world the nutter only had the stamina for one it seems)

Don't mean to picky - because your gif is very far from being pathetic (those animated files are frustratingly difficult to get right) - but what you have there is a left-handed-thread spring washer on a right-hand-thread bolt. It'd be a bitch to tighten but come undone really easy!

Keep these adventures into the depths of DCad's capability coming please - it is always intriguing to see how deep the rabbit hole goes!

:)

prl

Quote from: adriank on April 20, 2015, 05:21:27 AM
Don't mean to picky -  but what you have there is a left-handed-thread spring washer on a right-hand-thread bolt.

Remember, Sam is below the equator.  Right is tight and left is loose is reversed, no?


(When looking at a ceiling fan , how do you describe the rotation?)

samdavo

Lol - thanks for pointing that out !! (left hand obviously doesn't know what the right hand is doing lol)

To be honest, I don't much like helical spring washers.  I prefer Schnorr Disc Spring Washers - large ones were used to buffer this bridge on each side where it passes through each of the A shaped towers;  From memory they were about 250mm diameter, each with about 12mm stroke - and you can add them both in parallel and in series ;  (The enclosed graph shows examples of how Schnorr washers/springs work, albeit fairly small ones) ...

or (for smaller stuff) Squirt washers (to calibrate the torque to tighten a HSFG High Strength Friction Grip bolt  - really tight !  - and after which you just tighten - and you don't need spring washers at all (2 cents)   
cheers m8

http://www.schnorr.com/downloads/technical-information/14-schnorr-product-program/file.html
http://www.hobson.com.au/files/hobson-update/hobupd_vol022.pdf

samdavo

Quote from: prl on April 20, 2015, 05:27:24 AM
(When looking at a ceiling fan , how do you describe the rotation?)
Well, I would describe our ceiling fan's rotation as noisy - I suspect the bearings are gone!

The other way I would define it is that it blows rather than sucks :)  Although I note that clever people reverse this direction between summer and winter.   I need to study architecture to understand that. 

PS good point lol.

In the same way, I would define the Earth as rotating anti-clockwise, whereas you probably say clockwise.

samdavo

Then there's the helical fluoro bulb ... (including an amended material definition with 84% emission to simulate light on)... (2 cents)  -

PS Whilst I am at it I will add a lamp on a wall (2 cents)

samdavo

Herewith the corrected spring washer (corrected by mirroring it vertically, to reverse the "handing" - as pointed out by adriank :) ).
These jpegs are all using DCAD.
In the case of the nut, I include a jpeg of the qsq2.d3m version (with lines at all visible edges, as well as textured planes) - to show the facets.  The thread has 16-facets around the diameter (not sure why I chose that, - 18 would have made more sense).

I also include the dcd file - quite large at 1400kB - for just this single set.