Inherits: Library < ScriptObject

Inherited by: PartLibrary, SymbolLibrary

Libraries are collections of items saved to disk.

Libraries are saved automatically after every write call.

Properties

NameTypeGet/SetBrief
BasePathNamestrYes/NoThe fully-qualified path name of the library file, without the file extension and it’s preceding dot.
CountintYes/NoThe number of items in the library.
FullPathNamestrYes/NoThe fully-qualified path name of the library file.

Methods

NameReturnsArguments
Containsboolitem : str
RebuildIndexnone

Property Details

BasePathName

Type: str

The fully-qualified path name of the library file, without the file extension and it’s preceding dot.


Count

Type: int

The number of items in the library.


FullPathName

Type: str

The fully-qualified path name of the library file.

Method Details

Contains

Finds whether the named item exists in the library.

Returns bool.

Arguments:

  • item : str - Name of the item to search for.

RebuildIndex

Generate or regenerate the index stored with a file.