internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary <int, BaseClassIfc> dictionary) { base.parse(str, ref pos, release, len, dictionary); RelatingMaterial = dictionary[ParserSTEP.StripLink(str, ref pos, len)] as IfcMaterial; RelatedMaterials.AddRange(ParserSTEP.StripListLink(str, ref pos, len).Select(x => Database[x] as IfcMaterial)); mMaterialExpression = ParserIfc.Decode(ParserSTEP.StripString(str, ref pos, len)); }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(Name != null ? Name.ToStepValue() : "$"); parameters.Add(Description != null ? Description.ToStepValue() : "$"); parameters.Add(RelatingMaterial != null ? RelatingMaterial.ToStepValue() : "$"); parameters.Add(RelatedMaterials != null ? RelatedMaterials.ToStepValue() : "$"); parameters.Add(Expression != null ? Expression.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }