The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
TypeError: in method 'HMAPI_markprojectnormallytosurface', argument 3 of type 'hwDescriptor::Collection &'
Hello,
Could you please attach an example of the Python API code you would like to run?
import hm.entities as entfrom hwx import guimodel = hm.Model()is_running = Truedef buttonClickCommand(buttonId): global is_running if buttonId == 0: is_running = True # clicked okey else: is_running = False # clicked Canceldef ask_user_Master(): Collection = hm.EntityListByInteractiveSelection(model,ent.Line) return Collection[0]def ask_user_Slave(): col_elem = hm.CollectionByInteractiveSelection(model,ent.Surface) return col_elemwhile is_running: Face1 = ask_user_Master() Face1 = Face1.id Collection = ent.Collection(model,ent.Line,[Face1]) Face2 = ask_user_Slave() Face2 = Face2.id Surf = ent.Surface(model,[Face2]) #Face2 = hm.EntityListByInteractiveSelection(model, ent.Surface) ## if not face1 or not face2: # gui.tellUserMessage("Please select two faces.") # continue