Hi Roland,
Very well. In fact, I already do in LPub3D what you are suggesting. The LDCad unofficial meta is the fist entry in the list of unofficial types I check - see below.
As you said, generated content are 'technically' parts so my thinking was why not offer the ability to persist this content as such - respecting conventional LDraw part extension naming.
However from what I understand in your response, using .dat extension and incorporating the LDRAW_ORG Unofficial_Part meta are more-or-less reserved for parts that will eventually become official LDraw parts - is this correct ?
Cheers,
Very well. In fact, I already do in LPub3D what you are suggesting. The LDCad unofficial meta is the fist entry in the list of unofficial types I check - see below.
As you said, generated content are 'technically' parts so my thinking was why not offer the ability to persist this content as such - respecting conventional LDraw part extension naming.
However from what I understand in your response, using .dat extension and incorporating the LDRAW_ORG Unofficial_Part meta are more-or-less reserved for parts that will eventually become official LDraw parts - is this correct ?
Code:
LDrawUnofficialFileTypeRegExp
<< QRegExp("^\\s*0\\s+[b]UNOFFICIAL PART[/b][^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Part)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Subpart)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Shortcut)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Primitive)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_8_Primitive)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_48_Primitive)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Part Alias)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Shortcut Alias)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Part Physical_Colour)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial_Shortcut Physical_Colour)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Part)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Subpart)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Shortcut)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Primitive)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial 8_Primitive)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial 48_Primitive)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Part Alias)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Shortcut Alias)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Part Physical_Colour)[^\n]*")
<< QRegExp("^\\s*0\\s+!*(?:LDRAW_ORG)* (Unofficial Shortcut Physical_Colour)[^\n]*")
Cheers,