TeklaStructuresFilesLocateFile Method

This method locates a file in the specified search directories. The first found file will be returned. If the file is not found in the search directories, it will return false and the out parameter will be empty.

Namespace:  Tekla.Structures
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
Syntax
public static bool LocateFile(
	List<string> searchDirectories,
	string fileName,
	out string absoluteFileName
)

Parameters

searchDirectories
Type: System.Collections.GenericListString
list of search directories
fileName
Type: SystemString
filename to search
absoluteFileName
Type: SystemString
output path if located

Return Value

Type: Boolean
true if found, false if not
See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next