Exemple #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _literal = value.StringVal;
                return;

            case 1:
                _placement = (IfcAxis2Placement)(value.EntityVal);
                return;

            case 2:
                _path = (IfcTextPath)System.Enum.Parse(typeof(IfcTextPath), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Exemple #2
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _literal = value.StringVal;
                break;

            case 1:
                _placement = (IfcAxis2Placement)value.EntityVal;
                break;

            case 2:
                _path = (IfcTextPath)Enum.Parse(typeof(IfcTextPath), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemple #3
0
 public IfcTextLiteral(IfcPresentableText __Literal, IfcAxis2Placement __Placement, IfcTextPath __Path)
 {
     this._Literal   = __Literal;
     this._Placement = __Placement;
     this._Path      = __Path;
 }
 public IfcTextLiteralWithExtent(IfcPresentableText __Literal, IfcAxis2Placement __Placement, IfcTextPath __Path, IfcPlanarExtent __Extent, IfcBoxAlignment __BoxAlignment)
     : base(__Literal, __Placement, __Path)
 {
     this._Extent       = __Extent;
     this._BoxAlignment = __BoxAlignment;
 }