Inherits: Library < ScriptObject
Inherited by: PartLibrary, SymbolLibrary
Libraries are collections of items saved to disk.
Libraries are saved automatically after every write call.
Properties
| Name | Type | Get/Set | Brief |
|---|---|---|---|
| BasePathName | str | Yes/No | The fully-qualified path name of the library file, without the file extension and it’s preceding dot. |
| Count | int | Yes/No | The number of items in the library. |
| FullPathName | str | Yes/No | The fully-qualified path name of the library file. |
Methods
| Name | Returns | Arguments |
|---|---|---|
| Contains | bool | item : str |
| RebuildIndex | none |
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.