コード例 #1
0
 internal IfcGridPlacement(DatabaseIfc db, IfcGridPlacement p) : base(db, p)
 {
     PlacementLocation = db.Factory.Duplicate(p.PlacementLocation) as IfcVirtualGridIntersection;
     if (p.mPlacementRefDirection != null)
     {
         PlacementRefDirection = db.Factory.Duplicate(p.PlacementRefDirection) as IfcGridPlacementDirectionSelect;
     }
 }
コード例 #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _placementLocation = (IfcVirtualGridIntersection)(value.EntityVal);
                return;

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

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #3
0
ファイル: IfcGridPlacement.cs プロジェクト: vdubya/IfcDoc
 public IfcGridPlacement(IfcVirtualGridIntersection __PlacementLocation, IfcGridPlacementDirectionSelect __PlacementRefDirection)
 {
     this.PlacementLocation     = __PlacementLocation;
     this.PlacementRefDirection = __PlacementRefDirection;
 }