Werte Gemeinde!
Bin kein iLogic-Fachkundiger-- brauche eure werte Hilfe!
Möchte mit einer iLogic-Regel aus einer IDW ( auch mehrere Blätter ) eine PDF erzeugen lassen, welche im gleichen Pfad mit dem IDW-Namen gespeichert wird erzeugen lassen....-das funkt soweit mit dem Code:
path_and_name = ThisDoc.PathAndFileName(False)
PDFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD96-2F4D-42CE-8BE0-8AEA580399E4}")
oDocument = ThisApplication.ActiveDocument
oContext = ThisApplication.TransientObjects.CreateTranslationContext
oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism
oOptions = ThisApplication.TransientObjects.CreateNameValueMap
oDataMedium = ThisApplication.TransientObjects.CreateDataMedium
If PDFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then
oOptions.Value("All_Color_AS_Black") = 1
oOptions.Value("Remove_Line_Weights") = 1
oOptions.Value("Vector_Resolution") = 400
oOptions.Value("Sheet_Range") = Inventor.PrintRangeEnum.kPrintAllSheets
End If
oDataMedium.FileName = path_and_name & ".pdf"
PDFAddIn.SaveCopyAs(oDocument, oContext, oOptions,oDataMedium)
MessageBox.Show("PDF saved to: " & path_and_name, "PDF Saved", MessageBoxButtons.OK)
NUN möchte ich dem PDF noch das aktuelle Datum als Extension mitgeben
z.B. 04042016_FILENAME.PDF
genau daran scheitere ich ;-(
Wer ist so nett und kann mir unter die Arme greifen
thxs a lot
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP