mech:compdef-set-description


(mech:compdef-set-description  blkRefOrSolid  desc)

Assigns the desc description to the component, referenced by the blkRefOrSolid (ename) entity.

Arguments

blkRefOrSolid (ename) the entity

desc (string) the new description to be assigned

Return

T on success, or NIL in case of an error

Example

(vl-load-mech)  1
(setq blkRefOrSolid (entlast))
<Entity name: 7dabeda0>
(setq res (mech:compdef-get-description blkRefOrSolid))
""
(setq res (mech:compdef-set-description blkRefOrSolid "info"))
T
(setq res (mech:compdef-get-description blkRefOrSolid))
"info"

Remarks

blkRefOrSolid could be a BlockReference or 3dSolid;
changing the component description might affect other instances using the same ComponentDefinition

Note




©  Bricsys NV. All rights reserved.