CatalogHandlerExportProfileItems Method

Exports the profile items in the profile database to given path and file name. Currently library profiles, sketch profiles and clb profiles are supported. Library profiles are exported to *.lis format. Sketch profiles are exported to *.uel format. Clb profiles are exported to *.clb format. If profiles are not available, export fails. If path is empty, export fails. If file name is empty, export fails.

Namespace:  Tekla.Structures.Catalogs
Assembly:  Tekla.Structures.Catalogs (in Tekla.Structures.Catalogs.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
Syntax
public bool ExportProfileItems(
	IList<string> profileNames,
	string path,
	string fileName
)

Parameters

profileNames
Type: System.Collections.GenericIListString
path
Type: SystemString
fileName
Type: SystemString

Return Value

Type: Boolean
True on success.
Examples
using System;
using Tekla.Structures.Catalogs;
public class Example
{
    public void Example1()
    {
        var profiles = new[] { "HEA100", "HEB100", "HEAA300" };

        if (new CatalogHandler().ExportProfileItems(profiles, System.IO.Path.GetTempPath(), "I Profiles"))
        {
            Console.WriteLine("Profiles exported successfully");
        }
    }
}
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