Skip to content

2017 API dlibrary.document.SymbolDefinition

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

dlibrary.document.SymbolDefinition

Class to represent a symbol definition.

Base classes

Static methods

create_placeholder(name: str)

get_by_name(name: str)

OBSOLETE. Use ObjectRepository().get(handle_or_name) from object_base instead.

Constructor

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

Properties

  • (get) handle -> vs.Handle
  • (get) name -> str
  • (get) records -> 'dict[str, Record]'

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