Exemple #1
0
        internal override void CopyValues(IfcObjectPlacement value)
        {
            IfcGridPlacement gp = value as IfcGridPlacement;

            PlacementLocation     = gp.PlacementLocation;
            PlacementRefDirection = gp.PlacementRefDirection;
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _placementLocation = (IfcVirtualGridIntersection) value.EntityVal;
             break;
         case 1:
             _placementRefDirection = (IfcVirtualGridIntersection) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Exemple #3
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _placementLocation = (IfcVirtualGridIntersection)value.EntityVal;
                break;

            case 1:
                _placementRefDirection = (IfcVirtualGridIntersection)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemple #4
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _placementLocation = (IfcVirtualGridIntersection)(value.EntityVal);
                return;

            case 1:
                _placementRefDirection = (IfcVirtualGridIntersection)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        public override bool Equals(object obj)
        {
            // Check for null
            if (obj == null)
            {
                return(false);
            }

            // Check for type
            if (this.GetType() != obj.GetType())
            {
                return(false);
            }

            // Cast as IfcRoot
            IfcVirtualGridIntersection root = (IfcVirtualGridIntersection)obj;

            return(this == root);
        }
 internal override void CopyValues(IfcObjectPlacement value)
 {
     IfcGridPlacement gp = value as IfcGridPlacement;
     PlacementLocation = gp.PlacementLocation;
     PlacementRefDirection = gp.PlacementRefDirection;
 }