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| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
isDimension:=HasDim(HandleToObject);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')Availability: from All Versions