I am trying to create a macro that will update the sheet format and index the revision for a specific drawing.
I found some code for the sheet format section from here: Macro: Batch Reload-Replace Drawing Sheet Format (sub folders as well)
I also found some code for the revision from here: Delete all Rows and add new in Revision table
Essentially I would like the macro to do this:
- Macro to work on currently opened document
- Reload the sheet format based on what is referenced in the code
- Index the Rev Table to the next available letter/number
- Push the Rev Variable to the referenced model in the drawing to the custom property "Revision"
I've included the code that I have tried to splice together@.
Note: the included code, it is currently defined to work on a batch folder. I would like it to work on an individual file.
Any help is appreciated.