mech:compdef-set-physicalmaterial


(mech:compdef-set-physicalmaterial  blkRefOrSolid  materialName)

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

Arguments

blkRefOrSolid (ename) the entity

materialName (string) the name of the physical material 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-physicalmaterial blkRefOrSolid))
""
(setq res (mech:compdef-set-physicalmaterial blkRefOrSolid "Wood"))
T
(setq res (mech:compdef-get-physicalmaterial blkRefOrSolid))
"Wood"

Remarks

blkRefOrSolid could be a BlockReference or 3dSolid

Note

if no material with materialName exists, a new material using the specified name is automatically created



©  Bricsys NV. All rights reserved.