Wiki

Clone wiki

VW DLibrary / 2015 / api / document

NAME

dlibrary.document - Used for all document related stuff, like units, layers, ....

CLASSES

builtins.object AbstractResource RecordDefinition AbstractResourceList RecordDefinitionResourceList DefinitionTypeEnum Document Layer DesignLayer SheetLayer Units

class AbstractResource


descriptors


name

methods


def __init__(self, handle, name: str):

class AbstractResourceList


descriptors


names

methods


def __init__(self, resource_type: int, abstract_resource: <built-in function callable>):

def get_resource(self, name: str) -> AbstractResource:

DefinitionTypeEnum

DefinitionTypeEnum = <class 'dlibrary.document.DefinitionTypeEnum'>

class DesignLayer


descriptors


description

drawing_area

name

For a sheet layer, VW calls this the number!

scale

methods


def __init__(self, handle):

def get(layer_handle):

class Document


descriptors


design_layers

:rtype: set(DesignLayer)

filename

layers

:rtype: set(Layer)

saved

sheet_layers

:rtype: set(SheetLayer)

class Layer


descriptors


description

drawing_area

name

For a sheet layer, VW calls this the number!

methods


def __init__(self, handle):

def get(layer_handle):

class RecordDefinition


descriptors


fields

name

methods


def __init__(self, handle, name: str):

class RecordDefinitionResourceList


descriptors


names

methods


def __init__(self):

def get_resource(self, name: str) -> AbstractResource:

class SheetLayer


descriptors


description

drawing_area

name

For a sheet layer, VW calls this the number!

title

methods


def __init__(self, handle):

def get(layer_handle):

class Units


methods


def to_area_string(araa_in_area_units: float, with_unit_mark: bool=False) -> str:

def to_area_units(area_in_square_inches: float) -> float:

def to_cubic_inches(volume_in_volume_units: float) -> float:

def to_inches(length_in_length_units_or_str: float) -> float:

:type length_in_length_units_or_str: float || str

def to_length_string(length_in_length_units: float, with_unit_mark: bool=False) -> str:

def to_length_units(length_in_inches_or_str: float) -> float:

:type length_in_inches_or_str: float || str

def to_square_inches(area_in_area_units: float) -> float:

def to_volume_string(volume_in_volume_units: float, with_unit_mark: bool=False) -> str:

def to_volume_units(volume_in_cubic_inches: float) -> float:

FILE

d:\development\vw libraries\dlibrary\dlibrary\document.py

Updated