Hi everyone,
I was following the Python API to do my code, and on the Model.nodelistbypath section,
in the example, I'm having issues with the line
entitylist = hm.EntityList(ent.Node, hm.hwUIntList([]))
Appearing this error :
entitylist = hm.EntityList(ent.Node, hm.hwUIntList([]))
TypeError Traceback (most recent call last)
Cell In[2], line 1
----> 1 entitylist = hm.EntityList(ent.Node, hm.hwUIntList([]))
File C:\apps\Altair\2026\hwdesktop\hw\bin\win64\hwdescriptor.py:883, in EntityList.init(self, *args)
882 def init(self, *args):
--> 883 _hwdescriptor.EntityList_swiginit(self, _hwdescriptor.new_EntityList(*args))
TypeError: Wrong number or type of arguments for overloaded function 'new_EntityList'.
Possible C/C++ prototypes are:
hwDescriptor::EntityList::EntityList(hwDescriptor::EntityFullType const &,hwUIntList const &,hwCharList const &)
hwDescriptor::EntityList::EntityList(hwDescriptor::EntityFullType const &,hwUIntList const &)
hwDescriptor::EntityList::EntityList(hwDescriptor::EntityFullType const &,hwDescriptor::UidList const &,hwUIntList const &)
hwDescriptor::EntityList::EntityList(hwDescriptor::EntityFullType const &,hwDescriptor::UidList const &)
hwDescriptor::EntityList::EntityList(unsigned int const,hwDescriptor::EntityIDType)
hwDescriptor::EntityList::EntityList(unsigned int const)
hwDescriptor::EntityList::EntityList()
hwDescriptor::EntityList::EntityList(hwDescriptor::Entity const &)
hwDescriptor::EntityList::EntityList(std::istream &)
hwDescriptor::EntityList::EntityList(hwDescriptor::EntityList const &)
hwDescriptor::EntityList::EntityList(hwDescriptor::EntityList &&)
So, I came here wondering how to solve this.