Berserk
Automotive
- Jan 23, 2003
- 248
Hello,
Using ugzip, we make a copy of a sub asm to isolate it from thousands of other component/sub asm files.
The original folder that contain the top asm also includes the drawing files for most of the components.
Since the drawing files are not included in the top asm, ugzip does not include them in the isolated sub asm.
Is there a way to copy/move all the drawings files that has a match with the sub asm model files?
The file format for the models are abc12345.f01.0010.prt and for the corresponding drawing is abc12345.d01.0010.prt. The only difference is the f & d in the middle of the file name.
What I have been trying is generating a text file that list the model file names in the sub asm folder and trying to use that list to copy over the drawing files. I can't figure out how to do it. I am thinking that the batch file or script should be looking at the first 8 characters of the file names in the list, ignore the rest of the characters and copy or move the files into the specified folder. I don't care if the script overwrites the existing models of the sub asm in the sub asm folder.
Really appreciate any help or hints!
TIA!
Roark
UGNX 8/8.5/9
Windows 7 64bit
UGNX7.5.2.5 MP3 Rev D \ Windows 7 64bit
Productive Design Services
Using ugzip, we make a copy of a sub asm to isolate it from thousands of other component/sub asm files.
The original folder that contain the top asm also includes the drawing files for most of the components.
Since the drawing files are not included in the top asm, ugzip does not include them in the isolated sub asm.
Is there a way to copy/move all the drawings files that has a match with the sub asm model files?
The file format for the models are abc12345.f01.0010.prt and for the corresponding drawing is abc12345.d01.0010.prt. The only difference is the f & d in the middle of the file name.
What I have been trying is generating a text file that list the model file names in the sub asm folder and trying to use that list to copy over the drawing files. I can't figure out how to do it. I am thinking that the batch file or script should be looking at the first 8 characters of the file names in the list, ignore the rest of the characters and copy or move the files into the specified folder. I don't care if the script overwrites the existing models of the sub asm in the sub asm folder.
Really appreciate any help or hints!
TIA!
Roark
UGNX 8/8.5/9
Windows 7 64bit
UGNX7.5.2.5 MP3 Rev D \ Windows 7 64bit
Productive Design Services