OBJSetPosWCΒΆ

OBJSetPosWC sets the position of a drawing object in diagram coordinates (World Coordinates). For line objects the start and end point will be set.

bool = OBJSetPosWC(hobj, rvPosWC)

Return Value

bool is TRUE (1) if the function was successful, and otherwise FALSE (0).

Parameters

hobj

hobj identifies a line, text, rectangle or ellipse object.

rvPosWC

rvPosWC is a vector with 2 elements. For line objects rvPosWC has 4 elements:

Value

Meaning

rvPosWC[1]

x-coordinate in diagram coordinates

rvPosWC[2]

y-coordinate in diagram coordinates

rvPosWC[3]

x-coordinate of the second line point in diagram coordinates

rvPosWC[4]

y-coordinate of the second line point in diagram coordinates

id-765209