Example #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;
            }
        }
Example #2
0
 public void AddRole(IfcActorRole newRole)
 {
     if (Roles == null)
     {
         _roles = new ActorRoleCollection(this);
     }
     Roles.Add(newRole);
 }
Example #3
0
 ///<summary>
 ///  Sets the ActorRoleCollection to the array of ActorRole, deletes any previous values, initialises collection.
 ///</summary>
 public void SetRoles(params IfcActorRole[] actorRoles)
 {
     if (_roles == null)
     {
         _roles = new ActorRoleCollection(this);
     }
     else
     {
         _roles.Clear();
     }
     foreach (IfcActorRole item in actorRoles)
     {
         _roles.Add(item);
     }
 }
Example #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;
            }
        }
Example #5
0
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _thePerson = value.EntityVal as IfcPerson;
                break;

            case 1:
                _theOrganization = value.EntityVal as IfcOrganization;
                break;

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

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Example #6
0
 internal bool IsEquivalent(ActorRoleCollection roles)
 {
     return(this.ToString() == roles.ToString());
 }