Example #1
0
        public void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                break;

            case 1:
                _version = value.StringVal;
                break;

            case 2:
                _publisher = (IfcOrganization)value.EntityVal;
                break;

            case 3:
                _versionDate = (IfcCalendarDate)value.EntityVal;
                break;

            case 4:
                if (_libraryReference == null)
                {
                    _libraryReference = new XbimSet <IfcLibraryReference>(this);
                }
                ((IXbimNoNotifyCollection)_libraryReference).Add((IfcLibraryReference)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
         case 5:
         case 6:
         case 7:
         case 8:
             base.IfcParse(propIndex, value);
             break;
         case 9:
             if (_suppliers == null)
                 _suppliers = new XbimSet<IfcActorSelect>(this);
             _suppliers.Add((IfcActorSelect)value.EntityVal);
             break;
         case 10:
             _usageRatio = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
                base.IfcParse(propIndex, value);
                break;

            case 9:
                if (_suppliers == null)
                {
                    _suppliers = new XbimSet <IfcActorSelect>(this);
                }
                _suppliers.Add((IfcActorSelect)value.EntityVal);
                break;

            case 10:
                _usageRatio = value.RealVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Example #4
0
 /// <summary>
 /// Adds the load groups to the LoadedBy Property
 /// </summary>
 /// <param name="loads"></param>
 public void SetLoadedBy(params IfcStructuralLoadGroup[] loads)
 {
     if (LoadedBy == null)
     {
         _loadedBy = new XbimSet <IfcStructuralLoadGroup>(this);
     }
     foreach (var load in loads)
     {
         _loadedBy.Add(load);
     }
 }
Example #5
0
        internal XbimFacetedBrep(XbimDocument document) 
        {
            _document = document;
            _ifcFacetedBrep = _document.Model.Instances.New<IfcFacetedBrep>();

            IfcClosedShell outer = _document.Model.Instances.New<IfcClosedShell>();
            _ifcFacetedBrep.Outer = outer;

            //if (outer.CfsFaces == null) outer.CfsFaces = new XbimSet<IfcFace>();
            _faces = outer.CfsFaces;
        }
 public void SetRecords(IEnumerable<IfcRelAssignsToProjectOrder> records)
 {
     if (_Records == null)
         _Records = new XbimSet<IfcRelAssignsToProjectOrder>(this);
     else
         _Records.Clear_Reversible();
     foreach (IfcRelAssignsToProjectOrder item in records)
     {
         _Records.Add_Reversible(item);
     }
 }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                base.IfcParse(propIndex, value);
                break;

            case 6:
                _yieldStress = value.RealVal;
                break;

            case 7:
                _ultimateStress = value.RealVal;
                break;

            case 8:
                _ultimateStrain = value.RealVal;
                break;

            case 9:
                _hardeningModule = value.RealVal;
                break;

            case 10:
                _proportionalStress = value.RealVal;
                break;

            case 11:
                _plasticStrain = value.RealVal;
                break;

            case 12:
                if (_relaxations == null)
                {
                    _relaxations = new XbimSet <IfcRelaxation>(this);
                }
                _relaxations.Add((IfcRelaxation)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 public void SetSuppliers(params IfcActorSelect[] suppliers)
 {
     if (_suppliers == null)
     {
         _suppliers = new XbimSet <IfcActorSelect>(this);
     }
     else
     {
         _suppliers.Clear();
     }
     foreach (IfcActorSelect item in suppliers)
     {
         _suppliers.Add(item);
     }
 }
Example #9
0
 public void SetRecords(IEnumerable <IfcRelAssignsToProjectOrder> records)
 {
     if (_Records == null)
     {
         _Records = new XbimSet <IfcRelAssignsToProjectOrder>(this);
     }
     else
     {
         _Records.Clear_Reversible();
     }
     foreach (IfcRelAssignsToProjectOrder item in records)
     {
         _Records.Add_Reversible(item);
     }
 }
Example #10
0
 /// <summary>
 ///   Initialise the Editors List and add passed IfcActorSelect objects to list
 /// </summary>
 /// <param name="clear">if true will clear existing list if existing</param>
 /// <param name="ifcActorSelects">IfcActorSelect objects as list or ',' separated parameters</param>
 public XbimSet <IfcActorSelect> SetEditors(bool clear, params IfcActorSelect[] ifcActorSelects)
 {
     if (_editors == null)
     {
         _editors = new XbimSet <IfcActorSelect>(this);
     }
     else if (clear)
     {
         _editors.Clear();
     }
     foreach (IfcActorSelect ifcActorSelect in ifcActorSelects)
     {
         _editors.Add(ifcActorSelect);
     }
     return(_editors);
 }
Example #11
0
 /// <summary>
 ///   Initialise the Document Reference list and add passed IfcDocumentReference objects to list
 /// </summary>
 /// <param name="clear">if true will clear existing list if existing</param>
 /// <param name="ifcDocumentReferences">IfcDocumentReference objects as list or ',' separated parameters</param>
 public XbimSet <IfcDocumentReference> SetDocumentReferences(bool clear, params IfcDocumentReference[] ifcDocumentReferences)
 {
     if (_documentReferences == null)
     {
         _documentReferences = new XbimSet <IfcDocumentReference>(this);
     }
     else if (clear)
     {
         _documentReferences.Clear();
     }
     foreach (IfcDocumentReference ifcDocumentReference in ifcDocumentReferences)
     {
         _documentReferences.Add(ifcDocumentReference);
     }
     return(_documentReferences);
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
             base.IfcParse(propIndex, value);
             break;
         case 5:
             _Records = (XbimSet<IfcRelAssignsToProjectOrder>)value.EntityVal;
             break;
         case 6:
             _PredefinedType = (IfcProjectOrderRecordTypeEnum)Enum.Parse(typeof(IfcProjectOrderRecordTypeEnum), value.EnumVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Example #13
0
        /// <summary>
        ///   Returns set of IFC representation items from the specified context or null;
        /// </summary>
        public static XbimSet <IfcRepresentationItem> GetShapeRepresentationItems(this IfcProduct prod,
                                                                                  IfcRepresentationContext context)
        {
            IfcProductDefinitionShape definitionShape = prod.Representation as IfcProductDefinitionShape;

            if (definitionShape == null)
            {
                return(null);
            }

            IfcShapeRepresentation shapeRepresentation =
                definitionShape.Representations.Where(rep => rep.ContextOfItems == context).FirstOrDefault() as
                IfcShapeRepresentation;

            if (shapeRepresentation == null)
            {
                return(null);
            }

            XbimSet <IfcRepresentationItem> shapeRepresentationItems = shapeRepresentation.Items;

            return(shapeRepresentationItems);
        }
Example #14
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.IfcParse(propIndex, value);
                break;

            case 5:
                _predefinedType =
                    (IfcAnalysisModelTypeEnum)Enum.Parse(typeof(IfcAnalysisModelTypeEnum), value.EnumVal, true);
                break;

            case 6:
                _orientationOf2DPlane = (IfcAxis2Placement3D)value.EntityVal;
                break;

            case 7:
                if (_loadedBy == null)
                {
                    _loadedBy = new XbimSet <IfcStructuralLoadGroup>(this);
                }
                _loadedBy.Add((IfcStructuralLoadGroup)value.EntityVal);
                break;

            case 8:
                _hasResults = (IfcStructuralResultGroup)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Example #15
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.IfcParse(propIndex, value);
                break;

            case 5:
                _Records = (XbimSet <IfcRelAssignsToProjectOrder>)value.EntityVal;
                break;

            case 6:
                _PredefinedType = (IfcProjectOrderRecordTypeEnum)Enum.Parse(typeof(IfcProjectOrderRecordTypeEnum), value.EnumVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 /// <summary>
 /// Adds the load groups to the LoadedBy Property
 /// </summary>
 /// <param name="loads"></param>
 public void SetLoadedBy(params IfcStructuralLoadGroup[] loads)
 {
     if (LoadedBy == null) _loadedBy = new XbimSet<IfcStructuralLoadGroup>(this);
     foreach (var load in loads)
     {
         _loadedBy.Add(load);
     }
 }
Example #17
0
 public IfcProjectOrderRecord()
 {
     _Records = new XbimSet <IfcRelAssignsToProjectOrder>(this);
 }
        /// <summary>
        ///   Initialise the Document Reference list and add passed IfcDocumentReference objects to list
        /// </summary>  
        /// <param name="clear">if true will clear existing list if existing</param>
        /// <param name="ifcDocumentReferences">IfcDocumentReference objects as list or ',' separated parameters</param>
        public XbimSet<IfcDocumentReference> SetDocumentReferences(bool clear, params IfcDocumentReference[] ifcDocumentReferences )
        {

            if (_documentReferences == null) _documentReferences = new XbimSet<IfcDocumentReference>(this);
            else if (clear) _documentReferences.Clear_Reversible();
            foreach (IfcDocumentReference ifcDocumentReference in ifcDocumentReferences)
            {
                _documentReferences.Add_Reversible(ifcDocumentReference);
            }
            return _documentReferences;
        }
 public IfcPropertyConstraintRelationship()
 {
     _relatedProperties = new XbimSet <IfcProperty>(this);
 }
Example #20
0
 public IfcShellBasedSurfaceModel()
 {
     _sbsmBoundary = new XbimSet <IfcShell>(this);
 }
Example #21
0
 public IfcStyledItem()
 {
     _styles = new XbimSet <IfcPresentationStyleAssignment>(this);
 }
 public IfcDocumentInformationRelationship()
 {
     _relatedDocuments = new XbimSet<IfcDocumentInformation>(this);
 }
 public IfcSurfaceStyle()
 {
     _styles = new XbimSet<IfcSurfaceStyleElementSelect>(this);
 }
 public IfcClassificationNotation()
 {
     _notationFacets = new XbimSet <IfcClassificationNotationFacet>(this);
 }
Example #25
0
 public IfcSurfaceStyle()
 {
     _styles = new XbimSet <IfcSurfaceStyleElementSelect>(this);
 }
 public IfcVertexBasedTextureMap()
 {
     _TexturePoints = new XbimSet<IfcCartesianPoint>(this);
     _TextureVertices = new XbimSet<IfcTextureVertex>(this);
 }
 public IfcFillAreaStyleTiles()
 {
     _Tiles = new XbimSet<IfcFillAreaStyleTileShapeSelect>(this);
 }
 public IfcPresentationLayerWithStyle()
 {
     _layerStyles = new XbimSet <IfcPresentationStyleSelect>(this);
 }
 public IfcSectionReinforcementProperties()
 {
     _crossSectionReinforcementDefinitions = new XbimSet<IfcReinforcementBarProperties>(this);
 }
 public IfcRelReferencedInSpatialStructure()
 {
     _relatedElements = new XbimSet<IfcProduct>(this);
 }
 public IfcDraughtingCallOut()
 {
     _contents = new XbimSet<IfcDraughtingCalloutElement>(this);
 }
 public IfcCompositeProfileDef()
 {
     _profiles = new XbimSet<IfcProfileDef>(this);
 }
Example #33
0
 public IfcFace()
 {
     mBounds = new XbimSet <IfcFaceBound>(this);
 }
 public IfcResourceApprovalRelationship()
 {
     _approvedResources = new XbimSet <IfcResource>(this);
 }
Example #35
0
 public IfcConnectedFaceSet()
 {
     _cfsFaces = new XbimSet <IfcFace>(this);
 }
 public IfcTextureCoordinateGenerator()
 {
     _Parameter = new XbimSet<IfcSimpleValue>(this);
 }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _documentId = value.StringVal;
             break;
         case 1:
             _name = value.StringVal;
             break;
         case 2:
             _description = value.StringVal;
             break;
         case 3:
             if (_documentReferences == null) _documentReferences = new XbimSet<IfcDocumentReference>(this);
             _documentReferences.Add_Reversible((IfcDocumentReference) value.EntityVal);
             break;
         case 4:
             _purpose = value.StringVal;
             break;
         case 5:
             _intendedUse = value.StringVal;
             break;
         case 6:
             _scope = value.StringVal;
             break;
         case 7:
             _revision = value.StringVal;
             break;
         case 8:
             _documentOwner = (IfcActorSelect) value.EntityVal;
             break;
         case 9:
             if (_editors == null) _editors = new XbimSet<IfcActorSelect>(this);
             _editors.Add_Reversible((IfcActorSelect) value.EntityVal);
             break;
         case 10:
             _creationTime = (IfcDateAndTime) value.EntityVal;
             break;
         case 11:
             _lastRevisionTime = (IfcDateAndTime) value.EntityVal;
             break;
         case 12:
             _electronicFormat = (IfcDocumentElectronicFormat) value.EntityVal;
             break;
         case 13:
             _validFrom = (IfcCalendarDate) value.EntityVal;
             break;
         case 14:
             _validUntil = (IfcCalendarDate) value.EntityVal;
             break;
         case 15:
             _confidentiality =
                 (IfcDocumentConfidentialityEnum)
                 Enum.Parse(typeof (IfcDocumentConfidentialityEnum), value.EnumVal, true);
             break;
         case 16:
             _status = (IfcDocumentStatusEnum) Enum.Parse(typeof (IfcDocumentStatusEnum), value.EnumVal, true);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
 public IfcRepresentation()
 {
     _items = new XbimSet<IfcRepresentationItem>(this);
 }
        /// <summary>
        ///   Initialise the Editors List and add passed IfcActorSelect objects to list
        /// </summary>  
        /// <param name="clear">if true will clear existing list if existing</param>
        /// <param name="ifcActorSelects">IfcActorSelect objects as list or ',' separated parameters</param>
        public XbimSet<IfcActorSelect> SetEditors(bool clear, params IfcActorSelect[] ifcActorSelects )
        {

            if (_editors == null) _editors = new XbimSet<IfcActorSelect>(this);
            else if (clear) _editors.Clear_Reversible();
            foreach (IfcActorSelect ifcActorSelect in ifcActorSelects)
            {
                _editors.Add_Reversible(ifcActorSelect);
            }
            return _editors;
        }
 public IfcPresentationLayerAssignment()
 {
     _assignedItems = new XbimSet <IfcLayeredItem>(this);
 }
 public IfcRelCoversBldgElements()
 {
     _relatedCoverings = new XbimSet<IfcCovering>(this);
 }
Example #42
0
 public IfcFacetedBrepWithVoids()
 {
     _voids = new XbimSet <IfcClosedShell>(this);
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
         case 4:
             base.IfcParse(propIndex, value);
             break;
         case 5:
             _predefinedType =
                 (IfcAnalysisModelTypeEnum) Enum.Parse(typeof (IfcAnalysisModelTypeEnum), value.EnumVal, true);
             break;
         case 6:
             _orientationOf2DPlane = (IfcAxis2Placement3D) value.EntityVal;
             break;
         case 7:
             if (_loadedBy == null) _loadedBy = new XbimSet<IfcStructuralLoadGroup>(this);
             _loadedBy.Add((IfcStructuralLoadGroup) value.EntityVal);
             break;
         case 8:
             _hasResults = (IfcStructuralResultGroup) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Example #44
0
 public IfcRelOverridesProperties()
 {
     _overridingProperties = new XbimSet <IfcProperty>(this);
 }
 public IfcPresentationStyleAssignment()
 {
     _styles = new XbimSet<IfcPresentationStyleSelect>(this);
 }
 public IfcClassificationItemRelationship()
 {
     _relatedItems = new XbimSet<IfcClassificationItem>(this);
 }
 public IfcMaterialClassificationRelationship()
 {
     _materialClassifications = new XbimSet<IfcClassificationNotationSelect>(this);
 }
 public IfcRelOverridesProperties()
 {
     _overridingProperties = new XbimSet<IfcProperty>(this);
 }
 public IfcApprovalPropertyRelationship()
 {
     _approvedProperties = new XbimSet<IfcProperty>(this);
 }
Example #50
0
 public IfcPath()
 {
     _EdgeList = new XbimSet <IfcOrientedEdge>(this);
 }
 public IfcPresentationLayerWithStyle()
 {
     _layerStyles = new XbimSet<IfcPresentationStyleSelect>(this);
 }
Example #52
0
 public IfcWorkControl()
 {
     _creators = new XbimSet <IfcPerson>(this);
 }
 public IfcPropertyConstraintRelationship()
 {
     _relatedProperties = new XbimSet<IfcProperty>(this);
 }
 public IfcPresentationLayerAssignment()
 {
     _assignedItems = new XbimSet<IfcLayeredItem>(this);
 }
Example #55
0
 public IfcRelAssociates()
 {
     _relatedObjects = new XbimSet <IfcRoot>(this);
 }
 public IfcConstraintClassificationRelationship()
 {
     _relatedClassifications = new XbimSet <IfcClassificationNotationSelect>(this);
 }
 public void SetSuppliers(params IfcActorSelect[] suppliers)
 {
     if (_suppliers == null) _suppliers = new XbimSet<IfcActorSelect>(this);
     else
         _suppliers.Clear_Reversible();
     foreach (IfcActorSelect item in suppliers)
     {
         _suppliers.Add_Reversible(item);
     }
 }
 public IfcPhysicalComplexQuantity()
 {
     _hasQuantities = new XbimSet <IfcPhysicalQuantity>(this);
 }
 public IfcConstraintRelationship()
 {
     _relatedConstraints = new XbimSet<IfcConstraint>(this);
 }
 public IfcTimeSeriesSchedule()
 {
     _ApplicableDates = new XbimSet <IfcDateTimeSelect>(this);
 }