I would like getting the DXF option before "Save As" DXF. But, for each options I get the result of the DXF version. My Macro is:
Dim swApp As Object Dim DxfVersion As Integer Dim DxfOutputFonts As Integer Dim DxfMappingFileIndex As Integer Dim AutoSaveInterval As Integer Sub main() Set swApp = Application.SldWorks
' Get the version of DXF for exporting
DxfVersion = swApp.GetUserPreferenceIntegerValue(swDxfVersion) Version = Str(DxfVersion) ' Get whether TrueType fonts are exported (1) or only standard (0)
DxfOutputFonts = swApp.GetUserPreferenceIntegerValue(swDxfOutputFonts) Fonts = Str(DxfOutputFonts) ' Get the map file index the file used for custom DXF mapping
DxfMappingFileIndex = swApp.GetUserPreferenceIntegerValue(swDxfMappingFileIndex) Index = Str(DxfMappingFileIndex) ' Get the number of operations between auto-saves
AutoSaveInterval = swApp.GetUserPreferenceIntegerValue(swAutoSaveInterval) Interval = Str(AutoSaveInterval)
Text = Version + Chr(10) + Fonts + Chr(10) + Index + Chr(10) + Interval
Box = MsgBox(Text, vbOKOnly, DXF)
End Sub
Thomas W. Wilson