isPropertyReadonly


(ispropertyreadonly  ename  property)
or
(ispropertyreadonly  collectionName  index  property) unsupported in BricsCAD !

This function verifies whether the specified property is read-only or write-enabled for the object or entity ename.

Arguments

ename  (classic entity name) object or entity ename to query for the given property
property  (string) the name of the property to test; property name is always case-insensitive

Return

T if the property is read-only, NIL if the property can be changed

Example

(ispropertyreadonly  (entlast)  "LayerId")  0
(ispropertyreadonly  (entlast)  "LayerId~Native")  0

(ispropertyreadonly  (entlast)  "BlockId")  1
(ispropertyreadonly  (entlast)  "BlockId~Native")  1

Hint

the specified "ident" can be used to uniquely specify the property, as same-named properties can exist in multiple contexts;
the ident always uses the format "Name~Context"

Remarks

there are a few properties, which are write-enabled in BricsCAD, while read-only under AutoLISP



©  Bricsys NV. All rights reserved.