Size (gridCellSize) in cm

Is it possible to define the size for example gridCellSize in centimeters?


Are you only asking about the grid, or about all dimensions of the document coordinate system?

If you are asking about the former case, you can convert your centimeter unit values into pixels and use that Size for the gridCellSize.

If you are asking about the latter case, then you could assume all of the coordinates are in whatever units you like. If you then wanted to render objects to actually appear at that size on the screen, you could adjust the Diagram.scale (probably by setting the Diagram.initialScale and the Diagram.commandHandler.defaultScale) to be the appropriate value.