DAT: Difference between revisions

From LDraw.org Wiki
Jump to navigation Jump to search
(Created page with "{{File format |name = DAT file |icon = DAT icon.png |extension = {{code|.dat}} |mime = {{code|application/x-ldraw}} |developer = James Jessiman |type =...")
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|type      = Document file format
|type      = Document file format
}}
}}
'''DAT''' is the ''de facto'' file format used by for [[LDraw]] parts. It was previously used for both parts and models, but models are now normally stored as [[LDR]] files instead, although they are both structured in the same way.


==Example==
'''DAT''' is the ''de facto'' file format used for [[LDraw]] parts. It was previously used for both parts and models, but models are now normally stored as [[LDR]] files instead, although they are both structured in the same way.
The following is an example of the contents of {{code|3001.dat}}, as of the first LDraw update of 2008.
 
<pre style="overflow:auto">0 Brick  2 x  4
One or more DAT files can be combined into a [[MPD]] file.
 
== Format ==
 
The following is an example of the contents of {{code|3001.dat}}, as distributed with the original version of [[LDraw (program)|LDraw]].
 
{{pre|0 Brick  2 x  4
0 Name: 3001.dat
0 Name: 3001.dat
0 Author: James Jessiman
0 Author: James Jessiman
0 !LDRAW_ORG Part UPDATE 2004-03
0 Original LDraw Part - LDraw beta 0.27 Archive
0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt
 
1 16 20 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat
1 16 0 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat
1 16 -20 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat
 
1 16 0 24 0 36 0 0 0 -20 0 0 0 16 box5.dat
 
4 16 40 24 20 36 24 16 -36 24 16 -40 24 20
4 16 -40 24 20 -36 24 16 -36 24 -16 -40 24 -20
4 16 -40 24 -20 -36 24 -16 36 24 -16 40 24 -20
4 16 40 24 -20 36 24 -16 36 24 16 40 24 20


0 BFC CERTIFY CCW
1 16 0 24 0 40 0 0 0 -24 0 0 0 20 box5.dat


0 !HISTORY 2002-05-07 [unknown] BFC Certification
1 16 30 0 10 1 0 0 0 1 0 0 0 1 stud.dat
0 !HISTORY 2002-06-11 [PTadmin] Official Update 2002-03
1 16 10 0 10 1 0 0 0 1 0 0 0 1 stud.dat
0 !HISTORY 2004-02-08 [Steffen] used s\3001s01.dat
1 16 -10 0 10 1 0 0 0 1 0 0 0 1 stud.dat
0 !HISTORY 2004-09-15 [PTadmin] Official Update 2004-03
1 16 -30 0 10 1 0 0 0 1 0 0 0 1 stud.dat
0 !HISTORY 2007-05-07 [PTadmin] Header formatted for Contributor Agreement
1 16 30 0 -10 1 0 0 0 1 0 0 0 1 stud.dat
0 !HISTORY 2008-07-01 [PTadmin] Official Update 2008-01
1 16 10 0 -10 1 0 0 0 1 0 0 0 1 stud.dat
1 16 -10 0 -10 1 0 0 0 1 0 0 0 1 stud.dat
1 16 -30 0 -10 1 0 0 0 1 0 0 0 1 stud.dat}}


1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\3001s01.dat
== External Links ==
4 16 -40 0 -20 -40 24 -20 40 24 -20 40 0 -20
4 16 40 0 20 40 24 20 -40 24 20 -40 0 20</pre>


==External links==
* {{ldraw|article/218.html|File Format 1.0.2}}
* {{ldraw|article/218.html|File Format 1.0.2}}


{{stub}}
[[Category:File Format]]

Latest revision as of 22:48, 21 April 2018

DAT file
Filename extension .dat
Internet media type application/x-ldraw
Developed by James Jessiman
Type of format Document file format
File format infobox

DAT is the de facto file format used for LDraw parts. It was previously used for both parts and models, but models are now normally stored as LDR files instead, although they are both structured in the same way.

One or more DAT files can be combined into a MPD file.

Format

The following is an example of the contents of 3001.dat, as distributed with the original version of LDraw.

0 Brick 2 x 4 0 Name: 3001.dat 0 Author: James Jessiman 0 Original LDraw Part - LDraw beta 0.27 Archive 1 16 20 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat 1 16 0 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat 1 16 -20 4 0 1 0 0 0 -5 0 0 0 1 stud4.dat 1 16 0 24 0 36 0 0 0 -20 0 0 0 16 box5.dat 4 16 40 24 20 36 24 16 -36 24 16 -40 24 20 4 16 -40 24 20 -36 24 16 -36 24 -16 -40 24 -20 4 16 -40 24 -20 -36 24 -16 36 24 -16 40 24 -20 4 16 40 24 -20 36 24 -16 36 24 16 40 24 20 1 16 0 24 0 40 0 0 0 -24 0 0 0 20 box5.dat 1 16 30 0 10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 10 0 10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 -10 0 10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 -30 0 10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 30 0 -10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 10 0 -10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 -10 0 -10 1 0 0 0 1 0 0 0 1 stud.dat 1 16 -30 0 -10 1 0 0 0 1 0 0 0 1 stud.dat

External Links