Sorry for the long radio silence; going through a rough time right now and limited time for hobbies.
I tried my best to create a PR with the generator and the test. Feedback welcome (and most likely necessary )!
Search found 62 matches
- Sun Feb 27, 2022 3:25 pm
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
- Sun Feb 06, 2022 11:56 am
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
- Sun Jan 30, 2022 7:01 am
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
I found some more time over the weekend to try my hands on the code with limited success and would appreciate help with a few questions. I am really not a developer and therefore might run into issues that sound almost trivial to others. Development setup Before jumping into some question about the ...
- Mon Jan 24, 2022 4:59 pm
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
I have to admit that I don't yet fully understand the structure of the code. Path[Operation]Gui - Pretty clear to load the Gui panel and manage the Gui. If we follow the simple logic in the last post the user only has to select the arcs, select the toolbit and the coolant. The call of the Generator ...
- Mon Jan 24, 2022 9:03 am
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
Identifying the start and the end point is surprisingly simple by selecting the arc at the bottom of a properly modeled keyhole: import FreeCAD from PathScripts.PathUtils import loopdetect doc = FreeCAD.ActiveDocument obj = doc.getObject("Pocket001") elt = doc.getObject("Pocket001&quo...
- Sat Jan 22, 2022 9:55 pm
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
Do the keyhole cutters have a cutting edge on the top of the wide part? No. Only on the bottom; so they can't cut themself free. Scriptability is absolutely the goal. We want as much of Path to reusable to macros and also external scripts as possible. But we're working in 'baby steps'. Reusing comp...
- Sat Jan 22, 2022 7:50 pm
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
All my comments are predicated on the idea that a keyhole is a super simple cut as described. I could be convinced that the input geometry should be a wire and the logic is to follow the wire from start to end and then reverse it with rapid moves to exit. That would work as well and would let you d...
- Thu Jan 20, 2022 3:39 pm
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
The generator has nothing to do with the user selection. That's all going to be handled in the GUI and operation code. Looking at your example, you take the input face and immediately calculate a startPoint from its center of mass. Why not just take the startPoint and let the operation calculate th...
- Thu Jan 20, 2022 10:27 am
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852
Re: Adding scripts to a job?
Find attached a first crack at the generator and the respective test file. I deviated from sliptonic's logic of having a start point and an end point for two reasons: (1) This would prevent us from defining multiple keyholes in one go. I would find it more convenient to select multiple holes and the...
- Wed Jan 19, 2022 8:36 pm
- Forum: Path/CAM
- Topic: Adding scripts to a job?
- Replies: 47
- Views: 10852