Macro Animated Constrain

From FreeCAD Documentation
Revision as of 18:55, 13 June 2019 by Mario52 (talk | contribs) (icon)
Other languages:

Animated Constrain

Description
Simple macro to animate angles constraints in the sketcher.

Macro version: 1.0
Last modified: 2015-05-20
FreeCAD version: All
Download: Not file for testing See the animation on YouTube.
Author: psicofil
Author
psicofil
Download
Not file for testing See the animation on YouTube.
Links
Macro Version
1.0
Date last modified
2015-05-20
FreeCAD Version(s)
All
Default shortcut
None
See also
None

Description

Simple macro to animate angles constraints in the sketcher. Based on the work of @microelly. Animate a constraint and review the resulting effects.

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/psicofil/Macros_FreeCAD/master/Macros/AnimatedConstrain.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/psicofil/Macros_FreeCAD/master/Macros/AnimatedConstrain.FCMacro")


Use

The macro you can find in the following github repository: Macro_Animated_Constrain.FCMacro

Link

The page discussion Macro Animated Constrain

See the animation on YouTube.