Incremental rotation of parts

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Incremental rotation of parts

Post by Vagulus »

I am making a flexible drive coupling. There are two yokes which must interlock.
230223 Misaligned Flexible Coupling Yokes.png
230223 Misaligned Flexible Coupling Yokes.png (30.46 KiB) Viewed 1400 times
When I insert the second yoke it is about 22.5° out of mesh. I cannot rotate it except in increments of 90° - that is to say, "I have not yet found a way to rotate a part except in increments of 90°."
There must be a way.
Would someone please enlighten me? Thanks
"It is much harder to simplify than to complicate."
Joseph Kimble
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Incremental rotation of parts

Post by bambuko »

Have you thought/tried typing over the default 90deg, to replace it with the desired angle?

PS it might help if you mention which assembly workbench you are using?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Incremental rotation of parts

Post by Vagulus »

Sorry about that

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/New Zealand (en_NZ)
Installed mods: 
  * Assembly4 0.12.2
  * BOLTSFC
  * Curves 0.5.1
  * dodo
  * fasteners 0.3.46
  * parts_library
Using Assembly 4.

You can't overtype the Rotate Buttons.
"It is much harder to simplify than to complicate."
Joseph Kimble
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Incremental rotation of parts

Post by ppemawm »

Vagulus wrote: Thu Feb 23, 2023 2:37 am "I have not yet found a way to rotate a part except in increments of 90°."
There must be a way.
Select the Part or Body Link in Model. Use the Assembly > Attachment Offset in the Property View. Define the Axis and Angle.

You may have to expand the Ellipsis in the Attachment Offset field to get the correct axis in the Placement panel. Use Apply Incremental Changes as first step. Then define axis and angle. It is not so intuitive but with some experimentation you will likely get the hang of it.

Note that there is an Assembly4 0.12.4 update.
"It is a poor workman who blames his tools..." ;)
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Incremental rotation of parts

Post by Vagulus »

There is an 0.12.5 update! :D

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/New Zealand (en_NZ)
Installed mods: 
  * Assembly4 0.12.5
  * BOLTSFC
  * Curves 0.5.1
  * dodo
  * fasteners 0.3.46
  * parts_library
However, you've got me.
230224 Rotating Part 640.510.png
230224 Rotating Part 640.510.png (109.02 KiB) Viewed 1204 times
As far as I can fiigure out (I could find nothing in the Assembly4 Documentation) you can only set one angle. Even then, I can't figure out how you apply that angle of rotation to a specific axis - nothing I cahnge changes anything. I am completely mystifies as to how I would rotate the Bossed yoke 180° on the Z-axis and 15° on the X-axis.

I will greatly appreciate any help here.
"It is much harder to simplify than to complicate."
Joseph Kimble
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Incremental rotation of parts

Post by Zolko »

Vagulus wrote: Thu Feb 23, 2023 2:37 am When I insert the second yoke it is about 22.5° out of mesh. I cannot rotate it except in increments of 90° - that is to say, "I have not yet found a way to rotate a part except in increments of 90°."
There must be a way.
Would someone please enlighten me? Thanks
create an intermediate LCS that you attach to the 1st part, rotate that intermediate LCS by the amount you need, and attach the second part to that intermediate LCS
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Incremental rotation of parts

Post by Vagulus »

Ahh! Rotate it on insertion.
Thanks
"It is much harder to simplify than to complicate."
Joseph Kimble
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Incremental rotation of parts

Post by ppemawm »

Vagulus wrote: Fri Feb 24, 2023 2:16 am There is an 0.12.5 update! :D
Thanks for the heads up.

As in all things FreeCAD there is more than one way to do things. You can also rotate the original sketch. Or, rotate the body LCS. Or,...etc.
Vagulus wrote: Fri Feb 24, 2023 2:16 am As far as I can fiigure out (I could find nothing in the Assembly4 Documentation) you can only set one angle.
ppemawm wrote: Fri Feb 24, 2023 12:25 am You may have to expand the Ellipsis in the Attachment Offset field to get the correct axis in the Placement panel. Use Apply Incremental Changes as first step. Then define axis and angle. It is not so intuitive but with some experimentation you will likely get the hang of it.
Please see attached file and try experimenting.
Picture3.png
Picture3.png (654.02 KiB) Viewed 1094 times
Assembly4_Placement.FCStd
(47.22 KiB) Downloaded 36 times
See also https://wiki.freecad.org/Placement

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.31850 (Git)
Build type: Release
Branch: master
Hash: d8d3bb8120ad139cf1eb2acf0be0ae6c297ac7f3
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.4
  * fasteners 0.4.15
  * freecad.gears 1.0.0
  * QuickMeasure 2022.10.28
  * Render 2022.2.0
"It is a poor workman who blames his tools..." ;)
User avatar
Vagulus
Posts: 850
Joined: Tue Jul 14, 2020 7:55 am
Location: Perth, Western Australia

Re: Incremental rotation of parts

Post by Vagulus »

Thanks for that. Lots of things I didn't know existed. :D
"It is much harder to simplify than to complicate."
Joseph Kimble
Post Reply