I'm trying to convert a normal path (new generated) to Work path:
...[rest of the code]
var thePath = doc.pathItems.add("thePath", pathArray);
thePath.kind = PathKind.WORKPATH;
But I'm getting the error 1220: Illegal argument in the last line
What I'm doing wrong?
Is it possible to convert a normal path into a Work Path?
Or: is it possible to add "thePath" as a "work path" instead as a normal path?