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: 2023.0.3
Syntax
public bool Copy(
	string newName
)

Parameters

newName
Type: SystemString
The new name of the copied profile item.

Return Value

Type: Boolean
True on success.
Examples
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");
                   }
               }
           }
       }
}
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