Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.11 KB

LDevice_GetAccPos2D.md

File metadata and controls

49 lines (40 loc) · 1.11 KB

LDevice_GetAccPos2D

Description

Returns the 2D position and rotation of the specified accessory.

PROCEDURE LDevice_GetAccPos2D(
				handle          : HANDLE;
				cellIndex       : LONGINT;
				accessoryIndex  : LONGINT;
				VAR outPosition : REAL;
				VAR outRotation : REAL);
def vs.LDevice_GetAccPos2D(handle, cellIndex, accessoryIndex):
    return (outPosition, outRotation)

Parameters

Name Type Description
handle HANDLE
cellIndex LONGINT
accessoryIndex LONGINT
outPosition REAL
outRotation REAL

Examples

LDevice_GetAccPos2D(handle, 1, 2, 1.0, 2.0);
import vs

# Returns the 2D position and rotation of the specified accessory.
handle = vs.FSActLayer()  # handle to the first selected object on the active layer
cellIndex = 1
accessoryIndex = 1

outPosition, outRotation = vs.LDevice_GetAccPos2D(handle, cellIndex, accessoryIndex)
vs.Message('LDevice_GetAccPos2D returned: ' + str((outPosition, outRotation)))

Version

Availability: from Vectorworks 2021

Category