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.

Drawing bolt threads 3d

Started by roger_c130, March 22, 2016, 12:32:10 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

roger_c130

I remember seeing one or two how to's but can't readily find them now.

Bob P


samdavo

#2
roger,
I enclose a cross section of a half of a hypothetical bolt (simplified).  The shaft at least has to be swept about the y axis to make a bolt (strictly with a spiral, but I would argue that that is optional - unless you want to be "perfect").  The head can be formed by a 6-fold sweep about the y axis.

Here are two easy options (refer jpeg and/or dcd file) :-

a) firstly the simplest bolt you can possibly draw, (the all blue version, everything is a 6-fold sweep, so that the shaft is extremely "approximate") - and

b) a slightly better version  with
   *  hex head, blue, 6-fold sweep, and
   *  shaft, red, 12-fold sweep.

Incidentally, I also add a washer, also drawn as a 12-fold sweep.  (2 cents)
PS  _ As you can see, even that simple file is 900kB (!)
(edit} - that's not correct - when you purge unused blocks (doh) that file is only 90kB - sorry :)


samdavo

#3
Of course, when you load a bolt to a drawing, you can define it as a block, and copy that.   Helps keep file size down.  Here's a steel plate with an original bolt (block) and 12 copies thereof.  When saved, I find it is only 320kB (??) Wowo lol - that's less that the two bolts above. (!?) 

PS (edit) I can't understand that small filesize.  (?) I wonder if it has something to do with the fact that I copied the final bolt from another drawing, then pasted it into here, then defined it as a block. (?) See DT's post for the reason the first file is larger than necessary.

DrollTroll

Your first drawing is larger because it contains the block definition of another bolt with a washer. Even though that block isn't used in the drawing, the block definition is essentially another embedded drawing file that's taking up space in the overall file. Purge unused blocks and the file size drops dramatically.
25 years with DesignCAD

samdavo

Thanks DT, I thought I did that (purge), but, in short, it turns out I didn't  :) Wait till you get to my age.  That reduces that first file from 900kB to 90kB.   

ok - we move on.   The other thing you can do with blocks is to make copies, then scale them by various factors.   Here is an example.  And this file is still only 464kB (2 cents)

samdavo

Note that, under the modified bolt sizes, I have ALSO modified the diameters of the holes in the plate using the rapps.d3m macro (discussed elsewhere).   This permits you to go to point select mode, then lassoo the points associated with the hole  you want to amend, then rescale the hole diameter (about the average), eg mfx, mfy, mfz = 2, 1, 2,,  where mfx = magnification factor in x dirn, etc. 

You must not have duplicate or other lines etc, beacuse that will affect the average - which will be the centre of the rescaling ( 2cents).

"Program: rapps3.d3m (rescale a part or plane of a solid) - plagiarised by samdavo from prl's mtpm.d3m,
and requires point select mode with points already lassoed.  Might have errors"

samdavo

#7
OK, here's
1) a tip about aligning bolts with boltholes, and
2) a question on the same topic.

The jpeg (and indeed the dcd file above) shows a bolt that is no longer aligned with its bolthole or its washer.  One way to correct this is :-
a) to select the washer and the bolt in that order (since you want to move the axis of the bolt to align with the axis of the washer);
b) to go to Edit\Selection Edit\Object alignment, and choose same axis for each in X dirn  (and later repeat everything in the Z dirn).

ok, Here's the question:-
c) I find that you usually have to do the X axis alignment twice because the first time the bolt and washer both move - and you have to undo that using Ctrl+Z - but the second time, only the bolt moves  - correctly.   (?)  And I was wondering why this is.   

PS This was done using V22.1.   I should see it it also happens in V25. (Later)

  (edit) mmm,  I'm having trouble getting it to repeat that correct alignment mentioned in a) and b).   Maybe I'm mistaken - I must admit I always thought that the alignment command set things to some average X location - (??)  - more research req'd - and apologies if this is a red herrring ...

I suppose I could delete this post, but maybe someone knows how to use  Alignment command properly and will set me straight (?)  The weird thing is that I'm 99% sure that it was (second trial) moving the bolt to align with the axis of the washer - WITHOUT moving the washer (2 cents)


PPS The other way to align bolts and washers etc is of course to use handles.

samdavo

#8
PS The "Object Alignment" command would be great if it worked reliably, - i.e. if you could easily align solids, WITH ONE STAYING STATIONARY  - compare "mate" in Solidworks  (2 cents)

Not to be confused with the Australian habit of calling both friends and strangers "mate" - sometimes ending up in a disagreement, eg "who you calling mate, mate?"  :)  sorry - just jesting, and maybe you had to be there.

roger_c130


samdavo

#10
np,
Re the size of the file of the bolt drawing, I am assuming that a helical thread adds significantly to the file size.  But I may be wrongs, and I will double check (maybe next post).

(edit) - Refer Posts #14 and #15 here :-  http://forum.designcad.com/index.php?topic=6184.0
This is a fairly accurate bolt complete with helical thread, with lead-out of the thread at the top.  File is considerably larger as a result.
1400kB >> 90kB,  partly explained by the extra accuracy - also the extra nuts and spring washer.
Cheers
 

Re the alignment matter (irrelevant to this topic), I should have mentioned that handles could easily be used to align the bolt above the washer;  I was simply experimenting with the "Object Alignment" command (2 cents). 

JJG

Indeed, and because you are modeling the screw thread, the file size becomes hug.

In other CAD software (such 3D-parametric), the screw thread is represented through a mapping texture, what leads to a very small size file, even smaller than the results you propose above.


Another way, because in DesingCad, it's not usefull and easy to work in 3D-shading mode, is to figure (ie to represent) the screw thread by a simple spiral (see file attached).
;)

samdavo

#12
JJG Here'a view of a nut - formed by Solid Subtracting that bolt from a hexagonal prism - rendered in DCAD and then using prl's  macro qs2.d3m.   This adds "facet edges" as well as shading.   You get an idea of the number of facets in there.

Likewise the bolt threads for the two of the bolts drawn here.

PS A more accurate estimate of the size of just the bolt files is :-
a) simple red and blue bolt  90kB
b) much more accurate bolt  (without nuts and washer) 400kB

samdavo

One last trick.
Herewith the simple red bolt,- again using qs2.d3m - with some of the wireframe lines hidden so that you get a clean thread (using Edit \ Hide Edge by Section).

You could also do this with the grey spiral thread, but it would take a lot longer.
cheers 

samdavo

#14
Here I'll ask a question.

When you "Hide Edges", and you make a mistake, you can "Unhide All Edges"  Clearly there is a simple property of edges that can be turned on and off. (visible / not visible).

How hard would it be to write a macro that turns off all edges (of a selected solid)  that are not horizontal  or vertical? ( eg for that red bolt) ?