LibraryProfileItemCopy Method |
Copy the library profile item in the profile database to item with new name.
Namespace: Tekla.Structures.Catalogs
Assembly: Tekla.Structures.Catalogs (in Tekla.Structures.Catalogs.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
Parameters
- newName
- Type: SystemString
The new name of the copied profile item.
Return Value
Type: BooleanTrue on success.
using System; using Tekla.Structures.Catalogs; public class Example { public void Example1() { LibraryProfileItem item = new LibraryProfileItem(); if (item.Select("HEA100")) { string newName = "HEA100C"; if (item.Copy(newName)) { LibraryProfileItem copy = new LibraryProfileItem(); if (copy.Select(newName)) { Console.WriteLine("HEA100 copied successfully to HEA100C"); } } } } }