• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

pdf

  • Thread starter Thread starter fast975
  • Start date Start date

fast975

Guest
Good evening to all and good work.
someone knows a key combination or how to add it to solidwork so that they can create the pdf directly from the table, without having to do file>save with name>choose the pdf format > save.

Thank you all.
 
ciao, scusa il ritardo,
riporto una macro in vba che fa quello che chiedi.

dim swapp as sldworks.sldworks
dim part as sldworks.modeldoc2
dim swmodeldocext as sldworks.modeldocextension
dim boolstatus as boolean
dim longstatus as long, longwarnings as long
dim swexportpdfdata as sldworks.exportpdfdata
dim lerrors as long
dim lwarnings as long
dim filename as string
dim spathname as string
sub main()
set swapp = application.sldworks
set part = swapp.activedoc
set swmodeldocext = part.extension
spathname = part.getpathname

filename = left(spathname, instrrev(spathname, "."))
filename = filename & "pdf"
set swexportpdfdata = swapp.getexportfiledata(1)
if swexportpdfdata is nothing then msgbox "nothing"
swexportpdfdata.viewpdfaftersaving = false
swexportpdfdata.exportas3d = false
boolstatus = swmodeldocext.saveas(filename, 0, 0, swexportpdfdata, lerrors, lwarnings)
end sub
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top