Macro Constraint Draft

From FreeCAD Documentation
Revision as of 17:55, 19 April 2017 by Mario52 (talk | contribs) (Created page with "Macro Constraint Draft")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

File:Text-x-python Constraint Draft

Description
Create simulation using the expressions for link all objects.

Macro version: 1.0
Author: Mario52
Author
Mario52
Download
None
Links
Macro Version
1.0
Date last modified
None
FreeCAD Version(s)
None
Default shortcut
None
See also
None

Description

Simple example animation Draft wires by use the expressions for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected Animation use the constraint expression

Uses

Download the file example Constraint_Draft00.FCStd, open it in FreeCAD

Script

Select the Line005_with_Code object in the Combo View Select Data tab > Memo code > Code for rotation > ...

Select the complete code and paste in the Python Console

(If do not have the Python console: Menu > View > Panels > select Python console)

How copy the code snippet How copy the animation code

Rotation with FreeCAD tools

Rotation with FreeCAD tools

Link

The forum discussion Sketch Feature to create linkage mechanism simulator <language>