Yes I did misunderstand, looking at the content of your .txt file I can see this retains the feature for the Client to select the target Cam project and provides a better method of getting the file name. I’ll give this a go over the next day or so.
Dale
Thanks, I tried your sample which works. This removes the need to extract the filename from the command window history text which I never really liked as a method of obtaining the filename.
I do have one question - your routine checks the status of the run mode i.e.
" If (mode = RunMode.Interactive) Then"
In what circumstances would this not be set to ‘Interactive’, is it possible to run our script from within another script and is this what the above check is referring to ?
Dale
I have added 2D dxf export to the script and it seems to work ok, I am able to select objects and export the 2D sketch.curve of the boundaries (Lines & Arcs), this is working ok as far as it goes.
I would like to add the option of exporting the surface boundaries as 2d objects/polylines/sketches (Lines & Arcs) as complete entities. At the moment they are being output as a series of discrete Lines & Arcs.
I know the R12 option causes splines to be represented by a series of arcs/lines but wondered if the script could be altered to output the 2d paths as a series of individual curves consisting of lines & arcs.