HyperWorks Tools

::hwat::utils::UpdateAttribute

::hwat::utils::UpdateAttribute

Previous topic Next topic No expanding text in this topic  

::hwat::utils::UpdateAttribute

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::utils::UpdateAttribute - Updates an attribute’s value in the HM database.

 

SYNTAX

UpdateAttribute entityType entityId id type solver status value targetEntityType

 

ARGUMENTS

entityType

The type of the entity.

entityId

The ID of the entity.

id

The ID of the attribute.

type

The type: real, integer, entity, string, arrayofreal, arrayofstring, arrayofinteger, or arrayofentity.

solver

The solver number.

status

Either 0 or 1.(default 1).

value

The value of the attribute.  A Tcl list of values in case of an array or target entity ID to which the attribute points.

targetEntityType

Optional - entity type to which the attribute points.

 

RETURNS

1 if successful, "{}" if unsuccessful.

 

EXAMPLE

::HWAT::UTILS::UpdateAttribute "components" 1 154 real 9 1 10.0

 

 

See also

Utils Functions