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())); } }
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; }
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>(); }
private IfcShapeAspect(DatabaseIfc db, string name, string desc, IfcProductRepresentationSelect pr) : base(db) { Name = name; Description = desc; if (pr != null) mPartOfProductDefinitionShape = pr.Index; }
public IfcShapeAspect(IfcShapeModel rep, string name, string desc, IfcProductRepresentationSelect pr) : this(rep.mDatabase, name, desc, pr) { mShapeRepresentations.Add(rep.mIndex); }
public IfcShapeAspect(List<IfcShapeModel> reps, string name, string desc, IfcProductRepresentationSelect pr) : this(reps[0].mDatabase, name, desc, pr) { mShapeRepresentations = reps.ConvertAll(x => x.mIndex); }