Assembly 4 - Double Movement

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
gsandy
Posts: 289
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Assembly 4 - Double Movement

Post by gsandy »

I have a four sided cardboard box that lays flat.
Through Assembly 4 - Animate Assembly I can get this box to open up 90 degrees.
I have attached a small tab to the short edge, and it moves as the box is opened.
After the box is fully opened I wish to swing this tab 90 degrees, as shown on screen shot.
I have tried adding an Assembly 4 - Variable to the Small Tab Sketch angle but this does not work!
Is there another way to get the small tab rotating 90 degrees?
Attachments
Tab Open.png
Tab Open.png (12.35 KiB) Viewed 1091 times
Packet Tab Open.FCStd
(61.95 KiB) Downloaded 48 times
gsandy
Posts: 289
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Re: Assembly 4 - Double Movement

Post by gsandy »

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.31058 (Git)
Build type: Release
Branch: master
Hash: e6c53d8642af36ce7d738ab6058b063ec58e0859
Python 3.8.13, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/New Zealand (en_NZ)
Installed mods: 
  * A2plus 0.4.60e
  * Assembly3 0.11.4
  * Assembly4 0.6.1
  * BIM 2021.12.0
  * CubeMenu
  * CurvedShapes 1.0.4
  * Curves 0.6.1
  * dodo 1.0.0
  * ExplodedAssembly
  * fasteners 1.4.9
  * fcgear 1.0.0
  * fcscript-main
  * flamingo
  * frame
  * frame.bak
  * FreeCAD_AirPlaneDesign-master
  * FreeCAD_Assembly4-master 0.12.4
  * FreeCAD_FastenersWB-master 0.3.45
  * FreeCAD_SheetMetal-master 0.2.49
  * FreeCAD_Utils-main
  * lattice2 0.6.1
  * Lattice2-master 1.0.0
  * Launcher
  * MakerWorkbench
  * Manipulator 1.4.9
  * ose-piping
  * parts_library
  * parts_library.bak
  * Pyramids-and-Polyhedrons
  * sheetmetal 0.2.59
  * sketchershapes-master
  * stickframe-master
  * workfeature
  * workfeature-macro
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly 4 - Double Movement

Post by Kunda1 »

Moved to Assembly subforum
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Assembly 4 - Double Movement

Post by ppemawm »

gsandy wrote: Fri Nov 25, 2022 4:37 am After the box is fully opened I wish to swing this tab 90 degrees, as shown on screen shot.
I have tried adding an Assembly 4 - Variable to the Small Tab Sketch angle but this does not work!
Is there another way to get the small tab rotating 90 degrees?
Assembly4 can have only one independent variable.

One common solution is to have an independent time variable and then define other variables in terms of time.

Or, it is also possible to use a conditional statement https://wiki.freecadweb.org/Expressions.
See example here:https://forum.freecadweb.org/viewtopic. ... 50#p615650
"It is a poor workman who blames his tools..." ;)
gsandy
Posts: 289
Joined: Sun Jan 27, 2019 7:07 pm
Location: Auckland New Zealand

Re: Assembly 4 - Double Movement

Post by gsandy »

Thanks guys.
Got it working by playing around with the Map Mode of the small tab sketch, see attachment. I have one variable controlling two movements.

Applied the same principle to get movement on the three directions of a CNC machine I modeled up.
Attachments
Forum 31-12-22.png
Forum 31-12-22.png (56.45 KiB) Viewed 874 times
Post Reply