vl-annotative-get


(vl-annotative-get  enameOrVlaObject  [ scale ])

This function returns whether the specified entity has the current (or the specified) annotation scale assigned.

Arguments

enameOrVlaObject  ename or VlaObject

scale  (optional) string, specifies the annotation scale to verify

Return

T if the specified entity has the specified annotation scale assigned, or NIL;
if scale is omitted, T is returned if the current annotation scale ("CANNOSCALE") is assigned

Example

(vl-annotative-get (car (entsel)) "1:10")  T
(vl-annotative-get (car (entsel)) "1:50")  NIL

Remarks

if the specified entity does not support annotation scales, NIL is always returned (no error is triggered)



©  Bricsys NV. All rights reserved.