Search found 1957 matches

by ulrich1a
Wed Jul 01, 2020 7:43 pm
Forum: Python scripting and macros
Topic: Extraction of Hole feature properties
Replies: 29
Views: 5809

Re: Extraction of Hole feature properties

I am still struggling with detection of countersunk and counterbored holes. I did not found any countersunk holes in the testpart. Anyway, I recycled my code for unrolling a surface of a shape in order to find cylindrical holes. It uses a two path approach. At first it builds a tree-structure from ...
by ulrich1a
Tue Jun 30, 2020 7:34 pm
Forum: Python scripting and macros
Topic: Extraction of Hole feature properties
Replies: 29
Views: 5809

Re: Extraction of Hole feature properties

I am still struggling with detection of countersunk and counterbored holes. This will need the detection of a conical face and a cylinder face with a common axis or two cylinders with a common axis. I think in this case another search strategy will be better. I have used the following iterative sea...
by ulrich1a
Tue Jun 23, 2020 9:13 pm
Forum: Open discussion
Topic: Ticket #4093: Spreadsheet losts Alias-values
Replies: 23
Views: 4342

Re: Ticket #4093: Spreadsheet losts Alias-values

I can reproduce the problem with FreeCAD 0.18 Debian-Version as described by LewisHein. OS: Debian GNU/Linux 10 (buster) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.18. Build type: Release Python version: 3.7.2+ Qt version: 5.11.3 Coin version: 4.0.0a OCC version: 7.3.0 Locale: G...
by ulrich1a
Wed Jun 17, 2020 9:34 pm
Forum: Help on using FreeCAD
Topic: Sheet Metal - Unfolding Problem
Replies: 8
Views: 1186

Re: Sheet Metal - Unfolding Problem

Thanks. Yes, that seems to be the problem. It doesn't work for countersunk holes. I made the first version of the sheet metal unfolding macro. In order to do so, the code analyses the shape and searches for bends and need to identify all faces of a shape, that belong to a flat piece. The code just ...
by ulrich1a
Sun Jun 14, 2020 10:14 am
Forum: Python scripting and macros
Topic: Help!!!
Replies: 13
Views: 1619

Re: Help!!!

There has to be *some* relationship. Of course is there a certain and repeatable relationship. But you asked for a mapping in your first post. I only said that a mapping is not available from the FreeCAD data of a drawing. Have a look at a sphere. The 3D-sphere is defined by an 180°-arc and a 360°-...
by ulrich1a
Sat Jun 13, 2020 3:08 pm
Forum: Forum in Deutsch
Topic: Netz mit Python erstellen
Replies: 7
Views: 1307

Re: Netz mit Python erstellen

Ich habe jetzt keine 0.16-Version von FreeCAD am Laufen und habe es deshalb in der aktuellen 0.19 ausprobiert. Bei mir wurde aus der Kugel ein Netz mit ganz wenig Flächen. Ich habe einfach in der Mesh-workbench Netze erzeugt und mir die Python-Ausgabe in der Konsole angeschaut. Mach das einfach mal ...
by ulrich1a
Sat Jun 13, 2020 2:25 pm
Forum: Python scripting and macros
Topic: Extraction of Hole feature properties
Replies: 29
Views: 5809

Re: Extraction of Hole feature properties

Sorry for bothering but this FreeCAD referencing is still unsolved mistery for me... Have a look into the part scripting in the wiki. If you want to find all holes in a plate, without knowing how it is produced, you have to investigate the shape of your part. The shape is a python object with a lot...
by ulrich1a
Sat Jun 13, 2020 1:04 pm
Forum: Python scripting and macros
Topic: Help!!!
Replies: 13
Views: 1619

Re: Help!!!

I do expect, that there is no relation, between the part and the techdraw projection edges, that you can extract from the FreeCAD data. The projection is created with the opencascade kernel and handled as a new object in the techdraw workbench. The only way I can imagine, is to calculate the project...
by ulrich1a
Sat Jun 13, 2020 11:25 am
Forum: Part Design module development
Topic: Allowing Negative Volume Bodies
Replies: 8
Views: 2082

Re: Allowing Negative Volume Bodies

Would negative volume bodies be a good fit for FreeCAD? This is already available in FreeCAD in the Part-Workbench. You can select a shape and revert it. It is available in the menu under Part/Reverse shapes. A reverted shape has than a negative volume and behave different in boolean operations. Yo...
by ulrich1a
Fri Jun 12, 2020 6:26 pm
Forum: Forum in Deutsch
Topic: Netz mit Python erstellen
Replies: 7
Views: 1307

Re: Netz mit Python erstellen

Wenn ich in FreeCAD selbst ein Netz erstelle, ist es kein Problem. Es hilft, dabei die Python-Konsole offen zu haben. Dort werden die Eingaben als Python-Befehle angezeigt. Man kann sie sich ansehen und kopieren und sie mit eigenen Parametern ausprobieren. Ansonsten funktioniert die folgende Versio...