pixel8er
2010-10-23, 02:11 AM
Hi all
I was wondering how to create a set of folders based on my template folder structure, rename the drawing files to include the project number and repath them - ideally with a script as I can understand them!
For example:
_I have a master template folder structure which is pre-populated with empty template drawing files. The drawing files are contained in folders called 'Work' and 'Sheet'.
_'Work' folder containing drawing files named XXXXX_TEXT.dwg, XXXXX_HATCH.dwg, etc
_'Sheet' folder with drawing files named XXXXX_L001.dwg, XXXXX_L002.dwg, etc
_The drawing files in the 'Work' folder are xref'd into the drawing files in the 'Sheet' folder as overlay with relative paths
I want to:
1. deploy a copy of the master template folder structure to a specific location on the network
2. rename the root folder from 'Template_MasterFolderStructure' to '12345_ProjectName' or whatever the new project number and name is
3. rename the files in both 'Work' and 'Sheet' folders to replace XXXXX with the project number ie 12345
4. repath the xrefs accordingly
I'm not sure if this is even possible with a script. I appreciate any pointers.
Thank you
Paul
I was wondering how to create a set of folders based on my template folder structure, rename the drawing files to include the project number and repath them - ideally with a script as I can understand them!
For example:
_I have a master template folder structure which is pre-populated with empty template drawing files. The drawing files are contained in folders called 'Work' and 'Sheet'.
_'Work' folder containing drawing files named XXXXX_TEXT.dwg, XXXXX_HATCH.dwg, etc
_'Sheet' folder with drawing files named XXXXX_L001.dwg, XXXXX_L002.dwg, etc
_The drawing files in the 'Work' folder are xref'd into the drawing files in the 'Sheet' folder as overlay with relative paths
I want to:
1. deploy a copy of the master template folder structure to a specific location on the network
2. rename the root folder from 'Template_MasterFolderStructure' to '12345_ProjectName' or whatever the new project number and name is
3. rename the files in both 'Work' and 'Sheet' folders to replace XXXXX with the project number ie 12345
4. repath the xrefs accordingly
I'm not sure if this is even possible with a script. I appreciate any pointers.
Thank you
Paul