# QueryNodeInfo

class `cee.ug.``QueryNodeInfo`()

  Query information about nodes for a given frame or all frames

Constructors

- `constructor`

Accessors

- `maxResultCount`

Methods

- `executeQueryByIds`
- `executeQueryByRegion`

## Constructors

`QueryNodeInfo.``constructor`(model)

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

## Accessors

`QueryNodeInfo.``maxResultCount`()

  Maximum number of nodes to be returned in the query. Defaults to 1000.

  Return type: | number

`QueryNodeInfo.``maxResultCount`(max)

  Arguments: | max (`number`) – None
  Return type: | void

## Methods

### executeQueryByIds

`QueryNodeInfo.``executeQueryByIds`(frameIndex, geometryIndex, partId, nodeIdArr, 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 for the node ids. partId (`number`) – The id of the part containing the nodes. Specify -1 to search in all parts for the node ids. nodeIdArr (`[number]`) – Array with ids of the nodes to get information for callback (`QueryNodeInfoCallback`) – Function getting called when the result is received from the server.

  Executes the query for the given node ids

  Return type: | void

### executeQueryByRegion

`QueryNodeInfo.``executeQueryByRegion`(frameIndex, geometryIndex, partId, view, x, y, width, height, 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 nodes. Specify -1 to search in all parts. view (`View`) – The view which the given region applies to. x (`number`) – The search region’s x coordinate. y (`number`) – The search region’s y coordinate. width (`number`) – The search region’s width. height (`number`) – The search region’s height. callback (`QueryNodeInfoCallback`) – Function getting called when the result is received from the server.

  Executes the query for the given region.

  The x and y coordinates must be specified in OpenGL style coordinates, which means a right handed coordinate system with the origin in the lower left corner of the window. The HTML coordinate system is with origin in top left, so if this is your input (e.g. MouseEvent.offsetY, clientY, pageY, etc.) you will have to flip the Y coordinate. The x and y are specified in native pixels, so you will have to adjust the input for the current devicePixelRatio (window.devicePixelRatio).

  The width and height are specified in native pixels. So you will have to adjust the input for the current devicePixelRatio (window.devicePixelRatio).

  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...