# A3DEntityGetType

A3DStatus `A3DEntityGetType`(const A3DEntity *pEntity, A3DEEntityType *peEntityType)
  `A3DStatus` A3DEntityGetType(const `A3DEntity`* pEntity, `A3DEEntityType`* peEntityType)

  Gets the actual type of the entity.

  This function returns an integer that specifies an Entity type. The integer corresponds to one of the values described by the `A3DEEntityType`enumeration.

  In case of non exposed surface or curve, the function abstracts away the entity type by filling-in `peEntityType`with either `kA3DTypeSurfBase`or `kA3DTypeCrvBase`respectively. This behavior is most commonly encountered with the Inventor format.

  > 2.0

  ## Sample code

      /*codetogetdatafromarepresentationitemstructure*/
      A3DRiRepresentationItem*pRepItem;/*thisisretrievedforexampleonaPartDefinitiondata*/
      A3DInt32iErr=A3D_SUCCESS;
      A3DEEntityTypeeType;

      if(A3DEntityGetType(pRepItem,&eType)==A3D_SUCCESS)
      {
      switch(eType)
      {
      casekA3DTypeRiPointSet:
      {
      A3DRiPointSetDatasData=A3D_MAKE_DATA(A3DTessBaseData);
      iErr=A3DRiPointSetGet(pRepItem,&sData);
      /*workwithPointSetdata...*/
      break;
      }

      /*treateothertypesofdata*/
      case...:

      default:
      returnERROR;
      break;
      }
      }

  Returns

  > `A3D_SUCCESS`on success, or an error code on failure

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...