Hole in 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!
chrisb
Posts: 19647
Joined: Tue Mar 17, 2015 9:14 am

Re: Hole in gear

Postby chrisb » Mon Jul 15, 2019 10:13 pm

I have attached the sketch with the hole to the main XY-plane, i.e. independent from the gear's faces. That makes such a model very robust. If I want to place it at different position I move the whole body.
That way I can make all changes to the gear locally it will keep its holes and other pads and pockets, and the position moves it around globally.

It would be even better if a gear could be created directly inside of a body. SheetMetal workbench can do this, so it seems to be possible. It is not really essential, but would make the tree even cleaner and easier to understand.
realthunder
Posts: 1231
Joined: Tue Jan 03, 2017 10:55 am

Re: Hole in gear

Postby realthunder » Mon Jul 15, 2019 11:55 pm

looo wrote:
Mon Jul 15, 2019 8:02 pm
The reason why the sketch is not jumping at first is answered by the observation made with @realthunder's FreeCAD version:

Code: Select all

No planar Face in AttachEngine3D::calculateAttachedPlacement()!
My topo naming feature does not work in this particular case because the name has to come from somewhere. Usually it originated from a sketch, with every geometry inside having an auto generated unique ID. Or maybe it comes from a primitive, like a box, a cylinder, which has a fixed number of geometries. In this case, the primitive is a gear generated by a program that can change its geometry. To make use of my topo naming, the program must manually assign names to the geometry. There are APIs to do that.
Try Assembly3 (latest version 0.10.2) along with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
bonny
Posts: 36
Joined: Tue Feb 25, 2014 9:04 am

Re: Hole in gear

Postby bonny » Tue Jul 16, 2019 5:55 am

One of solution are to change the gear workbench too.
To have hole (and possible keyway) in the gear itself... But it's just workaround

Slavko.
looo
Posts: 2961
Joined: Mon Nov 11, 2013 5:29 pm

Re: Hole in gear

Postby looo » Tue Jul 16, 2019 9:51 am

Thanks for clarification!
realthunder wrote:
Mon Jul 15, 2019 11:55 pm
To make use of my topo naming, the program must manually assign names to the geometry. There are APIs to do that.
Thanks, so in the long run the top and bottom caps need to be named.
chrisb wrote:
Mon Jul 15, 2019 10:13 pm
It would be even better if a gear could be created directly inside of a body. SheetMetal workbench can do this, so it seems to be possible.
Trying to do this I see the same behavior as with the gear (A base-feature is added inside the body, but the sheet-metal objects are not inserted)
please help with my conda-packaging efforts: https://liberapay.com/looooo/
chrisb
Posts: 19647
Joined: Tue Mar 17, 2015 9:14 am

Re: Hole in gear

Postby chrisb » Wed Jul 17, 2019 12:01 am

The Bend is inserted directly in the Body. It doesn't seem to be a BaseFeature, as I can see and set all the parameters of the bend.
Attachments
Bildschirmfoto 2019-07-17 um 01.58.36.png
Bildschirmfoto 2019-07-17 um 01.58.36.png (13.88 KiB) Viewed 128 times
looo
Posts: 2961
Joined: Mon Nov 11, 2013 5:29 pm

Re: Hole in gear

Postby looo » Wed Jul 17, 2019 8:50 am

chrisb wrote:
Wed Jul 17, 2019 12:01 am
The Bend is inserted directly in the Body. It doesn't seem to be a BaseFeature, as I can see and set all the parameters of the bend.
Ok I see, this work if I start with a part-design feature and apply sheet-metal features on top pf this. But it doesn't work if I start with a part-feature.

Anyway I don't think placing the gear directly in the body will solve the topo-naming issue. So I guess it's not yet time to change anything to the gears-wb. Better wait for the merge of @realthunder's work and afterwards rework the gear-wb to make the gears more robust.
please help with my conda-packaging efforts: https://liberapay.com/looooo/
chrisb
Posts: 19647
Joined: Tue Mar 17, 2015 9:14 am

Re: Hole in gear

Postby chrisb » Thu Jul 18, 2019 12:58 am

You are right. Placing a gear directly in a body is a completely different topic.