I need to incorporate 3d pdf into an existing macro. Everyday I deal with many (100-700) files that I need to save as STEP,IGES, SAT, etc... I already have a macro that incorporates all ofthese files. Within that macro, i added 3d pdf. If I first open asldprt file save as pdf and check the 3d pdf box, the macro willcreate 3d pdf. But if i do not, it will just create a pdf of thescreen shot.
How do I tell the macro to make the file a 3d pdf without having tofirst save a file as pdf and check the 3d pdf button? I am not toofamiliar with API but this is how I have it set up.
NewSavedName = (ExportDirName &Name2 & "3D" & ".PDF") 'Pass new name to variable
bRet = swModel.SaveAs4(NewSavedName, swSaveAsCurrentVersion,swSaveAsOptions_Silent, _
nErrors, nWarnings)
If bRet = False Then
nRetval = swApp.SendMsgToUser2("Problems saving file.",swMbWarning, swMbOk)
End If
Any help is greatly appreciated!SolidworksApi macros
How do I tell the macro to make the file a 3d pdf without having tofirst save a file as pdf and check the 3d pdf button? I am not toofamiliar with API but this is how I have it set up.
NewSavedName = (ExportDirName &Name2 & "3D" & ".PDF") 'Pass new name to variable
bRet = swModel.SaveAs4(NewSavedName, swSaveAsCurrentVersion,swSaveAsOptions_Silent, _
nErrors, nWarnings)
If bRet = False Then
nRetval = swApp.SendMsgToUser2("Problems saving file.",swMbWarning, swMbOk)
End If
Any help is greatly appreciated!SolidworksApi macros