Skip to content

Latest commit

 

History

History
67 lines (56 loc) · 1.73 KB

HasObjStoryBound.md

File metadata and controls

67 lines (56 loc) · 1.73 KB

HasObjStoryBound

Description

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

Parameters

Name Type Description
obj HANDLE The object.
boundID INTEGER The identifier of the story bound.

Examples

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')

See Also

VS Functions: HasObjStoryBounds | HasObjStoryBound | GetObjStoryBound | SetObjectStoryBound | DelObjStoryBounds | DelObjStoryBound | GetObjStoryBoundsCnt | GetObjStoryBoundsAt

Version

Availability: from Vectorworks 2012

Category