Method ExportJson
ExportJson(string)
Gets the drawing as one JSON document in millimetres, block references walked down to what they draw, as the app
writes it (schema opencad2d.drawing, version 1; see docs/schemas): the entities in the order of their
handles, with their layer, colour, linetype, box, words and geometry, and the tables of layers, styles, linetypes and
blocks.
public string ExportJson(string layout)
Parameters
layoutstringThe layout to take (
Modelfor model space), or null for model space and every layout.
Returns
- string
The JSON text.
Exceptions
- CadRemoteException
Thrown when the drawing is closed, or has no layout of that name.