CatalogHandlerImportShapeItemsFromGeometryFiles Method |
Imports shape geometry items from geometry files in specified folder.
Import supports following file formats: ".skp", ".dxf", ".dwg", ".step", ".iges", ".stp", ".igs", ".ifc", ".dgn", ".trb"
File name is used as shape name.
Import throws exception if model is not open.
Import overrides the existing shape items in the catalog without any warnings.
Namespace: Tekla.Structures.Catalogs
Assembly: Tekla.Structures.Catalogs (in Tekla.Structures.Catalogs.dll) Version: 2025.0.0-alpha00045580+dc02c3918546f1e94eb2d3b13ea99057fb3313e0
Parameters
- path
- Type: SystemString
The path to be used for import.
Return Value
Type: Booleantrue if successful.
using System; using Tekla.Structures.Catalogs; public class Example { public void Example1() { if (new CatalogHandler().ImportShapeItemsFromGeometryFiles(System.IO.Path.GetTempPath())) Console.WriteLine("Shape geometries imported successfully to model."); } }