Is this within the realm of "not too hard" for MoI
All  1-6  7-13

Previous
Next
 From:  Larry Fahnoe (FAHNOE)
11687.7 In reply to 11687.6 
Between Max's Nuts & Bolts script and McMaster, I get pretty much all the hardware models that I need.

Maybe a bit of a subtlety, but note the check box allowing you to include or exclude Head, Shank, Washers, or Nut.

I do acknowledge that the addition of the threads does complicate the models and that Max's code is a challenging to understand.

--Larry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
11687.8 In reply to 11687.5 
Hi again,

I went back and took a closer look at the .htm file and saw the code you mentioned.

Can this kind of code be executed in a script file or must it be done in an .htm file?

Thanks.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  MO (MO_TE)
11687.9 In reply to 11687.8 
Hi Frederick
If you don't need the threads, you can set the "Thread length" value to 0.
Here you can see this option both in ui and inside .htm file. (Line 97)
Also, "Angle" value controls the head and nut's fillet angle.
Image Attachments:
Size: 22 KB, Downloaded: 84 times, Dimensions: 396x437px
Size: 15.2 KB, Downloaded: 70 times, Dimensions: 1581x154px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11687.10 In reply to 11687.8 
Hi Frederick,

re:
> Can this kind of code be executed in a script file or must it be done in an .htm file?

It can go in either the .js file or the .htm file.

A long time ago (maybe V2 ?) there was a performance advantage to putting it in the .htm file which is why it's there. There isn't any difference anymore.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  fcwilt
11687.11 In reply to 11687.9 
Hi,

It's an impressive bit of work but it appears to only make plain head bolts - no socket head, pan head, button head, flat head - all with a hex recess for the Allen tool - and that is what I desire.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
11687.12 In reply to 11687.11 
Hi Frederick, you also might check out FreeCAD, it has a fasteners module:
https://wiki.freecad.org/Fasteners_Workbench

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  fcwilt
11687.13 In reply to 11687.12 
Hi Michael,

I will check that out - I have heard of FreeCAD but a quick dive into a long while back made me really appreciate MoI.

I've got the "top-of-the-line" Alibre which has a ton of features - and I use Moi for most of my work.

Frederick
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-13