public string Type { get; set; }
public double[] Start { get; set; }
public double[] End { get; set; }
public string Label { get; set; }
public string Type { get; set; }
public SketchGeom[] SketchGeoms { get; set; }
public string Type {get; set;}
public string Name {get; set;}
public double[] Position { get; set; }
public double ScaleNumerator {get;set;}
public double ScaleDenominator {get;set;}
public double[] Viewdirection { get; set; }
public string ParentView { get; set;}
public SectionLine SectionLine { get; set; }
public string Name {get; set;}
public double ScaleNumerator {get;set;}
public double ScaleDenominator {get;set;}
public DrawingView[] Views { get; set; }
public Sheet[] Sheets { get; set; }
public static void Main()
DrawingView view= new DrawingView() {Name="View1", Viewdirection = [1.0, 0, 0], Position= [1.0, 2.0, 3.0], Type = "ORTHOGONAL", ScaleNumerator = 1.0, ScaleDenominator= 1.0, };
SketchGeom[] skG = new SketchGeom[1];
SketchGeom sk = new SketchGeom() { Type="LINE", Start=[.025, 0.35, 0], End=[.055, 0.35, 0]};
SectionLine SecLine = new SectionLine() {Label="A", Type="Normal", SketchGeoms = skG};
DrawingView section= new DrawingView() { Position= [2.0, 3.0, 4.0], Type = "SECTION", ParentView= "View1", SectionLine = SecLine, ScaleNumerator = 1.0, ScaleDenominator= 1.0, };
DrawingView view2= new DrawingView() { Viewdirection = [0.0, 0.0, 1.0], Position= [3.0, 4.0, 5.0], Type = "ORTHOGONAL", ScaleNumerator = 1.0, ScaleDenominator= 1.0, };
DrawingView[] Views= new DrawingView[3];
Sheet[] Sheets= new Sheet[1];
Sheets[0] = new Sheet {ScaleNumerator = 1.0, ScaleDenominator= 1.0, Views = Views};
Drawing drw = new Drawing { Sheets = Sheets};
var opt = new JsonSerializerOptions(){ WriteIndented=true };
string strJson = JsonSerializer.Serialize<Drawing>(drw, opt);
Console.WriteLine(strJson);