Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/g105b/db2dxf
https://github.com/g105b/db2dxf
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/g105b/db2dxf
- Owner: g105b
- Created: 2015-08-03T15:14:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-20T18:32:01.000Z (about 9 years ago)
- Last Synced: 2024-05-01T20:31:22.399Z (5 months ago)
- Language: PHP
- Size: 188 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# db2dxf
Database to DXF script.
Database object definitions
---------------------------### `Drawing`
A drawing is the whole collection of elements within the DXF file.
* `ID` INT
* `name` VARCHAR(32)### `Element`
An element is an individual abstract component of the drawing. An element on its own has no intrinsic position or size, as this data is stored against an element using an `Attribute` or `Attribute_List`.
All elements must be associated to a `Drawing`, must have an `Element_Type`, and can be children of other Elements using the parent field.
* `ID` INT
* `ID_Drawing` INT FK[Drawing:ID]
* `ID_Element_Type` VARCHAR(32) FK[Element_Type:name]
* `ID_Element__parent` INT FK[Element:ID] (Optional)
* `name` VARCHAR(32)
* `description` VARCHAR(128)### `Element_Type`
An Element Type acts as an enumeration of the different types available to the DXF format, such as `Circle`, `Spline`, `Face`, etc.
* `name` VARCHAR(32)
### `Attribute`
Defines a single attribute associated to an Element with a single value. An Attribute is a key-value-pair.
* `ID` INT
* `ID_Element` INT FK[Element:ID]
* `key` VARCHAR(32)
* `value` VARCHAR(128)### `Attribute_List`
Defines a single attribute associated to an Element with multiple values. An Attribute List is a key with multiple values associated. Each value is stored as an `Attribute_List_Item` record.
* `ID` INT
* `ID_Element` INT FK[Element:ID]
* `key` VARCHAR(32)### `Attribute_List_Item`
Stores a list of values associated to an Attribute List.
* `ID` INT
* `ID_Attribute_List` INT FK[Attribute_List:ID]
* `value` VARCHAR(128)