-
Notifications
You must be signed in to change notification settings - Fork 3
2017 API dlibrary.document.AbstractResource
Dieter Geerts edited this page Sep 24, 2016
·
1 revision
Class to represent a document resource.
- AbstractKeyedObject Base class for all objects, which will hold the identifiers for a VW object: handle and/or name.
create_placeholder(name: str)
__init__(self, handle_or_name: 'vs.Handle | str')
-
(get) handle
->
vs.Handle -
(get) name
->
str
__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)