Home :: Login :: Forgot Password :: Search :: FAQ
Support our host

News

Software

Reference

Community

Parts Library

About Us

Reference > Tutorials
Published By ahui on Sunday, September 07, 2003 - 01:44 AM

Printer-friendly page
Using The LDraw File Model Comments
What are the LDraw file comments and why used them
TOP
Family House Image
Figure 1: Family Home, Creator UNKNOWN (Click on the image to enlarge)
This wonderful model of a family home will never be able to create the proper credit it deserves. Can you guess why? The LDraw model ONLY provides the actual model! There is no name of the person who created it, when it was created, or any other information that could have been used to properly document this model.

Unless the author stumbles across this tutorial in the vastness of the internet the true owner will never be identified. You can avoid this faith to your models by provideing comments within the model before posting them to the world wide web.
How Do I Add Comments To My LDaw Model File
TOP
There are several ways of adding comments to your LDraw models. In this tutorial we will discuss the "old-fashion" way of adding comments by using a text editor.
Step 1 Open your LDraw model file using any text editor. For our example we will use Microsoft NOTEPAD and the blocks.ldr model file.
Step 2 Looking at the blocks.ldr file in a text editor will show you the following:

0 Name: Blocks.ldr
0 Author: MLCAD
0 Unoffical LEGO Model
0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
1 4 0 0 0 -1 0 0 0 1 0 0 0 -1 3001.DAT
1 1 -40 24 0 0 0 -1 0 1 0 1 0 0 3001.DAT
1 1 40 24 0 0 0 -1 0 1 0 1 0 0 3001.DAT
1 14 0 -24 0 0 0 1 0 1 0 -1 0 0 30165.DAT
0


In an LDraw model file comments are denoted by beginning a line with a "0". As you can see there are five (5) comment lines in this file.
Step 3 Comments are subjective to each person but the "ideal LDraw" file would have the following information:
  • Name of file
  • Author
  • e-Mail of Author or some method of contacting author
  • URL (website of author or where the file can be found)
  • Copyright date
  • Anything else you want


So how do you add all this information? Simple, just add comment lines to your file!
Step 4 Our new bricks-comments.ldr file shows what our comments would look like.

0 Name: Blocks.ldr
0 Author: LDraw Help Desk
0 e-Mail: help (at)ldraw.org
0 http://www.ldraw.org/
0 Copyright 2003
0 This is a sample ldraw model
0 It shows how to add comments to a file

0 Unoffical LEGO Model
0 ROTATION CENTER 0 0 0 1 "Custom"
0 ROTATION CONFIG 0 0
1 4 0 0 0 -1 0 0 0 1 0 0 0 -1 3001.DAT
1 1 -40 24 0 0 0 -1 0 1 0 1 0 0 3001.DAT
1 1 40 24 0 0 0 -1 0 1 0 1 0 0 3001.DAT
1 14 0 -24 0 0 0 1 0 1 0 -1 0 0 30165.DAT
0


Save the file once you are done and that is all. If you are using Microsoft NOTEPAD you will need to select the "Save as Type" and choose "All Files" before saving your LDraw file. Otherwise your model wil be renamed to <model-name>.ldr.txt
 

Help Desk Tutorial: LDraw File Comments
Version 1.0
Created by Ahui Herrera, LDraw Help Desk



Recipient 2007
Kevin Clague

Want to learn more about LDraw? Check out the following books:




Current Contest Winners

Model of the Month


Scene of the Month



Vote for Next Month's Winner

Submit Your Creation for Next Month's Contest

What's new in lugnet.cad?

Re: "LGEO" and "L3P v1.4 BETA 20080930"
by Jeff Boen - 6 hours ago

Re: Looking for part - Hinge Arm 2x2x6
by Dave Heintz - 6 hours ago

Introduction to LPub 4 video
by Jim DeVona - 8 hours ago

Re: Looking for part - Hinge Arm 2x2x6
by Michael Heidemann - 11 hours ago


There are 65 unlogged users and 0 registered users online.

You can log-in or register for a user account here.





 


 Log in Problems?
 New User? Sign Up!

©2003-2008 LDraw.org, see Legal Info for details.
LDraw™ is a trademark owned and licensed by the Estate of James Jessiman
This website is powered by Peeron.com.

LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this site. Visit the official Lego website at http://www.lego.com.
LDraw is a completely unofficial, community run free CAD system which represents official parts produced by the LEGO company.