PointEntity

class Communicator.Selection.PointEntity()

Methods

forJson

PointEntity.forJson()
Deprecated

Use toJson instead.

Return type

Object

getPointBits

PointEntity.getPointBits()

Gets the cad bits for the selection Point.

Return type

number

Returns

The bits set on the point.

getPointId

PointEntity.getPointId()

Gets the point identifier

Return type

number

Returns

the identifier of the point that was selected

getPosition

PointEntity.getPosition()

Gets the world space position of the selection point.

Return type

Point3()

Returns

World space position of the selection point if it can be determined.

overlayIndex

PointEntity.overlayIndex()
Return type

OverlayIndex

Returns

The index of the overlay the entity belongs to.

toJson

PointEntity.toJson()

Creates an object ready for JSON serialization.

Return type

Object

Returns

The prepared object.

static construct

PointEntity.construct(obj)
Deprecated

Use fromJson instead.

Arguments
  • obj (any()) –

Return type

PointEntity()

static fromJson

PointEntity.fromJson(objData)

Creates a new PointEntity from an object given by toJson

Arguments
  • objData (any()) – An object given by toJson

Return type

PointEntity()

Returns

The prepared object.