Disallow !KEYWORDS in subparts
2020-08-25, 5:13 (This post was last modified: 2021-07-14, 14:56 by Willy Tschager.)
2020-08-25, 5:13 (This post was last modified: 2021-07-14, 14:56 by Willy Tschager.)
We disallow !KEYWORDS meta-statement in subparts, on the understanding that this language feature is provided to help LDraw users (of tools that implement it) to find 'parts' in the library. An LDraw user should not generally be interested in subparts.
The header checker used to verify files when building a Parts Update detects subparts containing !KEYWORDS and these are removed from the headers prior to release. There were a few instances of this error in unofficial files submitted prior to that header checker being implemented in the Parts Tracker submit script, which have now been corrected.
The documentation here, only talks about the meta-statement being used in parts, but does not explicitly state that it should not be used in subparts. The only sentence that comes close is in the Scope section:
Can we please extend that sentence with ', or subparts', and clarify this restriction in the Official Library Header Specification.
The header checker used to verify files when building a Parts Update detects subparts containing !KEYWORDS and these are removed from the headers prior to release. There were a few instances of this error in unofficial files submitted prior to that header checker being implemented in the Parts Tracker submit script, which have now been corrected.
The documentation here, only talks about the meta-statement being used in parts, but does not explicitly state that it should not be used in subparts. The only sentence that comes close is in the Scope section:
Quote:The !KEYWORDS meta-statement may appear in models but it is not used in primitives.
Can we please extend that sentence with ', or subparts', and clarify this restriction in the Official Library Header Specification.
Chris (LDraw Parts Library Admin)