https://github.com/LibreDWG/libredwg
446
RELEVANT PARTS FROM THE LIBREDWG GITHUB REPO:
LibreDWG - free implementation of the DWG file format
LibreDWG is a free C library to read and write DWG files. This program is part of the GNU project, released under the aegis of GNU. It is licensed under the terms of the GNU General Public License version 3 (or at you option any later version).
DWG is a file format created in the 70's for the emerging CAD applications. Currently it is the native file format of AutoCAD, a proprietary CAD program developed by AutoDesk.
== Example usage of the library ==
The programs and examples directories contains some application code that uses our lib:
dwgread -- A DWG reader supporting various output formats, such as JSON, DXF, DXFB, GeoJSON. Later also YAML, XML/OGR, GPX, SVG, PS.
dwgwrite -- A DWG writer supporting various input formats, such as DXF, DXFB, JSON. GeoJSON, YAML, XML/OGR, GPX are under construction.
dwgrewrite -- Reads a DWG, writes it back under a different name and optionally under a different version (default r2000), and re-reads it back for confirmation.
dwg2dxf -- Converts a DWG to a DXF (ascii or binary, minimal or full), optionally under a different version. About 90% coverage.
dxf2dwg -- Converts a ascii or binary DXF to a DWG (r2000 only so far). About 80% coverage.
dwglayers -- Prints the list of layers in a DWG. Optionally with --extnames
dwggrep -- Searches DWG files for a text string, via regular expressions.
dwg2ps -- Opens a DWG file and outputs an PostScript file. This code depends on the PSlib library. On Debian-based systems this is usually available as a package named pslib-dev. This is very limited so far.
dwg2SVG -- Opens a DWG file and outputs an SVG (Scalable Vector Graphics) file. SVG is a W3C standard for 2d vector graphics. You can open these files on several free software tools. We recommend Inkscape, a free software vector graphics editor. The dwg2SVG program will not handle 3d content from DWG since SVG only supports 2-dimensional images. Handles only some entities.
dwgbmp -- Extracts the bmp thumbnail of a dwg file when it is available.
load_dwg -- This is a skeleton code, reading the DWG and adding an entity. Look there if you want to have a quickly glance on how to use the library.
dwg2svg2 -- Another example how to use the DWG API, bypassing direct access to the DWG struct.
xmlsuite -- an extensive example library to use XML to compare against prepared features is in the test/xmlsuite directory. It also features code to output entities in XML, but does not use the python bindings.
Copyright (C) 2009, 2010, 2015, 2018-2020 Free Software Foundation, Inc.
Content type
Image
Digest
Size
116.8 MB
Last updated
about 6 years ago
docker pull netanel246/libredwg:0.10.1.3707