NXOpen.UF.Sf.LocateElementById

Sf.LocateElementById()

Refer to UF_SF_locate_element_by_id for documentation.

Signature: LocateElementById(meshTag, numOfIds, elementIds)

Parameters:
  • meshTag (Tag) – Mesh tag, pass in NULL_TAG to locate all elements in current part.
  • numOfIds (int) – The number of element ids to look for.
  • elementIds (list of int) – An array of element ids for which element tags are to be returned.
Returns:

A Tuple

Return type:

A tuple consisting of (numOfElements,elementTagsP)

numOfElements(int): The number of elements found. Could be zero.

elementTagsP(list of Tag): pointer to an array of element tags or NULL. This array must be freed by calling UF_free.

License requirements: None