Macro DeepCopy: Difference between revisions

From FreeCAD Documentation
m (icon)
m (icon)
Line 4: Line 4:
{{Macro
{{Macro
|Name=Macro DeepCopy
|Name=Macro DeepCopy
|Icon=Macro_DeepCopy.png
|Description=Make a compound out of a part with a copy of all its shapes
|Description=Make a compound out of a part with a copy of all its shapes
|Author=galou_breizh
|Author=galou_breizh

Revision as of 15:17, 29 July 2019

Other languages:

Macro DeepCopy

Description
Make a compound out of a part with a copy of all its shapes

Macro version: 1.0
Last modified: 2018-03-16
FreeCAD version: >= v0.17
Download: ToolBar Icon
Author: galou_breizh
Author
galou_breizh
Download
ToolBar Icon
Links
Macro Version
1.0
Date last modified
2018-03-16
FreeCAD Version(s)
>= v0.17
Default shortcut
None
See also
None

Description

Select a part in the tree, run the macro and it will create a compound with a copy of all its shapes. The part hierarchy is lost as well as all the special functionalities of the children of the original part. For example subparts, bodies, sketches, ... will be lost and their shape will be copied.

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/Conversion/DeepCopy.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/Conversion/DeepCopy.FCMacro")


Script

ToolBar Icon

Macro_DeepCopy.FCMacro

code on github