Hello,
The company that I work for does it's own design work and has built multiple manufacturing locations. Because of this, a number of these locations are designed and built "exactly" the same, using the same equipment tag numbers and "model" orientation. As expansion and upgrades happen across all facilities, multiple/similar layouts need to be created for each location. Thanks to the first section of coding in ronjonp's,
find and replace (added some user input), I'm able to swap out one projects models for another, XXX-01-M123 for YYY-02-M123, in the master assembly files and all the layouts that pertain.
I'm have trouble with the layout portion of this process. The assembly files are x-refed into the layout and some of those layers are modified; color, frozen, ect. Because we use standard layers for everything, I would like to take the modified layer properties from the original layout and apply those same properties to the new x-ref layers. Because the x-ref layers have different prefixes, I lose all overrides.
I know that renaming an x-ref layer is not possible, but I didn't know if this could be done through a list or a table.
I am fairly new to writing LISP routines and I have searched for answers for a couple of days to no avail. Any guidance would be greatly appreciated, or you could just tell me that I am asking for the impossible.
Thanks in advance.