Search found 180 matches
- Wed Jul 08, 2020 9:54 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Hello, I made some test with your script and it works very well. To be honest, I still don't understand, completely, how it works, but working on it. Unfortunately, these days I don't have much free time to play with it. However I will also like to test it on assemblies (a2+) and rotated parts. Mayb...
- Sat Jul 04, 2020 8:45 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Yes I did. I was not able to find hole extraction part of code. However, for my machines I need to generate something similar to drilling table. When I feed it to machine software, it will generate native, optimized program. My macro, generally do what I want. It successfully sorts out fillets, roun...
- Sat Jul 04, 2020 7:05 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
I did not understand the problem with countersinking. Is it right, that you want to have both holes as a combination extracted? I think, I can modify my code to solve this. OK, It is like this. If I have two-step hole like this: 20200704_084015.jpg ...we will detect two holes, - Hole A with center ...
- Thu Jul 02, 2020 7:05 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Yes, It would be good one.
However I thought that Hole feature (as its name already says) is intended for that purpose. I mean, If you have Hole created, you mean to drill it. Otherwise, pocket can be used for that feature.
However I thought that Hole feature (as its name already says) is intended for that purpose. I mean, If you have Hole created, you mean to drill it. Otherwise, pocket can be used for that feature.
- Wed Jul 01, 2020 9:36 pm
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Sorry, I sent file for testing if filleted edges will be recognized as holes. My approach is different. For counterdrill holes I am checking if two holes have same two coordinates, depending on edge or face ( X+Y Y+Z X+Z) and have same orientation (vector component). It will be drilled in two steps,...
- Mon Jun 29, 2020 7:36 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
This is what I have so far. There is some code to detect rounded corners and fillets. I am still struggling with detection of countersunk and counterbored holes. import Part AllObjects=App.ActiveDocument.Objects for Obj in AllObjects: if Obj.isDerivedFrom('PartDesign::Body'): ##Panel size length=rou...
- Fri Jun 26, 2020 6:18 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
It is easy to do.3) xls/csv format for auto drilling
I already have some working code, so during weekend, I will publish hole extraction part. Currently, I am struggling with detection of countersink holes.
- Sun Jun 14, 2020 1:39 pm
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Thank you for patience and your time. Finaly I finished up with this: import Part AllObjects=App.ActiveDocument.Objects for Obj in AllObjects: if Obj.isDerivedFrom('PartDesign::Body'): ##Panel size length=round(Obj.Shape.BoundBox.XLength,1) width=round(Obj.Shape.BoundBox.YLength,1) thickness=round(O...
- Sat Jun 13, 2020 11:53 am
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Thank you for help.
I was playing with it last night. Is there some similar technique to also recognize holes created by Mirror or Linear pattern? Like eg.in files in attachments.
Sorry for bothering but this FreeCAD referencing is still unsolved mistery for me...
I was playing with it last night. Is there some similar technique to also recognize holes created by Mirror or Linear pattern? Like eg.in files in attachments.
Sorry for bothering but this FreeCAD referencing is still unsolved mistery for me...
- Fri Jun 12, 2020 2:25 pm
- Forum: Python scripting and macros
- Topic: Extraction of Hole feature properties
- Replies: 29
- Views: 5825
Re: Extraction of Hole feature properties
Ok, but this works only if my GUI selection is Hole. Is there a way to check ifedi wrote: ↑Fri Jun 12, 2020 12:40 pmCode: Select all
if sel.isDerivedFrom('PartDesign::Hole') Print(sel.Depth)
Code: Select all
s = face.Surface