Пример #1
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _id = value.StringVal;
                break;

            case 1:
                _familyName = value.StringVal;
                break;

            case 2:
                _givenName = value.StringVal;
                break;

            case 3:
                if (_middleNames == null)
                {
                    _middleNames = new LabelCollection(this);
                }
                ((IXbimNoNotifyCollection)_middleNames).Add(new IfcLabel(value.StringVal));
                break;

            case 4:
                if (_prefixTitles == null)
                {
                    _prefixTitles = new LabelCollection(this);
                }
                ((IXbimNoNotifyCollection)_prefixTitles).Add(new IfcLabel(value.StringVal));
                break;

            case 5:
                if (_suffixTitles == null)
                {
                    _suffixTitles = new LabelCollection(this);
                }
                ((IXbimNoNotifyCollection)_suffixTitles).Add(new IfcLabel(value.StringVal));
                break;

            case 6:
                if (_roles == null)
                {
                    _roles = new ActorRoleCollection(this);
                }
                ((IXbimNoNotifyCollection)_roles).Add((IfcActorRole)value.EntityVal);
                break;

            case 7:
                if (_addresses == null)
                {
                    _addresses = new AddressCollection(this);
                }
                ((IXbimNoNotifyCollection)_addresses).Add((IfcAddress)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #2
0
 internal bool IsEquivalent(AddressCollection ac)
 {
     if (ac == null)
     {
         return(false);
     }
     return(ac.ToString() == ToString());
 }
Пример #3
0
 ///<summary>
 ///  Sets the AddressCollection to the array of IfcPostalAddress, deletes any previous values, initialises collection.
 ///  Should test to see if Addresses exists before calling unless a new list is required, if not use Add or Add_Reversible if within a transaction
 ///</summary>
 public void SetPostalAddresss(params IfcPostalAddress[] telecomAddress)
 {
     if (_addresses == null)
     {
         _addresses = new AddressCollection(this);
     }
     else
     {
         _addresses.Clear();
     }
     foreach (IfcPostalAddress item in telecomAddress)
     {
         _addresses.Add(item);
     }
 }
Пример #4
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _id = value.StringVal;
                break;

            case 1:
                _name = value.StringVal;
                break;

            case 2:
                _description = value.StringVal;
                break;

            case 3:
                if (_roles == null)
                {
                    _roles = new ActorRoleCollection(this);
                }
                ((IXbimNoNotifyCollection)_roles).Add((IfcActorRole)value.EntityVal);
                break;

            case 4:
                if (_addresses == null)
                {
                    _addresses = new AddressCollection(this);
                }
                ((IXbimNoNotifyCollection)_addresses).Add((IfcAddress)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }