*bagentityupdate

Updates a bag entity.

Syntax

*bagentityupdate name entity_type mark_id

Type

HyperMesh Tcl Modify

Description

This command updates an existing bag entity name with all of the entity_type entities contained on mark_id. entity_type may be set to any of the entities in the database, including other bags, that are valid for a particular bag config (see *bagcreate). Cyclic references are disallowed when bags reference other bags. For instance, if bag1 already references bag2, it would be illegal for bag2 to reference bag1.

Examples

To update an existing optimization problem bag ossetup1 with all design variables and responses in a model:
hm_createmark designvars 1 advanced all
hm_createmark optiresponses 1 advanced all
*bagentityupdate ossetup1 designvars 1
*bagentityupdate ossetup1 optiresponses 1
To update an existing FBD Cross-section bag fbdcs with an entity set of ID 25:
hm_createmark sets 1 "by id" 25
*bagentityupdate fbdcs sets 1

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

10.0