Welcome! Log In Create A New Profile

Advanced
Re: subfiles in MPD files
November 11, 2012 10:49AM
It might be, but I would be very wary about any change to the 'document structure'.

LDraw files are a flat-format, which causes some problems when trying to impose a structure on them. The closest we have in the official standards is the 'STEP' meta-command; as Allen suggested a couple of weeks ago, you could look at an LDraw document as being a collection of 'steps', each of which contains other elements - quads, references, other meta-commands and so on. I quite like this approach :-)

MLCad has an implementation of 'groups', albeit a rather idiosyncratic one - it indicates group-membership by putting a meta-command in front of each element which is a member of that group. This prevents groups from being nested, which is sometimes rather limiting, although it does allow you to group together elements from different steps.

Texmap is somewhat structural in that the elements between !TEXMAP START and !TEXMAP END could be seen as being members of a sub-collection. Unlike MLCad's groups, the members of a texmap must all be from the same step.

MPDs add an extra layer: you have a document, which contains multiple 'pages'. Each 'page' is simply a regular LDraw file; in fact, you can look at a simple LDraw file as being an MPD with a single 'page'; the only functional difference is that the file does not have an explicit '0 FILE' meta-command at the start.

So you end up with a possible document-tree like this:

Document.mpd
  |
  +--- Page1.ldr
  |        |
  |        +--- Step
  |        |      |
  |        |      +--- 1 16 0 0 0 1 0 0 0 1 0 0 0 1 3001.dat
  |        |      +--- 2 24 0 0 0 1 1 1
  |        |
  |        +--- Step
  |               |
  |               +--- 3 16 0 0 0 1 1 1 2 2 2
  |  
  +--- Page2.ldr
           |
           +--- Step
                  |
                  +--- 4 16 0 0 0 1 1 1 2 2 2 3 3 3
                  +--- Texmap
                           |
                           +--- 1 16 0 0 0 1 0 0 0 1 0 0 0 1 s\12345s01.dat

I'm not quite sure where your proposed syntax would fit into such a tree.
SubjectAuthorViewsPosted
subfiles in MPD files Attachments Michael Heidemann592November 10, 2012 10:40AM
Re: subfiles in MPD files Alex Taylor250November 10, 2012 11:12AM
Re: subfiles in MPD files Michael Heidemann232November 10, 2012 11:34AM
Re: subfiles in MPD files Michael Heidemann236November 10, 2012 11:39AM
Re: subfiles in MPD files Alex Taylor245November 10, 2012 11:42AM
Re: subfiles in MPD files Michael Heidemann214November 10, 2012 12:07PM
Re: subfiles in MPD files Alex Taylor250November 10, 2012 11:40AM
Re: subfiles in MPD files Michael Heidemann240November 10, 2012 11:47AM
Re: subfiles in MPD files Alex Taylor225November 10, 2012 11:54AM
Re: subfiles in MPD files Michael Heidemann235November 10, 2012 12:13PM
Re: subfiles in MPD files Alex Taylor222November 10, 2012 12:24PM
Re: subfiles in MPD files Michael Heidemann239November 10, 2012 12:33PM
Re: subfiles in MPD files Roland Melkert224November 10, 2012 12:35PM
Re: subfiles in MPD files Michael Heidemann220November 10, 2012 12:41PM
Re: subfiles in MPD files Michael Heidemann226November 10, 2012 12:44PM
Re: subfiles in MPD files Roland Melkert296November 10, 2012 01:08PM
Re: subfiles in MPD files Michael Heidemann231November 10, 2012 03:27PM
Re: subfiles in MPD files Roland Melkert222November 11, 2012 10:14AM
Re: subfiles in MPD files Alex Taylor273November 11, 2012 10:31AM
Re: subfiles in MPD files Roland Melkert281November 11, 2012 11:10AM
Re: subfiles in MPD files Alex Taylor285November 11, 2012 11:21AM
Re: subfiles in MPD files Michael Heidemann271November 11, 2012 01:04PM
Re: subfiles in MPD files Roland Melkert280November 11, 2012 01:21PM
Re: subfiles in MPD files Roland Melkert210November 10, 2012 12:22PM
Re: subfiles in MPD files Alex Taylor233November 10, 2012 12:29PM
Re: subfiles in MPD files Michael Heidemann220November 10, 2012 12:37PM
Re: subfiles in MPD files Alex Taylor249November 10, 2012 01:02PM
Re: subfiles in MPD files Michael Heidemann267November 10, 2012 02:59PM
Re: subfiles in MPD files Roland Melkert235November 10, 2012 12:25PM
Re: subfiles in MPD files Michael Heidemann231November 10, 2012 12:45PM
Re: subfiles in MPD files Roland Melkert273November 10, 2012 12:55PM
Re: subfiles in MPD files Alex Taylor265November 10, 2012 01:04PM
Re: subfiles in MPD files Roland Melkert289November 10, 2012 01:19PM
Re: subfiles in MPD files Alex Taylor292November 10, 2012 01:56PM
Re: subfiles in MPD files Roland Melkert281November 10, 2012 02:16PM
Re: subfiles in MPD files Alex Taylor278November 10, 2012 03:07PM
Re: subfiles in MPD files Michael Heidemann253November 10, 2012 03:24PM
Re: subfiles in MPD files Roland Melkert214November 11, 2012 10:17AM
Re: subfiles in MPD files Alex Taylor269November 11, 2012 10:49AM
Re: subfiles in MPD files Roland Melkert277November 11, 2012 11:07AM
Re: subfiles in MPD files Michael Heidemann275November 10, 2012 02:55PM
Re: subfiles in MPD files Roland Melkert225November 11, 2012 10:21AM
Re: subfiles in MPD files Michael Heidemann273November 11, 2012 01:19PM
Re: subfiles in MPD files Alex Taylor291November 11, 2012 10:34AM
Re: subfiles in MPD files Michael Heidemann274November 11, 2012 01:15PM
Re: subfiles in MPD files Alex Taylor289November 11, 2012 01:22PM
Re: subfiles in MPD files Michael Heidemann300November 12, 2012 11:17AM



Sorry, only registered users may post in this forum.

Click here to login