IPCsSymbolFolderAliases


Topic:

Properties and methods of IPCsSymbolFolderAliases


Class hierarchy:

IPCsApplication IPCsApplicationPreferences IPCsSymbolFolderAliases


Properties / Methods:

Add Adds a new alias to the list of allready existing aliases. Parameters needed: a string naming the alias, and a string with the folder.
Syntax:
procedure Add(Alias: WideString; Path: WideString);
GetPathOfFile Used to get filelocation for a specific symbol. Parameters needed: a string with the symbol libtypename, and a IPCsDrawing. Result type is a WideString, with the full path to the symbol. If no path is found, the resultstring will be the same as the string entered as first parameter.
Syntax:
function GetPathOfFile(FileName: WideString; Drawing: IPCsDrawing) : WideString;
If nil is used af Drawing-parameter, it will only look on the harddrive for the symbol.
If a drawing is passed as second parameter, it will be searched for that symbolname, and the full used path in the projectfile, will be returned
Aliases This is an array, containing all alias-names. Get array length by using IPCsSymbolFolderAliases.Count.
Get a string by selecting a specfic arrayitem, for instance Aliases[0]
Folders This is an array, containing all Folderpaths. Get array length by using IPCsSymbolFolderAliases.Count.
Get a string by selecting a specfic arrayitem, for instance Folders[0]
Count Length of Alias-array. (which is also has the same leght as the Folders-array)


Comments:

Items are mathing in pairs in the two arrays "Aliases" and "Folders"
So the matching folder for Aliases[3] is Folders[3]