API and Customization

New Features

  • Model class methods (Modify and Query functions) are fully documented in the Python API documentation.
  • CollectionByInteractiveSelection() now accepts a collection object as input allowing you to modify an existing collection, as well as create a new collection object.
  • Model class method get() signature has been updated to accept an entity class and query string, providing a faster way of retrieving a single entity.
  • Class representing the Assembly entity type has been added to the hm.entities module.
  • New Model class methods have been added to provide information about HyperMesh model: hm_info(), hm_info_currentcollector(), hm_info_emptylist(), hm_info_unusedlist().
  • New classes, functions, and features have been added to the hwx.gui GUI toolkit (for example, Canvas, OpenFileEntry, Toolbar, WebView, and so on).
  • A new output option has been added to Python Recording allowing the push of recorded code to a Compose debugger session.
  • The Output Settings dialog in Python Recording provides options to restore the defaults.

Enhancements

  • Performance of creating collections using FilterByAttribute() has been improved.
  • A new element entity can be created using the Element class constructor.
  • Collection class provides custom __str__ method and upon printing a collection object, the information about entity class and size of the collection is returned.
  • Python Recording adds an increment suffix to all variable names in order to avoid clash with built-in Python functions.
  • Python Recording captures the assignment of parameters to entity attributes, recording the corresponding parametrize_byentity() and parametrize_bycollection() functions.
  • Python Recording GUI shows the argument value for all arguments that share the same value definition. Previously, the value was shown only for the first instance.

Resolved Issues

  • Multiple Model class methods have been updated to correct their argument naming and typing. These changes can affect existing scripts and potentially require script updates. See the Python API documentation for detailed information on the individual methods.
  • Creating a Model class instance before initializing HyperMesh client would lead to the application exiting unexpectedly. This has been mitigated by introducing additional checks which trigger an error if hm package is being imported in a session where HyperMesh client has not been initiated.
  • Access to multiple entity attributes has been resolved.

Known Issues

The following known issue will be addressed in a future release as we continuously improve the performance of the software:
  • In the code recorded inside command.tcl, the line continuation character ( \ ) might be incorrectly placed when splitting the list of IDs referenced in a *createmark call into multiple lines, resulting in breaking the ID range definition. You will need to manually update the syntax to avoid an incorrect ID reference when evaluating the recorded code.
    # Incorrectly recorded code sample
    *createmark elements 1 5-44 49-52 73-76 97-100 154-157 178-181 202-205 242 \
     -249 344-349
    
    # Corrected code
    *createmark elements 1 5-44 49-52 73-76 97-100 154-157 178-181 202-205 \
     242-249 344-349