Determine if the object has the specified story bound ID present.
FUNCTION HasObjStoryBound(
obj : HANDLE;
boundID : INTEGER): BOOLEAN;def vs.HasObjStoryBound(obj, boundID):
return BOOLEAN| Name | Type | Description |
|---|---|---|
| obj | HANDLE | The object. |
| boundID | INTEGER | The identifier of the story bound. |
IF ( NOT HasObjStoryBound( gPluginH, kOldTopBoundArchitID ) ) THEN
BEGIN
UpdateBound( formatHand, gPluginH, kOldTopBoundArchitID, kOldTopBoundArchitID, pOA_Height );
END;
BEGIN
formatHand := GetObject( objectName );
IF GetObjStoryBound( formatHand, topBoundID, boundType, boundStory, layerLevelType, topOffset ) &
( NOT HasObjStoryBound( objectHand, topBoundID ) ) THEN
BEGIN
SetObjectStoryBound( objectHand, topBoundID, boundType, boundStory, layerLevelType, topOffset );
END;import vs
# Determine if the object has the specified story bound ID present.
obj = vs.FSActLayer() # handle to the first selected object on the active layer
boundID = 1
ok = vs.HasObjStoryBound(obj, boundID)
if ok:
vs.Message('HasObjStoryBound succeeded')
else:
vs.Message('HasObjStoryBound failed')VS Functions: HasObjStoryBounds | HasObjStoryBound | GetObjStoryBound | SetObjectStoryBound | DelObjStoryBounds | DelObjStoryBound | GetObjStoryBoundsCnt | GetObjStoryBoundsAt
Availability: from Vectorworks 2012