Hey
I want to make a item, retangular with rounded corners, thats no problem, then i want to make holes ofset from the edeg al the way round in eaqual apacing. Can i do that our do i have to construct them all
Bedst regards Ege Juul Nielsen
Hole Pattern
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Hole Pattern
Hi and welcome to the forum!
Please tell us a bit more: which workbench do you use (Part, PartDesign), and upload an example of what you try to do.
On first sight: what you want to do sounds like asking for trouble caused by the topological naming problem.
Please tell us a bit more: which workbench do you use (Part, PartDesign), and upload an example of what you try to do.
On first sight: what you want to do sounds like asking for trouble caused by the topological naming problem.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- thomas-neemann
- Veteran
- Posts: 11801
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: Hole Pattern
If you want, I can link you to a video here or via pm where it can be seen
- Shalmeneser
- Veteran
- Posts: 9474
- Joined: Wed Dec 23, 2020 12:04 am
- Location: Fr
Re: Hole Pattern
Attached is a fully parametric file achieving IMHO what you asked for.
The only changes you need to make are the dimensional constraints in Plate_Sketch, size of hole in Hole_Sketch, the thickness of the plate in Plate_Extrude>LengthForward and the Expression in Holes_PathArray > Count > where 100 is spacing in millimetres between hole centres inorder to calculate the number of holes. I'm sure you'll try and break it but give it a whirl.
Edit: trunc is a better function than round as it always goes towards zero.
The only changes you need to make are the dimensional constraints in Plate_Sketch, size of hole in Hole_Sketch, the thickness of the plate in Plate_Extrude>LengthForward and the Expression in Holes_PathArray > Count >
Code: Select all
trunc(Sketch002.Shape.Length / 100)
Code: Select all
OS: Linux Mint 20.3 (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.20.2.29690 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 05a5df264a52e5799c8a4de90be8c1cb5d00ed1e
Python 3.8.10, Qt 5.12.8, Coin 4.0.0, Vtk 7.1.1, OCC 7.3.0
Locale: English/United Kingdom (en_GB)
Installed mods:
* Silk 1.0.0
* A2plus 0.4.60k
* CurvedShapes 1.0.4
* MakerWorkbench 1.0.1
* freecad.gears 1.0.0
* Curves 0.6.8
* PieMenu 1.2.4
* toSketch 1.0.1
* Plot 2022.4.17
* AirPlaneDesign 0.4.0
* fasteners 0.4.54
* sheetmetal 0.2.63
Edit: trunc is a better function than round as it always goes towards zero.
- Attachments
-
- OffsetHolesInRectangle.FCStd
- (21.25 KiB) Downloaded 7 times
-
- Posts: 590
- Joined: Wed Sep 29, 2021 8:35 am
Re: Hole Pattern
Please, the 'count' in the path array is 11 but only 10 holes are shown.
It is my understanding that when you do a path array, an object is placed at both the beginning and end of the path. When the path is a closed loop, will that not result in a duplicate object?
If it is true that there is a duplicate, is it undesirable that this should be so?
Thanks.
Re: Hole Pattern
I see 11 holes.Workshop_Notes wrote: ↑Wed Mar 29, 2023 9:33 pm the 'count' in the path array is 11 but only 10 holes are shown.
No.