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; } }
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; } }
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); }