Macro PartsLibrary

From FreeCAD Documentation
Revision as of 19:31, 16 December 2018 by Mario52 (talk | contribs) (Created page with "==Skript==")
Other languages:

Parts Library

Popis
Starts the Parts Library browser FreeCAD

Version macro : 1.0
Date last modification : 2014-03-25
Autor: yorik
Autor
yorik
Download
None
Odkazy
Verze
1.0
Datum poslední úpravy
2014-03-25
Verze FreeCAD
None
Výchozí zástupce
None
Viz též
None

Popis

Knihovna náhradních dílů FreeCAD Parts Library je komunitní snahou poskytnout bezplatnou knihovnu opakovaně použitelných částí, která bude vložena do vašich projektů. Jste vítáni, že se můžete účastnit a předložit do knihovny, ale nezapomeňte, že musíte mít práva k jejich sdílení. Podrobnější informace naleznete v souboru readme.

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-library/master/PartsLibrary.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-library/master/PartsLibrary.FCMacro")


Toto makro, které je také obsaženo v knihovně, zobrazí panel prohlížeče uvnitř rozhraní FreeCAD, ze kterého můžete snadno procházet obsah knihovny a vložit část do aktuálního dokumentu, poklepáním na něj.

Skript

PartsLibrary.FCMacro