Creates a custom object instance at the specified location and angle of rotation. For the objectName, use the "internal" plug-in name (the one assigned in the plug-in editor), as opposed to the filename (which can be different).
FUNCTION CreateCustomObject(
objectName : STRING;
pX,pY : REAL;
rotationAngle : REAL): HANDLE;def vs.CreateCustomObject(objectName, p, rotationAngle):
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. |
Like for objects created through CreateCustomObjectPath, they don't resolve as "new objects" after creation with this routine.
VS Functions: CreateCustomObjectPath
Availability: from VectorWorks8.5