If I understand your question ("how do I transform the file I (Derek) posted into the file you (Jean-Philippe) posted?") then it is a simple matter of opening the file in a text editor and removing every line that does not begin with the number 1.
I actually did it using the following command:
where derek.mpd is a file in your working directory, and derek-new.mpd is the resulting file will all submodels combined.
Note that this ONLY works for models where each submodel is included exactly once. It is also bad because it removes the headers (file name, author name, etc.). This is by no means a proper approach, but it works in this specific case.
I actually did it using the following command:
Code:
grep ^1 derek.mpd > derek-new.ldr
Note that this ONLY works for models where each submodel is included exactly once. It is also bad because it removes the headers (file name, author name, etc.). This is by no means a proper approach, but it works in this specific case.