Part Design workbench and Gear

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Part Design workbench and Gear

Post by NHSA_Rainer »

Hi,

When I make a gear it always sits on the XY plane.

How can I change its orientation and put it on the XZ or the YZ plane ?

Thanks Rainer

Robot_v2.FCStd
(143.6 KiB) Downloaded 24 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Spanish/Latin America (es_419)
Installed mods: 
  * AnimationFreeCAD 1.0.0
  * fcgear 1.81.0
  * Help 1.0.3
  * ThreadProfile 1.81.0
User avatar
papyblaise
Veteran
Posts: 7869
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Part Design workbench and Gear

Post by papyblaise »

change "placement >Axes
Attachments
gear.JPG
gear.JPG (65.92 KiB) Viewed 816 times
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Part Design workbench and Gear

Post by thomas-neemann »

NHSA_Rainer wrote: Sat Aug 13, 2022 4:21 pm ...
I would do it with transformation 90 degrees
Bildschirmfoto_2022-08-13_18-28-26.png
Bildschirmfoto_2022-08-13_18-28-26.png (37 KiB) Viewed 812 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
drmacro
Veteran
Posts: 8865
Joined: Sun Mar 02, 2014 4:35 pm

Re: Part Design workbench and Gear

Post by drmacro »

One of these should suffice:

Properties, change the rotation.

Right click on it in the tree, select Translate.

Select desired plane, click Map sketch Image
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Part Design workbench and Gear

Post by Syres »

What would be nice is to have the similar functionality as Fasteners where you can select the edge of a hole or shaft before clicking the fastener required and it be created at the location and in the same plane. I've had a look at the code of both and it's definitely transferable but whether it's within my capabilities we'll see in the next day or two.
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Re: Part Design workbench and Gear

Post by NHSA_Rainer »

Hi and thanks,

Maybe I did not express myself correctly. Repositioning of the gear is possible while I am in the Timing gear. In the moment I drag the gear into body and add a sketch it goes back to the XY plane ...

I can manipulate the gear while it is in the XY plane which means I can add holes to the gear etc. but not when it is in another placement as XY plane. FreeCAD reports me there is no solid from to substract anything.
User avatar
papyblaise
Veteran
Posts: 7869
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Part Design workbench and Gear

Post by papyblaise »

Question that lacks precision > stupid answer, it's not my fault
you orient the Body before making the basefeature
Attachments
gear2.JPG
gear2.JPG (16.84 KiB) Viewed 614 times
gear2.FCStd
(205.23 KiB) Downloaded 15 times
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Part Design workbench and Gear

Post by Syres »

NHSA_Rainer wrote: Sat Aug 13, 2022 8:01 pm Maybe I did not express myself correctly. Repositioning of the gear is possible while I am in the Timing gear. In the moment I drag the gear into body and add a sketch it goes back to the XY plane ...
Purely from a workflow point of view I would create the shafts for the gears to reside first and then using the modified files attached you can select the edges of the shaft (only one Body in Part Design but multiple shafts if they are in Part/Draft) and it will create the gears in their orientation at the end of the shaft(s).

With FreeCAD closed, copy the _functions.py into C:\Users\username\AppData\Roaming\FreeCAD\Mod\fcgear\pygears folder and copy commands.py into C:\Users\username\AppData\Roaming\FreeCAD\Mod\fcgear\freecad\gears folder.

If you think it's worthwhile submitting the change to the author, let me know.

Tested using:

Code: Select all

OS: Windows 7 Version 6.1 (Build 7601: SP 1)
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/United Kingdom (en_GB)
Installed mods: 
  * A2plus 0.4.56a
  * Assembly3 0.11.3
  * CfdOF 1.17.7
  * Curves 0.5.4
  * fasteners 0.3.51
  * fcgear 1.0.0
  * freecad.xray 2022.4.17
  * Manipulator 1.4.9
  * Plot 2022.4.17
  * sheetmetal 0.2.56
  * Silk 1.0.0
Edit: Added function for PD helper sketches
Attachments
_functions.py
(10.81 KiB) Downloaded 12 times
commands.py
(7.15 KiB) Downloaded 13 times
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Re: Part Design workbench and Gear

Post by NHSA_Rainer »

papyblaise wrote: Sun Aug 14, 2022 8:24 am Question that lacks precision > stupid answer, it's not my fault
you orient the Body before making the basefeature
Hi papyblaise,

Sorry ... :oops:
NHSA_Rainer
Posts: 104
Joined: Mon Aug 30, 2021 3:37 pm

Re: Part Design workbench and Gear

Post by NHSA_Rainer »

papyblaise wrote: Sun Aug 14, 2022 8:24 am Question that lacks precision > stupid answer, it's not my fault
you orient the Body before making the basefeature
Hi and thanks,

I analyzed thoroughly your example sketch and saw that I have to set the angle of the BOdy to Y=1 and Angle to 90°.

Thanks from a Dummy ...

Rainer

PD the funny thing now is that the XY plane for me being always the main plane when I start my projects is now vertical for drawing new stuff and so the other axis too and that is truly irritating after I have got used to the normal orientation of the coordinate system.

Well I stop complaining for a good program which at the end is Free of Charge and has made me design a lot of stuff which works. Thanks to all developping this good software package ;)
Post Reply