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: 2024.0.0+a110b435391768740483e3032720a566518c9a63
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