getPropertyValue


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

This function returns the value of the specified property 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 retrieve; property name is always case-insensitive

Return

the property value (any valid Lisp value : Real, Integer, String, Ename, List)

Example

(getpropertyvalue  (entlast)  "Color")  "ByLayer"
(getpropertyvalue  (entlast)  "Color~Native")  "ByLayer"

(getpropertyvalue  (entlast)  "Color")  "5"
(getpropertyvalue  (entlast)  "Color~Native")  "5"

(getpropertyvalue  (entlast)  "Color")  "28,227,188"
(getpropertyvalue  (entlast)  "Color~Native")  "28,227,188"

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




©  Bricsys NV. All rights reserved.