PathScripts ImportError: cannot import name PathProject

Here's the place for discussion related to CAM/CNC and the development of the Path module.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
dino
Posts: 113
Joined: Mon Sep 22, 2014 11:28 pm

PathScripts ImportError: cannot import name PathProject

Post by dino »

Dear,
I need to use Python scripts to automate the productions of GCode from wires. Wiki Path_scripting tell about the Path Project feature, but it don't exist... Can help me to understand how to add the tool, tooltable etc?

Thak you
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: PathScripts ImportError: cannot import name PathProject

Post by mlampert »

PathProject is obsolete by now - in fact that wiki page needs a major rewrite.

If you want to script Path then have a look at PathJob - or even better, look at how PathJobGui uses PathJob and replicate that in your script.
dino
Posts: 113
Joined: Mon Sep 22, 2014 11:28 pm

Re: PathScripts ImportError: cannot import name PathProject

Post by dino »

There is no documentations for Path script?
dino
Posts: 113
Joined: Mon Sep 22, 2014 11:28 pm

Re: PathScripts ImportError: cannot import name PathProject

Post by dino »

Hi,
I am confused form Path, PathScripts, PathScripts.PathUtil, PathScripts.PathUtils...
For now I have only created a job by:

Code: Select all

job = PathScripts.PathJob
job.Create("Name of job", list(o.Object for o in App.Gui.Selection.getSelectionEx()))
I am not able to add tools to ToolController and paths to Operations (from Path.fromShapes())

Help me please!
Post Reply