# QueryElementInfo

class `cee.ug.``QueryElementInfo`()

  Query information about elements for a given frame or all frames

Constructors

- `constructor`

Accessors

- `elementIdentType`

Methods

- `executeQuery`
- `executeQueryByClientSideHitItems`

## Constructors

`QueryElementInfo.``constructor`(model)

  Arguments: | model (`RemoteModel`) – None
  Return type: | QueryElementInfo

## Accessors

`QueryElementInfo.``elementIdentType`()

  Specify whether the `elementIdentArr` parameter in `executeQuery` is to be interpreted as an array of IDs or indices. Defaults to IDs.

  Return type: | RemoteQueryInputIdentType

`QueryElementInfo.``elementIdentType`(identType)

  Arguments: | identType (`RemoteQueryInputIdentType`) – None
  Return type: | void

## Methods

### executeQuery

`QueryElementInfo.``executeQuery`(frameIndex, geometryIndex, partId, elementIdentArr, scalarResultId, vectorResultId, callback)

  Arguments: | frameIndex (`number`) – The index of the frame to get info for. Specify -1 for all frames geometryIndex (`number`) – The index of the geometry the part belongs to. In most cases there is only one geometry and this parameter should be 0. Specify -1 to search in all geometries. partId (`number`) – The id of the part containing the elements. Specify -1 to search in all parts. elementIdentArr (`[number]`) – Array with ids or indices of the elements to get information for. Use `elementIdentType` to specify what this array contains. scalarResultId (`number`) – The id of the scalar to use for scalarResult. If -1 then the result currently shown as scalar fringes on the part will be used. vectorResultId (`number`) – The id of the vector to use for vectorResults. If -1 then the vector results currently set in the modelSpec will be used. callback (`QueryElementInfoCallback`) – Function getting called when the result is received from the server.

  Executes the query for the given elements.

  Return type: | void

### executeQueryByClientSideHitItems

`QueryElementInfo.``executeQueryByClientSideHitItems`(hitItems, scalarResultId, vectorResultId, callback)

  Arguments: | hitItems (`[ClientSideHitItem]`) – The client-side hit items to execute the query over. Use `RemoteModel.clientSideRayIntersect` or `TrianglePicker` to create client-side hit items. scalarResultId (`number`) – The id of the scalar to use for scalarResult. If -1 then the result currently shown as scalar fringes on the part will be used. vectorResultId (`number`) – The id of the vector to use for vectorResults. If -1 then the vector results currently set in the modelSpec will be used. callback (`QueryElementInfoCallback`) – Function getting called when the result is received from the server.

  Executes the query for the given ClientSideHitItem array.

  Return type: | void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

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

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
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...