This script will scan the folder where you have saved your pdfs and create a link in a parameter of the revision family. This will allow to open the pdf related to the selected revision directly from Revit.
DateTime.ByDate and DateTime.Format can help converting the two date in a common format that can then be used to match the drawing with its file path:
Once the match is complete we have a list of strings ready to be written in the revision family parameter.
The script can be downloaded here.
Directory.Contents+ from Clockwork allows to search for a drawing number in a folder and all its sub-folders. GetDateModified... from Bakery allows to retrieve the last modified date which ideally should match the revision date in the Revit sheet.
DateTime.ByDate and DateTime.Format can help converting the two date in a common format that can then be used to match the drawing with its file path:
Once the match is complete we have a list of strings ready to be written in the revision family parameter.
The script can be downloaded here.
Commenti