Hi All,
I have so many sheet files created using SSM. The title block file which was XRefed in these sheets has a wrong file name. I am going to rename the file, which, I suppose, will screw up all my sheets. A solution I found was;
Rename the Title Block File
Since File Name is changing I think Reference Manager doesn't help. So I have created a script file to detach the existing XRef (with wrong name) and Attach the new one (the renamed file)
Run the script on all the files using ScriptPro
Now, the problem is that, before running the script pro, I have to make sure the Title Block is getting attached in the Layout Space and not in the model space. So for that, I have to activate the Layout tab first in my script file. Each sheet has only one layout. So I wrote the script like this;
;;SCRIPT STARTS HERE
FILEDIA 0
LAYOUT
SET
-XREF
DETACH
-XREF
ATTACH
0,0
1
1
0
FILEDIA 1
;;SCRIPT ENDS HERE
I hope the Blank line after 'SET' would set the only existing layout current.
Now I hope I explained the whole scenario.
Is it there a way faster and safer?