What's new

Script to make and save Metric series cap screws

jhiker

Alibre Super User
Thanks for that. When I run that script I'm asked for a folder path to save to.
Is that where I'm going to save the newly-created part?
Is it relevant if I'm using M-Files - I have to re-enter the data when I save there anyway.


2019-06-11_09h49_27.png
 

idslk

Alibre Super User
I hope Chris is tolerating my "intrusion"...;)
Is that where I'm going to save the newly-created part?
yes
Is it relevant if I'm using M-Files - I have to re-enter the data when I save there anyway.
the question for the save location can be disabled (12th line from bottom):
SaveLocation() # SEE NOTE ABOVE AT LINE 36
also you can disable the last two lines of the script
Screw.Save(OutputFolder)
Screw.Close()

and do it manually.

Regards
Stefan
 

albie0803

Alibre Super User
Oldfox, M14, M16, M20 Hex heads don't build the hex. M10 & M12 do. I haven't tried smaller sizes but something is screwy somewhere.
 

oldfox

Alibre Super User
Albie, I have the problem isolated. I'll fix it and then upload a new version of the script. You can just replace the old one with the new one.
With all of the combinations possible I didn't try every one. But then that was just Alpha testing. Well done with the Beta testing. :D
 

oldfox

Alibre Super User
The fix is in. M14 thru M16 Hex head problem is fixed and tested. Produces beautiful bolts.
New Version number is 2.0.2 of 12 June 2019.
Albie, thanks for the catch on that one. The problem was in the database, which is common to every screw, so it affected ONLY Hex heads in those
three sizes. (they were 0.0 values, my oversight)

Now, enjoy.
 

Attachments

  • Metric Series Screws V2.0.2 6-12-2019.py
    17.7 KB · Views: 21

jhiker

Alibre Super User
The fix is in. M14 thru M16 Hex head problem is fixed and tested. Produces beautiful bolts.
New Version number is 2.0.2 of 12 June 2019.
Albie, thanks for the catch on that one. The problem was in the database, which is common to every screw, so it affected ONLY Hex heads in those
three sizes. (they were 0.0 values, my oversight)

Now, enjoy.
Excellent! It works well.
And thanks to idslk for the tip regarding disabling the 'Save' location.
 
Top