Macro Constraint Draft: Difference between revisions

From FreeCAD Documentation
m (minor)
No edit summary
Line 2: Line 2:
<!--T:1-->
<!--T:1-->
{{Macro|Icon=Text-x-python|Name=Constraint Draft|Description=Create simulation using the [[Expressions|expressions]] for link all objects.|Author=Mario52|Version=1.0}}
{{Macro|Icon=Text-x-python|Name=Constraint Draft|Description=Create simulation using the [[Expressions|expressions]] for link all objects.|Author=Mario52|Version=1.0}}

</translate>
<translate>
==Description== <!--T:2-->
==Description== <!--T:2-->

</translate>
<translate>
<!--T:3-->
<!--T:3-->
Simple example animation Draft wires by use the [[Expressions|expressions]] for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected
Simple example animation Draft wires by use the [[Expressions|expressions]] for associate many wires and simulate or verify the movement. Here the circle rotation create the movement for all objects connected

</translate>
<translate>
<!--T:4-->
<!--T:4-->
[[File:Constraint Draft00.gif| Animation use the constraint expression]]
[[File:Constraint Draft00.gif| Animation use the constraint expression]]

</translate>
<translate>
==Uses== <!--T:5-->
==Uses== <!--T:5-->

</translate>
<translate>
<!--T:6-->
<!--T:6-->
Download the file example [http://forum.freecadweb.org/download/file.php?id=36559 Constraint_Draft00.FCStd], open it in FreeCAD
Download the file example [http://forum.freecadweb.org/download/file.php?id=36559 Constraint_Draft00.FCStd], open it in FreeCAD

</translate>
<translate>
==Script== <!--T:7-->
==Script== <!--T:7-->

</translate>
<translate>
<!--T:8-->
<!--T:8-->
Select the '''Line005_with_Code''' object in the Combo View Select Data tab > Memo code > Code for rotation > {{KEY| ... }}
Select the '''Line005_with_Code''' object in the Combo View Select Data tab > Memo code > Code for rotation > {{KEY| ... }}
Line 36: Line 29:
<!--T:11-->
<!--T:11-->
How copy the code snippet
How copy the code snippet

</translate>
<translate>
<!--T:12-->
<!--T:12-->
[[File:Constraint_Draft_Code01.gif|How copy the animation code]]
[[File:Constraint_Draft_Code01.gif|How copy the animation code]]

</translate>
<translate>
==Rotation with FreeCAD tools== <!--T:13-->
==Rotation with FreeCAD tools== <!--T:13-->

</translate>
<translate>
<!--T:14-->
<!--T:14-->
[[File:Constraint Draft01.gif|Rotation with FreeCAD tools]]
[[File:Constraint Draft01.gif|Rotation with FreeCAD tools]]

</translate>
<translate>
==Link== <!--T:15-->
==Link== <!--T:15-->

</translate>
<translate>
<!--T:16-->
<!--T:16-->
The forum discussion [https://www.forum.freecadweb.org/viewtopic.php?f=22&t=21778&sid=28247565010ecdef0aa4f5c69e58f672 Sketch Feature to create linkage mechanism simulator]
The forum discussion [https://www.forum.freecadweb.org/viewtopic.php?f=22&t=21778&sid=28247565010ecdef0aa4f5c69e58f672 Sketch Feature to create linkage mechanism simulator]

Revision as of 20:18, 21 April 2017

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

Other languages: