-
Notifications
You must be signed in to change notification settings - Fork 3
2017 API dlibrary.document.SymbolDefinition
Dieter Geerts edited this page Sep 24, 2016
·
1 revision
Class to represent a symbol definition.
- AbstractResource Class to represent a document resource.
- IRecords Interface that handles attached records.
create_placeholder(name: str)
get_by_name(name: str)
OBSOLETE. Use ObjectRepository().get(handle_or_name) from object_base instead.
__init__(self, handle_or_name: 'vs.Handle | str')
-
(get) handle
->
vs.Handle -
(get) name
->
str -
(get) records
->
'dict[str, Record]'
__eq__(self, other)
Two objects are the same if they are from the same type and both have the same handle. The handle is what Vectorworks sees as the primary key for an object (which is session based!)
__hash__(self)
We need to override this, as we have custom object equality implemented! The Handle class isn't hashable, so we'll use the string representation instead.
__ne__(self, other)