internal static IfcColour parseColour(string str)
{
string kw = "", def = "";
int id = 0;
ParserIfc.GetKeyWord(str, out id, out kw, out def);
if (string.IsNullOrEmpty(kw))
{
return(null);
}
if (string.Compare(kw, "IFCCOLOURRGB", false) == 0)
{
return(IfcColourRgb.Parse(str));
}
if (string.Compare(kw, "IFCDRAUGHTINGPREDEFINEDCOLOUR", false) == 0)
{
return(IfcDraughtingPreDefinedColour.Parse(str));
}
return(null);
}