Page 1 of 1

Start SC with parameter (File.dxf)

Posted: Sat Dec 01, 2018 7:59 pm
by cnc-peter
I would like to start SC with a parameter containing the Drawing Name (a DXF File) .
I still create my drawings in Rhino 5.x. Inside Rhino I have a macro that exports the drawing as a DXF File and after this it starts SC. The file name ist allways the same. SC starts, but the error is "The file format is not supported.
Importing the generated DXF file works without problem. (SC and Rhino)
Any ideas from anyone ?
Regards and thanks in advance

Re: Start SC with parameter (File.dxf)

Posted: Sun Dec 02, 2018 12:46 am
by djreiswig
I think the command line parameter is looking for a job file not a drawing. I don't think there is a way to load a drawing file from the command line.

Re: Start SC with parameter (File.dxf)

Posted: Sun Dec 02, 2018 7:41 pm
by Old Iron
When you import a dxf there's a prompt at the bottom of the box (Use Drawing Name as Part Name) check it.

Re: Start SC with parameter (File.dxf)

Posted: Mon Dec 03, 2018 12:41 pm
by Les Newell
There isn't any way to auto load a drawing using the command line. However you may be able to use the autoload plugin. In SheetCam go to Options->plugin options->autoload. Enable it then enable 'Scan a directory'. Select the directory you want to monitor. Turn on 'Check for changes at startup'

When it detects a changed file in that directory it will automatically ask you if you want to load the drawing. The only down side to this setup is that you always have to save your drawings to a particular directory.

Re: Start SC with parameter (File.dxf)

Posted: Mon Dec 03, 2018 5:42 pm
by cnc-peter
Hello Les,
thank you very much, its working as you described.