Macro PartsLibrary

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

FreeCAD Doc.png Parts Library

Description
Starts the Parts Library browser FreeCAD.
The FreeCAD Parts Library is a community effort to provide a free library of reusable Parts to be inserted into your projects.
You are welcome to participate and submit parts to the library, but keep in mind you must have rights to share them. See the readme file for more details.

Macro version : 01.00
Date last modification : 2014-03-25
FreeCAD version : All
Download : ToolBar Icon
Author
yorik
Download
ToolBar Icon
Links
Macro Version
01.00
Date last modification
2014-03-25
FreeCAD Version(s)
All
Default shortcut
None
See also
None


Description

The FreeCAD Parts Library is a community effort to provide a free library of reusable Parts to be inserted into your projects. You are welcome to participate and submit parts to the library, but keep in mind you must have rights to share them. See the readme file for more details.

Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon_Installer.


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

##to guide the user to the offline 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 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-library/master/PartsLibrary.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-library/master/PartsLibrary.FCMacro")
<class="rawcodeurl"><a href="https://raw.githubusercontent.com/FreeCAD/FreeCAD-library/master/PartsLibrary.FCMacro">raw code</a>


This macro, which is also included in the library, will show a browser panel inside the FreeCAD interface, from which you can easily browse the contents of the library, and insert a part into the current document, by double-clicking it.

Freecad-parts-library.jpg

Script

ToolBar Icon FreeCAD Doc.png

PartsLibrary.FCMacro