I'm not sure if names are necessary or not.
Having said that, one thing I didn't notice when I initially looked at your file is that I would argue that it goes against best practices for meta-commands. If you feel it is necessary to introduce new meta-commands to make this work, ideally you should only introduce a single one, and have it have one ENUM argument and then optional info after that. The LDraw spec states that you should use the program name of your program, but since you're trying to make this useful for everyone, that doesn't seem appropriate. However, I still feel that it's better to have related functionality be grouped under a single meta-command, instead of two like you have. It makes it obvious that the statements are related.
For example, you could do the following:
In the above, you would be introducing the !RELATION meta-command. PARENT and CHILD are required as the first argument, and every other argument after CHILD is the child's name. At least two current official meta-commands behave like this (BFC and !TEXMAP).
Having said that, one thing I didn't notice when I initially looked at your file is that I would argue that it goes against best practices for meta-commands. If you feel it is necessary to introduce new meta-commands to make this work, ideally you should only introduce a single one, and have it have one ENUM argument and then optional info after that. The LDraw spec states that you should use the program name of your program, but since you're trying to make this useful for everyone, that doesn't seem appropriate. However, I still feel that it's better to have related functionality be grouped under a single meta-command, instead of two like you have. It makes it obvious that the statements are related.
For example, you could do the following:
Code:
0 !RELATION PARENT
1 4 0 0 0 1 0 0 0 1 0 0 0 1 122c01.dat
1 4 0 0 0 1 0 0 0 1 0 0 0 1 122c02.dat
0 !RELATION CHILD Left Tire
1 1 -31.000000 6.000000 0.000000 0.000000 0.000000 1.000000 0.000000 1.000000 0.000000 -1.000000 0.000000 0.000000 3641.dat
1 1 -31.000000 6.000000 0.000000 -0.000000 0.000000 1.000000 -0.000000 1.000000 -0.000000 -1.000000 -0.000000 -0.000000 4084.dat
0 !RELATION PARENT
1 4 100 0 0 1 0 0 0 1 0 0 0 1 122c01.dat
1 4 100 0 0 1 0 0 0 1 0 0 0 1 122c02.dat
0 !RELATION CHILD Right Tire
1 1 131.000000 6.000000 0.000000 -0.000000 0.000000 -1.000000 -0.000000 1.000000 -0.000000 1.000000 0.000000 -0.000000 3641.dat
1 1 131.000000 6.000000 0.000000 -0.000000 0.000000 -1.000000 -0.000000 1.000000 -0.000000 1.000000 0.000000 -0.000000 4084.dat
In the above, you would be introducing the !RELATION meta-command. PARENT and CHILD are required as the first argument, and every other argument after CHILD is the child's name. At least two current official meta-commands behave like this (BFC and !TEXMAP).