AnsweredAssumed Answered

Exporting to dxf from blank sheet

Question asked by Ashok Anumula on Jan 10, 2019
Latest reply on Jan 10, 2019 by Ashok Anumula

I am trying to make flat patterns of parts to be used by laser/waterjet/flame cut machines. I create a blank sheet in my drawing and export it to dxf. Problem even though there is not sheet format is associated with the blank sheet, i have my title blocks, notes in dxf just not visible. This requires me to purge the dxf to clean it up. Not sure why soidworks is exporting title block where there is not one. I use a macro to create the dxf and doing it manually still does the same thing.


How I create the dxf sheet is through a macro, and I tried it even creating a new sheet manually as well:

Sub main()
Dim swSheetName As String
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
If swModel.GetType = swDocDRAWING Then
Set swDrawingDoc = swApp.ActiveDoc
bRet = swDrawingDoc.NewSheet3(Fn_GetDxfSheetName, swDwgPaperSizes_e.swDwgPaperBsize, swDwgTemplates_e.swDwgTemplateNone, 1, 1, False, Empty, 0.279, 0.432, "")
MsgBox "Not a drawing"
End If
End Sub

The result is


my dxf save as options


Resultant dxf file


In dxf my title blocks are there just not visible in model space. Our machines go crazy if I do not reopen the dxf and purge all unused objects. Wondering what I need to do solidworks side this will not happen.