Macro screw maker1 2

From FreeCAD Documentation
Revision as of 18:26, 12 November 2018 by Mario52 (talk | contribs) (Marked this version for translation)
Other languages:

File:Text-x-python Macro_screw_maker1_2

Description
Creates a screw, bolt... with or without thread

Macro version: 2.3.1
Last modified: 2018-10-22
Author: Ulrich Brammer
Author
Ulrich Brammer
Download
None
Links
Macro Version
2.3.1
Date last modified
2018-10-22
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

This macro creates a screw with or without thread, according to ISO standards.

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro


# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.

from PySide import QtGui, QtCore

diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
    "Information",
    "This macro must be downloaded from this link\n"
    "\n"
    "https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/ObjectCreation/ScrewMaker.FCMacro" + "\n"
    "\n"
    "Quit this window to access the download page")

diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()

import webbrowser 
webbrowser.open("https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/ObjectCreation/ScrewMaker.FCMacro")


screw_maker

Usage

Select the characteristics of the screw and click on the create button.
If you select a circle on a hole, or alternatively the inner surface of a circular hole and the circle at top of that hole at the same time, the screw will be placed into the hole with the create button. There is a message text, that will inform you, when the selected combination of properties is not available.

The creation of the thread takes some time. Be patient and have a look at the CPU-usage.

Code

The lastest version of the macro is to be found at ScrewMaker.FCMacro but the easiest way to install this macro is through the Addon Manager.

Link

The forum Screw Maker