Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 955 Bytes

File metadata and controls

51 lines (41 loc) · 955 Bytes

HasDim

Description

Function HasDim returns TRUE if a line or arc object has dimension text associated with it, otherwise it returns FALSE.

FUNCTION HasDim(h : HANDLE): BOOLEAN;
def vs.HasDim(h):
    return BOOLEAN

Parameters

Name Type Description
h HANDLE Handle to object.

Examples

VectorScript

isDimension:=HasDim(HandleToObject);

Python

vs.Message(vs.HasDim(vs.FSActLayer()))
resultOK := HasDim(h);
import vs

# Function HasDim returns TRUE if a line or arc object has dimension text
# associated with it, otherwise it returns FALSE.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

ok = vs.HasDim(h)
if ok:
    vs.Message('HasDim succeeded')
else:
    vs.Message('HasDim failed')

Version

Availability: from All Versions

Category