I am using Hypermesh 2025.1 version that includes Python API. I am trying to create a set of nodes. When I record this GUI actions to translate to python code, I get this in the python console:
import hm
import hm.entities as ent
model = hm.Model()
def main():
set = ent.Set(model, config=201, includeid=0, name="set1", set_type=1)
# [ERROR]: Unrecognized attribute 'subobject' for ent.Set
set.config = 2
if name == "main":
main()
I want to change the entity type from default components to nodes and select the nodes that are already defined. Can someone help with this? I could not find it even in the Python API user guide on how to create sets using nodes.