subfiles in MPD files


Re: subfiles in MPD files
#14
Roland Melkert Wrote:Filename is a misleading name for (as is model for that matter) all this.

The thing we are using is a reference, a reference is always relative and can include a subfolder.

The biggest mistake a parser can make is to simply split the absolute pathname into a folder and filename. And thus internally loosing the relative references. I suspect that's what's going on inside mlcad in regards to mpd's

Yes, that's quite plausible. As I said, I don't believe MLCad was really designed with this in mind :-) It is first and foremost a model-editor, and models do not have the concept of relative paths in the way that parts do.

My parser calls these things 'TargetName'. A TargetName consists of three components: the Prefix, the Name and the Suffix. The Prefix is optional, and when present is either 's\' or '48\'. The Name is the filename without its extension, and the Suffix is simply the extension. From an editing perspective, the user can only set the Name. The Prefix and Suffix are set automatically from the 'Type' value (the thing that gets written to the !LDRAW_ORG line): for example, if Type is 'Model' then the Prefix is omitted and the Suffix is set to '.ldr'.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
subfiles in MPD files - by Michael Heidemann - 2012-11-10, 18:40
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:12
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:42
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:40
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:54
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 20:24
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:35
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 21:08
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 18:14
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 18:31
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 19:10
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 19:21
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 21:21
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:22
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 20:29
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 21:02
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:25
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:55
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 21:04
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 21:19
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 21:56
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 22:16
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 23:07
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 18:17
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 18:49
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 19:07
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 18:21
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 18:34
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 21:22

Forum Jump:


Users browsing this thread: 7 Guest(s)