Macro screw maker1 2

From FreeCAD Documentation
Jump to: navigation, search
Other languages:
čeština • ‎Deutsch • ‎English • ‎français • ‎italiano

Text-x-python.png Macro_screw_maker1_2

Description
Creates a screw, bolt... with or without thread
Author
Ulrich Brammer
Links
Macros recipes
How to install macros
How to customize toolbars
Version
2.3.1
Date last modification
2018-10-22


Description

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

Temporary code for external macro link (Not use this code, this code is used exclusively by Addon_Installer)


##This code is copied instead of the original macro code

##to signalling and guide the user on the offline download page

##used if the code of the macro is too big to be contained in the wiki page (max 64Ko)

##or if the RAW code url is extra wiki location 

import PySide

from PySide import QtGui ,QtCore

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

diag.setWindowFlags(PySide.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")


<class="rawcodeurl"><a href="https://raw.githubusercontent.com/FreeCAD/FreeCAD-macros/master/ObjectCreation/ScrewMaker.FCMacro">raw code</a>


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