Skip to content
On this page

Point

We can create the point by instantiating an McDbPoint() object. You can also draw points directly through the drawPoint() method provided by the mxcad instance object.

Click McDbPoint() for detailed property and method descriptions.

Click drawPoint() for detailed property and method descriptions.

ts
import { MxCpp, McDbPoint, McCmColor } from "mxcad"

const mxcad = MxCpp.getCurrentMxCAD()
const point = new McDbPoint()
const color = new McCmColor()
color.setRGB(0, 255, 255)
point.trueColor = color
point.setPosition(200, 200)
mxcad.drawEntity(point)

mxcad.drawPoint(250, 250)