Start SC with parameter (File.dxf)

Having problems with or questions about SheetCam? Post them here.
Post Reply
cnc-peter
Posts: 18
Joined: Sat May 20, 2017 5:05 pm

Start SC with parameter (File.dxf)

Post 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
User avatar
djreiswig
Posts: 471
Joined: Sat Feb 20, 2016 4:47 am
Location: SE Nebraska

Re: Start SC with parameter (File.dxf)

Post 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.
Old Iron
Posts: 2
Joined: Wed Feb 08, 2017 4:54 am

Re: Start SC with parameter (File.dxf)

Post 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.
Attachments
Sheetcam.JPG
Sheetcam.JPG (32.35 KiB) Viewed 734 times
Last edited by Old Iron on Mon Dec 03, 2018 3:03 pm, edited 1 time in total.
User avatar
Les Newell
Site Admin
Posts: 3661
Joined: Thu May 11, 2006 8:12 pm

Re: Start SC with parameter (File.dxf)

Post 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.
cnc-peter
Posts: 18
Joined: Sat May 20, 2017 5:05 pm

Re: Start SC with parameter (File.dxf)

Post by cnc-peter »

Hello Les,
thank you very much, its working as you described.
Post Reply