Library Object

The Library object is used to get information and control the contents of a ConceptDraw library. The methods of the Library object allow to modify the description of the library, save the library and control master objects , stored in the library.

Properties

Name The library file name.
FullName
Read-only. Full library filename, including the path.
Path Path to the library file (without filename).
Title The library title.
Author Describes the author of the library.
Subj Brief description of the library.
Company Describes the company which created the library.
Desc Contains detailed description of the library.

Methods

Save Saves the library.
SaveAs Saves the library with a file name.
AddMaster
Adds a new master object (library object) to the library.
FindMaster Searches for a specified master object (library object) in the library.
Master

Returns an existing master object (library object) by its index in the library's collection of master objects.

MasterByName Searches for a master object (library object) by the specified name.
MastersNum Returns the number of master objects (library objects) in a library.
RemoveMaster

Removes a master object (library object) from a library by its index in the library's collection of master objects.

RemoveMasterByName

Removes a master object (library object) from the library by the specified name.

Remarks

The Application object has a number of methods for working with libraries opened in the application. However, other objects can also refer to an open library. An instance of the Library object can be retrieved by using the following methods and properties:
Application object: ActiveLib property, CreateNewLib method, Lib method, LibByName method, OpenLib method.
Window object: Library property, Lib method, LibByName method.

 

See Also

Application object, Master object, Shape object