mech:compdef-set-name


(mech:compdef-set-name  blkRefOrSolid  name)

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

Arguments

blkRefOrSolid (ename) the entity to assign a new name

name (string) the new name 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-name blkRefOrSolid))
"HEX NUT"
(setq res (mech:compdef-set-name blkRefOrSolid "HEX NUT II"))
T
(setq res (mech:compdef-get-name blkRefOrSolid))
"HEX NUT II"

Remarks

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

Note




©  Bricsys NV. All rights reserved.