Creates layout room from the given shape. The shape must be rectangle, rounded rectangle, polygon or polyline. Returns the handle of the created room.
FUNCTION CC_RoomFromShape(hObj : HANDLE): HANDLE;def vs.CC_RoomFromShape(hObj):
return HANDLE| Name | Type | Description |
|---|---|---|
| hObj | HANDLE |
BEGIN
gPluginObjH := CC_RoomFromShape(h);
END; {of MakeRoom}
{--------------------------------------------------------------------------------------------}
PROCEDURE MakeUserObject (h : HANDLE);
VARimport vs
# Creates layout room from the given shape.
hObj = vs.FSActLayer() # handle to the first selected object on the active layer
objHandle = vs.CC_RoomFromShape(hObj)
if objHandle is not None:
vs.Message('Created object handle: ' + str(objHandle))Availability: from Vectorworks 2022.3