TheSwamp

CAD Forums => CAD General => Topic started by: Peter2 on September 27, 2022, 09:39:16 AM

Title: How to create JSON files from simple drawings?
Post by: Peter2 on September 27, 2022, 09:39:16 AM
I'm thinking about the creation of JSON, based on simple DWG: line, point, text, No 3D, no hatch, no dynamic, no tables, ....

What is the current state of the art? Are there (simple?), stable tools? Inside Autocad / Bricscad or external?
Or is this topic still a rarely used exotic foreigner?

Regards!
Peter
Title: Re: How to create JSON files from simple drawings?
Post by: It's Alive! on September 27, 2022, 09:05:35 PM
Possible, for example in C#, derive a class from DwgFiler/DxfFiler that implements JsonSerializer Class. Not a trivial though
Title: Re: How to create JSON files from simple drawings?
Post by: Peter2 on September 28, 2022, 02:26:43 AM
Thanks.
...Not a trivial though
Are there "ready-to-use"-tools?
Title: Re: How to create JSON files from simple drawings?
Post by: It's Alive! on September 28, 2022, 05:40:45 AM
how about using data extraction to a .CSV, then convert that to a JSON format?
I see some tools online to convert .CSV to JSON