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.

CatalogHandlerImportCustomComponentItems Method

Imports custom component items (*.uel) from path to component catalog. Import overrides the existing custom components in the catalog without any warnings.

Namespace:  Tekla.Structures.Catalogs
Assembly:  Tekla.Structures.Catalogs (in Tekla.Structures.Catalogs.dll) Version: 2023.0.1
public bool ImportCustomComponentItems(
	string path


Type: SystemString
The path to be used for import. This can be a uel file or a folder containing one or more uel files.

Return Value

Type: Boolean
true if successful.
using System;
using Tekla.Structures.Catalogs;

public class Example
       public void Example1()
           if (new CatalogHandler().ImportCustomComponentItems(System.IO.Path.GetTempPath()))
               Console.WriteLine("Custom components imported successfully to catalog.");
See Also