Пример #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _shapeRepresentations.InternalAdd((IfcShapeModel)value.EntityVal);
                return;

            case 1:
                _name = value.StringVal;
                return;

            case 2:
                _description = value.StringVal;
                return;

            case 3:
                _productDefinitional = value.BooleanVal;
                return;

            case 4:
                _partOfProductDefinitionShape = (IfcProductRepresentationSelect)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #2
0
 public IfcShapeAspect(IfcShapeModel[] __ShapeRepresentations, IfcLabel?__Name, IfcText?__Description, IfcLogical __ProductDefinitional, IfcProductRepresentationSelect __PartOfProductDefinitionShape)
 {
     this._ShapeRepresentations = new List <IfcShapeModel>(__ShapeRepresentations);
     this._Name                         = __Name;
     this._Description                  = __Description;
     this._ProductDefinitional          = __ProductDefinitional;
     this._PartOfProductDefinitionShape = __PartOfProductDefinitionShape;
 }
Пример #3
0
 public IfcShapeAspect(IfcShapeModel[] __ShapeRepresentations, IfcLabel?__Name, IfcText?__Description, IfcLogical __ProductDefinitional, IfcProductRepresentationSelect __PartOfProductDefinitionShape)
 {
     this.ShapeRepresentations = new List <IfcShapeModel>(__ShapeRepresentations);
     this.Name                         = __Name;
     this.Description                  = __Description;
     this.ProductDefinitional          = __ProductDefinitional;
     this.PartOfProductDefinitionShape = __PartOfProductDefinitionShape;
     this.HasExternalReferences        = new HashSet <IfcExternalReferenceRelationship>();
 }
Пример #4
0
		private IfcShapeAspect(DatabaseIfc db, string name, string desc, IfcProductRepresentationSelect pr) : base(db)
		{
			Name = name;
			Description = desc;
			if (pr != null)
				mPartOfProductDefinitionShape = pr.Index;
		}
Пример #5
0
		public IfcShapeAspect(IfcShapeModel rep, string name, string desc, IfcProductRepresentationSelect pr)
			: this(rep.mDatabase, name, desc, pr) { mShapeRepresentations.Add(rep.mIndex); }
Пример #6
0
		public IfcShapeAspect(List<IfcShapeModel> reps, string name, string desc, IfcProductRepresentationSelect pr)
			: this(reps[0].mDatabase, name, desc, pr) { mShapeRepresentations = reps.ConvertAll(x => x.mIndex); }