bim:set-property


(bim:set-property  ename  propertyName  propertyValue  [categoryId | categoryName])

Assigns a new value for the specified property, for the specified entity.

Arguments

ename  the entity to query, as normal entity or as VLA object name

propertyName  name (string) of a property supported by the specific BIM Element type, as the entity is classified

propertyValue  the new value to be assigned

categoryId  optional BIM property category ID, can be omitted (bcBimCategoryStandard is used then); see Category Constants
---or---
categoryName  optional BIM category name as string (can be an empty string for bcBimCategoryStandard), see Category Constants

Return

T if the new property value is successfully assigned, NIL otherwise

Example

(bim:set-bimtype ent "Wall")  T
(bim:get-property ent "Name")  ""
(bim:set-property ent "Name" "Barrack")  T
(bim:get-property ent "Name")  "Barrack"
(bim:set-property ent "Name" "Alternate Building" bcBimCategoryUser)  T
(bim:get-property ent "Name" bcBimCategoryUser)  "Alternate Building"

Remarks

if the entity was not classified as a BIM Element, it will be set as "GenericBuildingElement";
see (bim:has-property) (bim:get-property)
all property names are always case-sensitive !



©  Bricsys NV. All rights reserved.