Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > INTERCONNECT Element library

addtolibrary

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Adds the selected element to the currently selected folder under Custom library.

 

Supported Product: INTERCONNECT

 

Syntax

Description

addtolibrary ("name", replace);

Adds an element to the currently selected folder under Custom library.

The "name" specified is the custom folder name. If no folder named as specified, a new folder will be generated under the Custom library.

The "replace" is a boolean value. If "replace" is true, the element in the Custom library with the same name will be replaced; if "replace" is false, a warning message will pop up to get further action for replacing the element with the same name or not. The default value for "replace" is false.

 

Eample

#adds the selected element to the folder "folder1" under Custom library

addtolibrary("folder1", true);

 

See Also

Element library, library, customlibrary

Copyright Lumerical Inc. | Privacy | Site Map