Creates a custom object instance at specified location and angle of rotation. The calling function can also set whether the pref dialog should appear.
FUNCTION CreateCustomObjectN(
objectName : STRING;
pX,pY : REAL;
rotationAngle : REAL;
showPref : BOOLEAN): HANDLE;def vs.CreateCustomObjectN(objectName, p, rotationAngle, showPref):
return HANDLE| Name | Type | Description |
|---|---|---|
| objectName | STRING | Name of object. |
| p | REAL | Insertion point of object instance. |
| rotationAngle | REAL | Rotation angle (in degrees) of object instance. |
| showPref | BOOLEAN | Show the Object Properties dialog. |
PROCEDURE Example;
VAR
h :HANDLE;
BEGIN
h := CreateCustomObjectN('Door', 0, 0, 0, False);
END;
RUN(Example);def Example():
h = vs.CreateCustomObjectN('Door', 0, 0, 0, False)
Example()Availability: from VectorWorks10.0