Macro Dxf To Shape

Documentation not finished, not translate thanks

Macro Dxf To Shape

Description
Utility to create a unique wire with many wires

Macro version: 00.00
Last modified: 2020-09-04
FreeCAD version: 0.18, 0.19
Download: ToolBar Icon
Author: Mario52
Author
Mario52
Download
ToolBar Icon
Links
Macro Version
00.00
Date last modified
2020-09-04
FreeCAD Version(s)
0.18, 0.19
Default shortcut
None
See also
None

Description

Macro utility to create a unique wire with many wires. Types of wire available are: MakeWire, Bspline, BsplineCurve, BsplineCurve + Arc, Polygon, and Bezier curve.

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://gist.githubusercontent.com/mario52a/0596ad522b151806d5970586a5051e4b/raw/23fe427f5f00df81c9a7d0a877cf58c052ea5f76/Macro_DXF_to_Shape.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://gist.githubusercontent.com/mario52a/0596ad522b151806d5970586a5051e4b/raw/23fe427f5f00df81c9a7d0a877cf58c052ea5f76/Macro_DXF_to_Shape.FCMacro")
<class="rawcodeurl"><a href="https://gist.githubusercontent.com/mario52a/0596ad522b151806d5970586a5051e4b/raw/23fe427f5f00df81c9a7d0a877cf58c052ea5f76/Macro_DXF_to_Shape.FCMacro">raw code</a>


Usage

you can also test one sweep, force reverse, close wire, create points, cloud...

you can also Save the file to disk

( Save DataT, Read DataT, Reset DataT Are the Temporary working file)


Macro_Dxf_To_Shape

Script

The icon for you toolBar copy in same directory to the macro

How to Customize Toolbars, How to install macros

The script on github Macro_DXF_to_Shape.FCMacro

Example

Convert Wire (multi lines) in BsplineCurve

Convert wire with selected face

Links

Version