DWG Format problem during 'export' in Task Scheduler

I am trying to use task scheduler to export a folder's worth of SW2012 drawings to dwg in a separate folder. 

The problem I'm having is that most of my drawings are multiple pages, and the export creates a separate file for each page.  I need a SINGLE dwg for each SW2012 drawing.  And not what I'm getting now.  (The PDF exports are working great though).

Thanks.

SolidworksTask Scheduler
Answers 4
CE
CE 2013-10-30 Best Answer

David,

   Not sure if it will work but it is worth a try.  Try opening up one drawing and do a save as, change it to dwg but do not hit save yet.  Click on the options at the bottom left and check to make sure "export all sheets to one file" is checked at the bottom.  If you want them all to be in paper space check "export all drawing sheets to paper space" as well. Once you click ok it should save your settings.  You can then exit out and try to do the task scheduler again to see if it works.

Hope this helps!!

Chris

SF
SF 2013-10-31

That didn't work. 

I'm thinking that a line or two may need to be added to this section of the SWB:

'Export Options:

   

    If (exportFileType = "dxf" Or exportFileType = "dwg") Then

     'DXF/DWG

     swApp.SetUserPreferenceToggle 8, dxfMappingFlag

     swApp.SetUserPreferenceToggle 21, dxfDontShowMappingFlag

     swApp.SetUserPreferenceIntegerValue 0, dxfSaveFormat

     swApp.SetUserPreferenceIntegerValue 1, dxfFontTrueType

     swApp.SetUserPreferenceIntegerValue 2, 0

     If (dxfLineStyleAutocadStdFlag) Then

      swApp.SetUserPreferenceIntegerValue 135, 0

     Else

      swApp.SetUserPreferenceIntegerValue 135, 1

     End If

     If (dxfOutputNoScaleFlag) Then

      swApp.SetUserPreferenceIntegerValue 136, 0

     Else

      swApp.SetUserPreferenceIntegerValue 136, 1

     End If

     swApp.SetUserPreferenceIntegerValue 253, 0

     swApp.SetUserPreferenceDoubleValue 79, dxfOutputScaleFactor

     swApp.SetUserPreferenceStringListValue 0, dxfMappingFileName

Some of the attributes in the dialog box appear here, but not all... and I'd have no idea what magic #'s would need to be passed in to essentially have the task scheduler set the radio button for "Export all sheets to one file"

Help?

CE
CE 2013-10-31

David,

   There is a fellow named Deepak on the site that is pretty darn amazing with coding.  Hopefully he will see what you are asking to do and chime in.  I am of no further use when it comes to the coding part of things.

Chris

DG
DG 2013-11-01

swApp.SetUserPreferenceIntegerValue swUserPreferenceIntegerValue_e.swDxfMultiSheetOption, swDxfMultisheet_e.swDxfMultiSheet