help Array Pollar

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!
User avatar
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: help Array Pollar

Post by Shalmeneser »

Sketch001 should be called MasterSketch :
* 3 dimensions come from the spreadsheet (check each expression) :
** the radius (RR)
** the width of teeth (WW)
** the angle (AA = 360°/NN /2 calculated in the spreadsheet) (NN = number of teeth)

* Other dimensions are just reference dimensions (color blue) but give name to :
** the length of the teeth (LL)
** the distance from the center (DD)

FC compute itself these 2 dimensions as the teeth must verify :
* be a rectangle
* 2 points on the circle
* symmetry along the vertical axe (= horizontal constrain)
* point on the 'angle' (blue line of reference)

Simple math can do the same job (trigonometry) but FC is a friend.

Sketch002 is for construction :
* width (WW)
* the sketch has a z-offset of DD [×(-1)] value (Data>Attachment Offset>Position>Z)
Pad001 use LL
chrisb
Veteran
Posts: 53933
Joined: Tue Mar 17, 2015 9:14 am

Re: help Array Pollar

Post by chrisb »

Here is a PartDesign solution based on Willem's model.
A problem is that the overlap detection mode doesn't work. If I set it manually to overlap, it works. David, you have implemented this optimization; care to have a look?
davidosterberg wrote: pinged by pinger macro
Attachments
PRISM-GEAR_cb.FCStd
(296.24 KiB) Downloaded 8 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply