Exporting data for Cam (CNC) purposes

@Dale

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.

Thanks again.

michael

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 ?

Thanks

michael

Yes exactly. The sample command posted can be run interactively like this:

DolphinExport

or as a scriptable command like this:

-DolphinExport

– Dale

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.

The script I am currently using is -

            Dim script As String = "-Export " & Chr(34) & exportedfilename & Chr(34) &
                " Scheme " & Chr(34) & "R12 Lines & Arcs" & Chr(34) & " _Enter"

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.

Thanks

michael

Dale

ps - I tried removing the “Lines & Arcs” part of the script but it did not seem to make any difference.

michael

Hi @michael17,

Perhaps the R12 Natural is the scheme you need?

– Dale