Author Topic: How to create JSON files from simple drawings?  (Read 450 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 626
How to create JSON files from simple drawings?
« 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
Peter

AutoCAD Map 3D 2018 German (so some technical terms will be badly retranslated to English)
BricsCAD V21

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7486
  • AKA Daniel
Re: How to create JSON files from simple drawings?
« Reply #1 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
Retired

Peter2

  • Swamp Rat
  • Posts: 626
Re: How to create JSON files from simple drawings?
« Reply #2 on: September 28, 2022, 02:26:43 AM »
Thanks.
...Not a trivial though
Are there "ready-to-use"-tools?
Peter

AutoCAD Map 3D 2018 German (so some technical terms will be badly retranslated to English)
BricsCAD V21

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 7486
  • AKA Daniel
Re: How to create JSON files from simple drawings?
« Reply #3 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
Retired