᏿Conisio Bite Actionס෿PDF erstellen෿PDF erstellen㗿erzeugt ein PDF mittels SolidWorks und SWCreateOuptutsࣿ%.slddrwÿÿ "叿IF/WENN %PDMTempFolder% EXISTIERT LOKAL KEIN_FALL THEN GOTO/GEHE DANN ZU PDMTempOK৿PDMTempOK࿿%PDMTempFolder%ÿ࿿%PDMTempFolder%࿿%PDMTempFolder%৿PDMTempOK蟿IF/WENN %RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe EXISTIERT IM TRESOR KEIN_FALL THEN GOTO/GEHE DANN ZU Get creation toolᇿGet creation tool㟿%RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exeÿ绿Unable to locate %RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe Make sure it is added and checked into the vault.绿Unable to locate %RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe Make sure it is added and checked into the vault.ㇿIF/WENN ALWAYS/IMMER THEN GOTO/GEHE DANN ZU EndϿEndÿÿᇿGet creation tool㟿%RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe㟿%RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe㧿%RootFolderPath%\Apps\SWCreateOutput\Interop.SldWorks.dll㧿%RootFolderPath%\Apps\SWCreateOutput\Interop.SldWorks.dll㣿%RootFolderPath%\Apps\SWCreateOutput\Interop.SwConst.dll㣿%RootFolderPath%\Apps\SWCreateOutput\Interop.SwConst.dll௿Block STARTᗿOnly process SW files䋿IF/WENN %Ext% = .slddrw KEIN_FALL THEN GOTO/GEHE DANN ZU RightType৿RightType׿%Ext%߿.slddrw䋿IF/WENN %Ext% = .sldasm KEIN_FALL THEN GOTO/GEHE DANN ZU RightType৿RightType׿%Ext%߿.sldasm䋿IF/WENN %Ext% = .sldprt KEIN_FALL THEN GOTO/GEHE DANN ZU RightType৿RightType׿%Ext%߿.sldprtㇿIF/WENN ALWAYS/IMMER THEN GOTO/GEHE DANN ZU EndϿEndÿÿ৿RightType柿IF/WENN %RootFolderPath%\%DestFolder% EXISTIERT IM TRESOR THEN GOTO/GEHE DANN ZU Destination folder OKᗿDestination folder OK᷿%RootFolderPath%\%DestFolder%ÿ᷿%RootFolderPath%\%DestFolder%᷿%RootFolderPath%\%DestFolder%ᗿDestination folder OK嫿IF/WENN %RevDestFilePath% EXISTIERT IM TRESOR THEN GOTO/GEHE DANN ZU Delete existing fileᓿDelete existing fileᇿ%RevDestFilePath%ÿ䫿IF/WENN ALWAYS/IMMER THEN GOTO/GEHE DANN ZU Ensure source file is cached᳿Ensure source file is cachedÿÿᓿDelete existing file ⫿DELETE/LÖSCHEN%RevDestFilePath% AUS_TRESORᇿ%RevDestFilePath%᳿Ensure source file is cachedᓿ%PathToSelectedFile%ᓿ%PathToSelectedFile%⧿Launch SWCreateOutput and create the file 瓿 %RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe option:pdf save:no "%PathToSelectedFile%" "%PDMOutputPath%"ÿ㟿%RootFolderPath%\Apps\SWCreateOutput\SWCreateOutput.exe㯿option:pdf save:no "%PathToSelectedFile%" "%PDMOutputPath%" ῿WARTEN bis Datei wurde erstellt࿿%PDMOutputPath%⓿%PDMOutputPath% => %RevDestFilePath%࿿%PDMOutputPath%ᇿ%RevDestFilePath%ᇿ%RevDestFilePath%ᇿ%RevDestFilePath%ᗿautomatisch generiert ᷿DELETE/LÖSCHEN%PDMOutputPath%࿿%PDMOutputPath%ϿEnd૿Block ENDE૿DestFolderd⻿Right(%DirOfSelectedFile%, %DestFolderLength%)ÿ࿿RevDestFilePathd⿿%RootFolderPath%\%DestFolder%\%RevDestFileName%ÿ࿿RevDestFileNamed᏿%FileNameNoExt%.PDFÿۿExtPosd⓿ReverseFind(%NameOfSelectedFile%, .)ÿ෿FileNameNoExtd⓿Left(%NameOfSelectedFile%, %ExtPos%)ÿϿExtd⻿Right(%NameOfSelectedFile%, %ExtensionLength%)ÿ໿FileNameLengthd᧿Len(%NameOfSelectedFile%)ÿ࿿ExtensionLengthd῿Sub(%FileNameLength%, %ExtPos%)ÿᓿExtensionNoDotLengthd᧿Sub(%ExtensionLength%, 1)ÿ௿d_DocNumberl࿿Document Numberÿ෿PDMOutputPathd⇿%PDMTempFolder%\%RevDestFileName%ÿ෿PDMTempFolderd૿C:\PDMTempÿ૿RootLengthd៿Len(%RootFolderPath%)+1ÿ෿FileDirLengthd᣿Len(%DirOfSelectedFile%)ÿჿDestFolderLengthd⋿Sub(%FileDirLength%, %RootLength%)ÿ