There is a SetBordersFilePath method on the ProjectData object.
Here is a script that sees if the current borders.ini file is local, if not it copies that file locally and updates the prj file:
Dim FSO : Set FSO = CreateObject("Scripting.FileSystemObject")
Dim sProjectPath : sProjectPath = GetProjectData.GetProjectFilePath()
Dim sLocalBorders : sLocalBorders = FSO.BuildPath(FSO.GetParentFolderName(sProjectPath), "borders.ini")
Dim sCurrentBorders : sCurrentBorders = GetProjectData.GetBordersFilePath(True)
If Not sCurrentBorders = sLocalBorders Then
FSO.CopyFile sCurrentBorders, sLocalBorders
When using the referenced code, will the borders automatically get updated to what is in the newly pointed to borders file? If not, are we stuck with closing the project and/or Dx and reopening the project? It seems silly that it is impossible to create a new schematic that has the correct borders from the beginning. This is a problematic training issue.
The script just copies the borders.ini file locally, and tells DxDesigner to use the local file instead of the file in the Central Library.
I assume the reason you want a local copy is so that you can edit the border properties for that project, and then run the Update Border Properties command.
Please give the script a try, and let me know if there is something missing.
This script is the best solution that exists. I was supplied some different code some time ago, and it did not also change the pointer to the file at the same time. This code should be supplied to EVERY Mentor AE that is attempting to support fielding EE2007.x anywhere in the world. The best solution would be that the tool should just copy in the borders file that the template project points to on creation of a new schematic, and also change the reference at the same time. This code solution is the least inelegant that we can do given the current state of the tool.
Thank you very much.
I'm glad it helps. If I'm not mistaken, the next release (EE2007.5) will automatically copy borders.ini to the project directory if the project template has a local borders.ini.
In the version 2007-5
if you use change border and update the file border.ini to select another title border is not suffisant because
the setup/setting memorize the older name
is necessary to close and reopen the schematic
to update the border attributs in a many pages the best way is to delete and insert the new border by page is more faster.
my recommandation is : don't use change border.
where is the file path?