Exemplo n.º 1
0
        public override string GetStepParameters()
        {
            var parameters = new List <string>();

            parameters.Add(Name != null ? Name.ToStepValue() : "$");
            parameters.Add(Description != null ? Description.ToStepValue() : "$");
            parameters.Add(RelatingDocument != null ? RelatingDocument.ToStepValue() : "$");
            parameters.Add(RelatedDocuments != null ? RelatedDocuments.ToStepValue() : "$");
            parameters.Add(RelationshipType != null ? RelationshipType.ToStepValue() : "$");

            return(string.Join(", ", parameters.ToArray()));
        }
Exemplo n.º 2
0
 internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary <int, BaseClassIfc> dictionary)
 {
     RelatingDocument = dictionary[ParserSTEP.StripLink(str, ref pos, len)] as IfcDocumentInformation;
     RelatedDocuments.AddRange(ParserSTEP.StripListLink(str, ref pos, len).Select(x => dictionary[x] as IfcDocumentInformation));
     RelationshipType = ParserIfc.Decode(ParserSTEP.StripString(str, ref pos, len));
 }