API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

TeklaStructuresFilesGetAttributeFile Method (ListString, String)

Gets a file info representing the first match in the search directories.

Namespace:  Tekla.Structures
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2023.0.1
public FileInfo GetAttributeFile(
	List<string> searchDirectories,
	string fileName


Type: System.Collections.GenericListString
The list of directories to be used for searching for the file.
Type: SystemString
The name of the file including the file extension.

Return Value

Type: FileInfo
A file info for the first match in the directory list. Null if no match was found.
See Also