Macro Connect And Sweep: Difference between revisions
mNo edit summary |
(ver 0.6) |
||
Line 4: | Line 4: | ||
{{Macro |
{{Macro |
||
|Name= Macro Connect And Sweep |
|Name= Macro Connect And Sweep |
||
|Description=This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle.<br />Version 0.05 05-04-2019. Download the iconToolBar [https://www.freecadweb.org/wiki/images/c/c9/Macro_Connect_And_Sweep.png Icon], other image tools [https://www.freecadweb.org/wiki/images/a/a8/Macro_Connect_And_Sweep_CE.png 1], [https://www.freecadweb.org/wiki/images/f/f7/Macro_Connect_And_Sweep_TL.png 2], [https://www.freecadweb.org/wiki/images/b/b7/Macro_Connect_And_Sweep_TR.png 3], [https://www.freecadweb.org/wiki/images/5/5d/Macro_Connect_And_Sweep_LL.png 4], [https://www.freecadweb.org/wiki/images/b/b9/Macro_Connect_And_Sweep_LR.png 5] |
|Description=This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle.<br />Version 0.05 05-04-2019. Download the iconToolBar [https://www.freecadweb.org/wiki/images/c/c9/Macro_Connect_And_Sweep.png Icon], other image tools [https://www.freecadweb.org/wiki/images/a/a8/Macro_Connect_And_Sweep_CE.png 1], [https://www.freecadweb.org/wiki/images/f/f7/Macro_Connect_And_Sweep_TL.png 2], [https://www.freecadweb.org/wiki/images/b/b7/Macro_Connect_And_Sweep_TR.png 3], [https://www.freecadweb.org/wiki/images/5/5d/Macro_Connect_And_Sweep_LL.png 4], [https://www.freecadweb.org/wiki/images/b/b9/Macro_Connect_And_Sweep_LR.png 5] |
||
|Author=Mario52 |
|Author=Mario52 |
||
|Version=00. |
|Version=00.06 |
||
|Date=2019- |
|Date=2019-06-18 |
||
|FCVersion=All |
|||
|Download=[https://www.freecadweb.org/wiki/images/c/c9/Macro_Connect_And_Sweep.png ToolBar Icon] |
|||
[https://www.freecadweb.org/wiki/images/a/a8/Macro_Connect_And_Sweep_CE.png Macro_Connect_And_Sweep_CE] |
|||
[https://www.freecadweb.org/wiki/images/f/f7/Macro_Connect_And_Sweep_TL.png Macro_Connect_And_Sweep_TL] |
|||
[https://www.freecadweb.org/wiki/images/b/b7/Macro_Connect_And_Sweep_TR.png Macro_Connect_And_Sweep_TR] |
|||
[https://www.freecadweb.org/wiki/images/5/5d/Macro_Connect_And_Sweep_LL.png Macro_Connect_And_Sweep_LL] |
|||
[https://www.freecadweb.org/wiki/images/b/b9/Macro_Connect_And_Sweep_LR.png Macro_Connect_And_Sweep_LR] |
|||
}} |
}} |
||
Line 14: | Line 21: | ||
</translate> |
</translate> |
||
{{Codeextralink|https://gist.githubusercontent.com/mario52a/3ec67a3711202dab69592ce53b938924/raw/ |
{{Codeextralink|https://gist.githubusercontent.com/mario52a/3ec67a3711202dab69592ce53b938924/raw/a7b2c3ba3cac6ef0fb4925a0def5e2d11d3eb06a/Macro_Connect_And_Sweep.FCMacro}} |
||
<translate> |
<translate> |
||
Line 106: | Line 113: | ||
<translate> |
<translate> |
||
==Version== <!--T:6--> |
==Version== <!--T:6--> |
||
06 18/06/2019 : adding "Recompute" on create line section |
|||
<!--T:24--> |
<!--T:24--> |
||
Line 132: | Line 141: | ||
<!--T:10--> |
<!--T:10--> |
||
This macro is based to the microelly2 code see [http://forum.freecadweb.org/viewtopic.php?t=7029#p56746 Looking for some helpful GUI-commands] |
This macro is based to the microelly2 code see [http://forum.freecadweb.org/viewtopic.php?t=7029#p56746 Looking for some helpful GUI-commands] |
||
Other forum discussion [https://forum.freecadweb.org/viewtopic.php?f=22&t=35432 Macro_Connect_And_Sweep] |
|||
</translate> |
</translate> |
Revision as of 11:16, 18 June 2019
Description |
---|
This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle. Version 0.05 05-04-2019. Download the iconToolBar Icon, other image tools 1, 2, 3, 4, 5 Macro version: 00.06 Last modified: 2019-06-18 FreeCAD version: All Download: ToolBar Icon Macro_Connect_And_Sweep_CE
Macro_Connect_And_Sweep_TL
Macro_Connect_And_Sweep_TR
Macro_Connect_And_Sweep_LL
Macro_Connect_And_Sweep_LR |
Author |
Mario52 |
Download |
ToolBar Icon
Macro_Connect_And_Sweep_CE Macro_Connect_And_Sweep_TL Macro_Connect_And_Sweep_TR Macro_Connect_And_Sweep_LL Macro_Connect_And_Sweep_LR |
Links |
Macros recipes How to install macros How to customize toolbars |
Macro Version |
00.06 |
Date last modified |
2019-06-18 |
FreeCAD Version(s) |
All |
Default shortcut |
None |
See also |
None |
Description
This macro easily creates a connection between two objects, an object and a point or between two points (the center of the objects are the starting and ending points of the sweep) can be selected form a configurable ellipse polygon circle.
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/3ec67a3711202dab69592ce53b938924/raw/a7b2c3ba3cac6ef0fb4925a0def5e2d11d3eb06a/Macro_Connect_And_Sweep.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/3ec67a3711202dab69592ce53b938924/raw/a7b2c3ba3cac6ef0fb4925a0def5e2d11d3eb06a/Macro_Connect_And_Sweep.FCMacro")
Macro_Connect_And_Sweep
Use
Run the macro select your objects or points choice the form and parameters and click Create.
Macro_Connect_And_Sweep
Images
These files must be copied to your macros directory
(For download : Click Right button op the image and click "Save Image as ...")
Script
Macro_Connect_And_Sweep.FCMacro
Download the macro to Gits Macro_Connect_And_Sweep.FCMacro
Example
Path and tubing with Macro_Connect_And_Sweep and Macro_Repro_Wire
-
The sweep to work
-
Select the two points choice your form, settings and execute the sweep
-
Repeat the operation if needed
-
select the border of cylinder and run the Macro_Repro_Wire
-
Select the circle the path and execute the sweep
-
Easy ?
Version
06 18/06/2019 : adding "Recompute" on create line section
05 05/04/2019 : compatible Python 3
00.04 22/02/2017 : upgrade the search path
00.03 15/09/2016 : add create pipe
00.02 13/06/2016 : add options choice angle path rectangle and ellipse
00.01 07/06/2016 : add option solid or not centring rectangle or not
00.00 05/06/2016 :
Links
The forum discussion Scripting point to point tubing
This macro is based to the microelly2 code see Looking for some helpful GUI-commands
Other forum discussion Macro_Connect_And_Sweep