When an item changes lifecycle transition, a PDF of all associated drawings has to be created.


This sample job is triggered on a lifecycle transition, remember to add it without the *.ps1 extension. It creates the array $fileitemAssociations containing all associated files in that item. It then takes only the files that end with *.idw and *.dwg and checks if there is a primary link. Is there a primary link that drawing is taken, is there no primary link the first drawing is taken. Then it proceeds with the normal Sample.CreatePDF Job and a PDF is created for all drawings in that item.