Table of Contents

Method ExportJson

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

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

layout string

The layout to take (Model for 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.