-
Notifications
You must be signed in to change notification settings - Fork 3
2016 API dlibrary.object
Used for all object related stuff, except for plug-in objects.
builtins.object
........IObjectHandle(builtins.object)
................IObjectAttributes(IObjectHandle, dlibrary.document.IAttributes)
........................AbstractObject(dlibrary.object_base.AbstractKeyedObject, IObjectAttributes, IObjectRecords, IObjectOrder)
................................DrawnObject(AbstractObject)
................................Group(AbstractObject)
................................Line(AbstractObject)
................................Locus(AbstractObject)
................................Polygon(AbstractObject)
................................Rectangle(AbstractObject)
................................Symbol(AbstractObject)
................................Text(AbstractObject)
................................Viewport(AbstractObject)
................IObjectOrder(IObjectHandle)
........IObjectRecords(builtins.object)
........SymbolScalingEnum(builtins.object)
........TextHorizontalAlignmentEnum(builtins.object)
........TextVerticalAlignmentEnum(builtins.object)
dlibrary.object_base.AbstractKeyedObject(builtins.object)
........AbstractObject(dlibrary.object_base.AbstractKeyedObject, IObjectAttributes, IObjectRecords, IObjectOrder)
................DrawnObject(AbstractObject)
................Group(AbstractObject)
................Line(AbstractObject)
................Locus(AbstractObject)
................Polygon(AbstractObject)
................Rectangle(AbstractObject)
................Symbol(AbstractObject)
................Text(AbstractObject)
................Viewport(AbstractObject)
........Attributes(dlibrary.object_base.AbstractKeyedObject)
........Record(dlibrary.object_base.AbstractKeyedObject)
........RecordField(dlibrary.object_base.AbstractKeyedObject)
class AbstractObject(dlibrary.object_base.AbstractKeyedObject, IObjectAttributes, IObjectRecords, IObjectOrder)
> dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
We will use the object handle to get/set the attributes for it.
You can use this wrapper for objects that aren't yet in this library. As the object repository will not always know all possible object types, due to the fact that we are still working on DLibrary, and that Vectorworks can introduce new types, this class can be used for it's general properties.
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type handle_or_name: vs.Handle | str
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type handle_or_name: vs.Handle | str
:type content_creator: () -> None
:rtype: Group
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
Interface that handles object attributes.
Abstract interface to define the object handle field that all object interfaces need.
Interface that handles object stacking order.
OBSOLETE, use dlibrary.document.IRecords instead.
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type point1: (float | str, float | str)
:type point2: (float | str, float | str)
:rtype: Line
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type handle_or_name: vs.Handle | str
:type origin: (float | str, float | str)
:rtype: Locus
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type vertices: tuple[tuple[x: float|str, y: float|str]]
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
OBSOLETE, use dlibrary.document.Record instead.
Use the object_handle, as it will become mandatory in future versions!
Not using the object_handle will make working with the record instance very limited!
Get the field based on it's index, 1-n based.
OBSOLETE, use dlibrary.document.RecordField instead.
__init__(self, record_handle: vs.Handle, index: int, record_name: str=None, object_handle: vs.Handle=None, parametric: bool=False)
Use the record_name, object_handle and parametric, as they will become mandatory in future versions!
Not using them will render most things in this class useless!
Class that represents a rectangle object.
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type handle_or_name: vs.Handle | str
:type origin: (float | str, float | str)
:type direction: (float | str, float | str)
:type width: float | str
:type height: float | str
:rtype: Rectangle
:type top_left: (float | str, float | str)
:type bottom_right: (float | str, float | str)
:rtype: Rectangle
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type handle_or_name: vs.Handle | str
:type insertion_point: (float | str, float | str)
:rtype: Symbol
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
Holds all possible scaling options for symbol instances.
- ASYMMETRIC = 3
- NONE = 1
- SYMMETRIC = 2
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
:type handle_or_name: vs.Handle | str
:type origin: (float | str, float | str)
:type horizontal_alignment: TextHorizontalAlignmentEnum
:type vertical_alignment: TextVerticalAlignmentEnum
:rtype: Text
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
- CENTER = 2
- JUSTIFY = 4
- LEFT = 1
- RIGHT = 3
- BOTTOM = 5
- BOTTOM_BASELINE = 4
- CENTER = 3
- TOP = 1
- TOP_BASELINE = 2
> AbstractObject > dlibrary.object_base.AbstractKeyedObject > IObjectAttributes > IObjectRecords > IObjectOrder > IObjectHandle > dlibrary.document.IAttributes > builtins.object
Will rotate the object around it's own center point, relative to the drawing, not the plug-in!
:type origin: (float, float)
d:\development\vw libraries\dlibrary\dlibrary\object.py