Alias parts PHP script


Re: Alias parts PHP script
#12
The type meta can be a pain to parse indeed.

This is what I'm using at the moment:

Code:
meta: "LDRAW", "LDRAWORG", "LDRAW_ORG", "!LDRAW_ORG", "OFFICIAL", "UNOFFICIAL", "UN-OFFICIAL",

type:   "Part",  "Subpart",  "Primitive",  "48_Primitive",  "Shortcut",  "File",  "Model",  "Submodel",  "Element",  "Sub-part",  "Hi-Res primitive",  "Alias",  "Cross-reference",  "Configuration",  "Unofficial_Primitive",  "Unofficial_Part",  "Unofficial_Model"

qualifier: "Physical_Colour", "Alias"

All case insensitive, and do note the space in "Hi-Res primitive" you need to keep an eye on that while parsing.

You also need to skip an optional "LCAD" after the main meta keyword.

Hope it helps.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Alias parts PHP script - by Orion Pobursky - 2012-06-27, 14:26
Re: Alias parts PHP script - by Allen Smith - 2012-06-27, 16:14
Re: Alias parts PHP script - by Chris Dee - 2012-06-28, 5:41
Re: Alias parts PHP script - by Allen Smith - 2012-06-28, 15:59
Re: Alias parts PHP script - by Steffen - 2012-06-30, 10:27
Re: Alias parts PHP script - by Chris Dee - 2012-06-30, 11:02
Re: Alias parts PHP script - by Allen Smith - 2012-07-02, 1:00
Re: Alias parts PHP script - by Allen Smith - 2012-07-06, 15:59
Re: Alias parts PHP script - by Roland Melkert - 2012-07-06, 16:58
Re: Alias parts PHP script - by Allen Smith - 2012-07-06, 17:53
Re: Alias parts PHP script - by Chris Dee - 2012-07-08, 6:57
Re: Alias parts PHP script - by Allen Smith - 2012-07-08, 22:48

Forum Jump:


Users browsing this thread: 2 Guest(s)