Macro Loft

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

FCCreaLoft.png Macro Loft

Description
Creates a loft wit wires selected. Specially written for easy lofting with lines generated by the Macro Texture (but may be suitable and used for common lofts)

Macro version: 00.04
Last modified: 2019-07-03
FreeCAD version: All
Download: ToolBar Icon
Author
Mario52
Download
ToolBar Icon
Links
Macro Version
00.04
Date last modified
2019-07-03
FreeCAD Version(s)
All
Default shortcut
None
See also
FCTexture Macro_Texture


Description

specially written for easy lofting with lines generated by the Macro Texture (but may be suitable and used for common lofts)

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


# 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/c477f892233d6abe02df5e97af828ff4/raw/d633193c577e8257ef458b8c1824d1047c3c6613/Macro_FCCreaLoft.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/c477f892233d6abe02df5e97af828ff4/raw/d633193c577e8257ef458b8c1824d1047c3c6613/Macro_FCCreaLoft.FCMacro")
<class="rawcodeurl"><a href="https://gist.githubusercontent.com/mario52a/c477f892233d6abe02df5e97af828ff4/raw/d633193c577e8257ef458b8c1824d1047c3c6613/Macro_FCCreaLoft.FCMacro">raw code</a>


Texture 001 Logo.png

Texture_001_Logo


Usage

Copy the macro and the icon in your macro directory.

  • Sort : Sort the data entries.
  • Reverse : Reverse the order of data.
  • Reset / Upgrade: This button as many function:
    1. If any selection in 3Dview this button Upgrade is displayed.
      Select your object in the 3Dview or in the Combo view and click this button for upgrade the data in the macro, the button changes in Reset.
    2. If one or many object(s) are selected before the run macro this button Reset is displayed.
      Alls objects selected are displayed in the macro window.
      After having Sort or Reverse the data displayed, this button Reset is used to return to the original order.
      If you click in the 3DView or unselected all objects this button is used for reset to macro.
      If you adding one or more object(s) in the list this button is used.
  • Select all : Select all objects in the document.
  • SpinBox : Increment the jump x Elements (Default 1 all objects are used).
  • Quit : Quit the macro.
  • CheckBox If the CheckBox is checked the work progress is displayed if not only the ProgressBar work (this method is faster) (Checked by default).
  • Launch the Lofting : Launch the Lofting and reset the macro. The number of selection are displayed and the real number lofted if the spinBox "jump" is used

The interface

FCCreaLoft002

Script

The icons for you toolBar FCCreaLoft.png

Download the macro to Gist Macro_FCCreaLoft.FCMacro

Links

The forum discussion Texture

The Macro Texture

Version

ver 00.00 : 06/02/2016

ver 00.02 : 09/02/2016 : Add button "Select all" and little option displayed in the button Launch (number selections) and (real number loft)

ver 00.03 : 09/02/2016 : minor (display on button)

ver 00.04 : 03/07/2019 : adapt to Python 3