Dieses Tool dient zur automatischen Erstellung von pixelgenauen Grafiken aus JSON-Dateien, die Koordinaten und Farbinformationen enthalten. Es wurde speziell entwickelt, um die Arbeit mit Archicad und GDL-Objekten zu unterstützen, indem es Schraffuren, Polygone und weitere grafische Elemente direkt in Bilder umwandelt.
Die genannten JSON-Dateien werden hierbei von einem GDL-Objekt exportiert, mit welchem man direkt in Archicad die gewünschten Grafiken pixelgenau (d.h. 1 Meter entspricht 1 Pixel) und sehr zeitsparend erstellt. Vergleichstests mit einem Pixelzeichenprogramm ergaben, dass man mit diesem Tool ungefähr doppelt so schnell ist.
In Archicad wird mit Hilfe eines parametrischen GDL-Objektes, welches eine Bibliothek mit einfachen Grundformen besitzt, eine Grafik im Maßstab 1 Meter entspricht 1 Pixel gezeichnet.
Nach Fertigstellung werden die Daten aus dem GDL-Objekt in eine JSON-Textdatei exportiert
Die JSON-Datei enthält Informationen zu Polygonen, Kreisen, Rechtecken etc. sowie den dazugehörigen Koordinaten
Die JSON Datei wird an ein Webtool übergeben.
Verarbeitung: Das Tool:
Bereinigt die JSON-Datei (z. B. korrigiert Encoding-Probleme).
Erzeugt eine HTML-Datei zur Darstellung der Grafiken.
Generiert automatisch ein PNG-Bild mit transparenter Hintergrundfarbe.
Ausgabe: Die generierten PNG-Grafiken werden in einem Unterordner gespeichert und können sofort verwendet werden.
Einstellungsdialog
This tool is used to automatically create pixel-perfect graphics from JSON files containing coordinates and colour information. It was specially developed to support work with Archicad and GDL objects by converting hatchings, polygons and other graphic elements directly into images.
The aforementioned JSON files are exported from a GDL object, with which the desired graphics can be created directly in Archicad with pixel accuracy (i.e. 1 metre corresponds to 1 pixel) and in a very time-saving manner. Comparative tests with a pixel drawing programme have shown that this tool is approximately twice as fast.
In Archicad, a parametric GDL object, which has a library of simple basic shapes, is used to draw a graphic at a scale of 1 metre corresponds to 1 pixel.
After completion, the data is exported from the GDL object to a JSON text file
The JSON file contains information on polygons, circles, rectangles etc. as well as the corresponding coordinates
The JSON file is transferred to a web tool.
Processing: The tool:
Cleans up the JSON file (e.g. corrects encoding problems).
Creates an HTML file to display the graphics.
Automatically generates a PNG image with a transparent background colour.
Output: The generated PNG graphics are saved in a subfolder and can be used immediately.