Skip to content

2017 API dlibrary.document.AbstractResource

Dieter Geerts edited this page Sep 24, 2016 · 1 revision

dlibrary.document.AbstractResource

Class to represent a document resource.

Base classes

  • AbstractKeyedObject Base class for all objects, which will hold the identifiers for a VW object: handle and/or name.

Static methods

create_placeholder(name: str)

Constructor

__init__(self, handle_or_name: 'vs.Handle | str')

Properties

  • (get) handle -> vs.Handle
  • (get) name -> str

Methods

__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)

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally