Code: Select all
#get the selected object selobj = Gui.Selection.getSelectionEx() print(selobj.SubElementNames) print(selobj.PickedPoints)
haha that's typical. When I look at it from some angles it disappears, I have experienced that on other models also. It's made in the version that I pasted below. It was a quick draw but with correct method:Besides, the model which you uploaded is one of the most cumbersome I have seen here: It seems to be empty! I can see the body, with sketches and features, but if I want to use it as base object in a job I cannot see it. Part->CheckGeometry - even with BOPCheck enabled - doesn't show anything; no solid, no shell, simply nothing. How did you create it?
Might try Job Template now when I'm in v19. Before I couldn't even open the workbench without it crashing. My own post processor would make many things easier.If you always want to have the same initial sequence of GCodes, you can use a Job template with a certain preamble or you can even use your own post processor.
Yes! That's the numbers that I want! When I click on a point it presents vertex in the Python console. I need to be able to assign a name to each coordinate so I can call them individually. Like: "Vertex15_X". Then I can call for that position in my Gcode.I selected a single point on this sketch and ran this code. I then selected another point and ran the code. I did all four corners of the sketch. This picture illustrates the results of running this code every time i selected a point. Is this the information you are looking for? Those G code commands are missing because they are machine specific and not standards. Most cam systems won't have them either but can be set up for those canned cycles to be generated in the post processor.
Code: Select all
ah yes that was my fault. For updating something I click "mark to recompute" and then F5. But sometime I press "Set tip" instead, I saw someone do it in a tutorial a long time ago, I find that button the fastest sometime. Will stop doing that now
Sounds cool, @Nextjob!. Would you consider starting a new thread discussing this along with screenshots ?Nextjob wrote: ↑Thu Jan 16, 2020 5:12 pmNot sure if this is what you are looking for, but I have been playing around with controlling FreeCAD via python4delphi. I have a proof of concept program that is basically a Notepad style editor which receives coordinates selected in the FreeCAD window. I could provide a link to download the code / executable if you are interested. The downside is this currently only works on windows.