EntitySelectionItem

class Communicator.Selection.EntitySelectionItem()

A SelectionItem that is guaranteed to have a valid entity.


Methods

equals

Communicator.Selection.EntitySelectionItem.equals(selectionItem)

Determines if two selection items are equal.

Arguments
Return type

boolean

Returns

whether or not the two items are equal.

forJson

Communicator.Selection.EntitySelectionItem.forJson()

Note

forJson is deprecated: Use toJson instead.

Return type

Object

getFaceEntity

Communicator.Selection.EntitySelectionItem.getFaceEntity()

Gets the face entity for this selection.

Return type

{  }

Returns

the face entity if one was selected, otherwise null

getIncludeId

Communicator.Selection.EntitySelectionItem.getIncludeId()

Note

getIncludeId is deprecated: Use getInclusionKey instead.

Return type

{  }

getInclusionKey

Communicator.Selection.EntitySelectionItem.getInclusionKey()

Gets the include id for this selection.

Return type

{  }

Returns

the inclusion key associated with this selection item

getLineEntity

Communicator.Selection.EntitySelectionItem.getLineEntity()

Gets the line entity for this selection.

Return type

{  }

Returns

the line entity if one was selected, otherwise null

getNodeId

Communicator.Selection.EntitySelectionItem.getNodeId()

Gets the part id for this selection.

Return type

{  }

Returns

the part id associated with this selection item

getPointEntity

Communicator.Selection.EntitySelectionItem.getPointEntity()

Gets the point entity for this selection.

Return type

{  }

Returns

the point entity if one was selected, otherwise null

getPosition

Communicator.Selection.EntitySelectionItem.getPosition()
Return type

Communicator.Point3

getSelectionType

Communicator.Selection.EntitySelectionItem.getSelectionType()
Return type

Communicator.SelectionType

isEntitySelection

Communicator.Selection.EntitySelectionItem.isEntitySelection()
Return type

unknown

Returns

true if the object has the fields required for an EntitySelectionItem This function can be used as a TypeScript type guard.

isFaceSelection

Communicator.Selection.EntitySelectionItem.isFaceSelection()
Return type

unknown

Returns

true if the object has the fields required for a FaceSelectionItem This function can be used as a TypeScript type guard.

isLineSelection

Communicator.Selection.EntitySelectionItem.isLineSelection()
Return type

unknown

Returns

true if the object has the fields required for a LineSelectionItem This function can be used as a TypeScript type guard.

isNodeEntitySelection

Communicator.Selection.EntitySelectionItem.isNodeEntitySelection()
Return type

unknown

Returns

true if the object has the fields required for a NodeEntitySelectionItem This function can be used as a TypeScript type guard.

isNodeSelection

Communicator.Selection.EntitySelectionItem.isNodeSelection()
Return type

unknown

Returns

true if the object has the fields required for a NodeSelectionItem This function can be used as a TypeScript type guard.

isPointSelection

Communicator.Selection.EntitySelectionItem.isPointSelection()
Return type

unknown

Returns

true if the object has the fields required for a PointSelectionItem This function can be used as a TypeScript type guard.

overlayIndex

Communicator.Selection.EntitySelectionItem.overlayIndex()
Return type

Communicator.OverlayIndex

toJson

Communicator.Selection.EntitySelectionItem.toJson()

Creates an object ready for JSON serialization.

Return type

Object

Returns

The prepared object.

create

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new FaceSelectionItem

Arguments
Return type

Communicator.Selection.FaceSelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new LineSelectionItem

Arguments
Return type

Communicator.Selection.LineSelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new PointSelectionItem

Arguments
Return type

Communicator.Selection.PointSelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new EntitySelectionItem

Arguments
Return type

Communicator.Selection.EntitySelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new EntitySelectionItem

Arguments
Return type

Communicator.Selection.EntitySelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new EntitySelectionItem

Arguments
Return type

Communicator.Selection.EntitySelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new NodeSelectionItem

Arguments
  • nodeId (Communicator.NodeId()) –

  • inclusionKey ({  }()) –

  • faceEntity ({  }()) –

  • lineEntity ({  }()) –

  • pointEntity ({  }()) –

Return type

Communicator.Selection.NodeSelectionItem

Communicator.Selection.EntitySelectionItem.create(nodeId, inclusionKey, faceEntity, lineEntity, pointEntity)

Create a new SelectionItem

Arguments
  • nodeId ({  }()) –

  • inclusionKey ({  }()) –

  • faceEntity ({  }()) –

  • lineEntity ({  }()) –

  • pointEntity ({  }()) –

Return type

Communicator.Selection.SelectionItem