RebarItemExport Method |
Exports the rebar item in the catlog to given file name.
If path is not given rebar is exported to model folder.
If filename is empty rebar name is used as filename.
Namespace: Tekla.Structures.Catalogs
Assembly: Tekla.Structures.Catalogs (in Tekla.Structures.Catalogs.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
Parameters
- filename
- Type: SystemString
The export file name of the item.
Return Value
Type: BooleanTrue on success.
using System; using Tekla.Structures.Catalogs; public class Example { public void Example1() { RebarItem item = new RebarItem(); if (item.Select("A500HW", "10", RebarItem.MAIN_USAGE)) { string filename = System.IO.Path.GetTempPath() + "\\" + "A500HW_10_MAIN"; if (item.Export(ref filename)) { Console.WriteLine("A500HW exported successfully"); } } } }