Пример #1
0
 public IfcPropertyListValue(IfcIdentifier name)
     : base(name)
 {
     _listValues = new XbimList <IfcValue>(this);
 }
        public IfcPropertySingleValueTransient(string name, Ifc4.Interfaces.IIfcValue value)

        {
            _name         = name;
            _nominalValue = value;
        }
Пример #3
0
 public IfcApplication(IfcOrganization __ApplicationDeveloper, IfcLabel __Version, IfcLabel __ApplicationFullName, IfcIdentifier __ApplicationIdentifier)
 {
     this._ApplicationDeveloper = __ApplicationDeveloper;
     this._Version               = __Version;
     this._ApplicationFullName   = __ApplicationFullName;
     this._ApplicationIdentifier = __ApplicationIdentifier;
 }
Пример #4
0
        private static IfcGeographicElement createTerrain(IfcStore model, IfcLabel name, IfcIdentifier tag, Axis2Placement3D placement, IfcShapeRepresentation representation)
        {
            //begin a transaction
            using (var txn = model.BeginTransaction("Create Terrain"))
            {
                // Gelände
                var terrain = model.Instances.New <IfcGeographicElement>(s =>
                {
                    s.Name            = name;
                    s.PredefinedType  = IfcGeographicElementTypeEnum.TERRAIN;
                    s.Tag             = tag;
                    placement         = placement ?? Axis2Placement3D.Standard;
                    s.ObjectPlacement = createLocalPlacement(model, placement);
                    s.Representation  = model.Instances.New <IfcProductDefinitionShape>(r => r.Representations.Add(representation));
                });

                txn.Commit();

                return(terrain);
            }
        }
Пример #5
0
 public IfcPropertyEnumeratedValue(IfcIdentifier __Name, IfcText?__Description, IfcValue[] __EnumerationValues, IfcPropertyEnumeration __EnumerationReference)
     : base(__Name, __Description)
 {
     this._EnumerationValues    = new List <IfcValue>(__EnumerationValues);
     this._EnumerationReference = __EnumerationReference;
 }
Пример #6
0
 public IfcComplexProperty(IfcIdentifier __Name, IfcText?__Description, IfcIdentifier __UsageName, IfcProperty[] __HasProperties)
     : base(__Name, __Description)
 {
     this._UsageName     = __UsageName;
     this._HasProperties = new HashSet <IfcProperty>(__HasProperties);
 }
Пример #7
0
 public IfcActionRequest(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __RequestID)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._RequestID = __RequestID;
 }
Пример #8
0
 public IfcAsset(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __AssetID, IfcCostValue __OriginalValue, IfcCostValue __CurrentValue, IfcCostValue __TotalReplacementCost, IfcActorSelect __Owner, IfcActorSelect __User, IfcPerson __ResponsiblePerson, IfcCalendarDate __IncorporationDate, IfcCostValue __DepreciatedValue)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._AssetID              = __AssetID;
     this._OriginalValue        = __OriginalValue;
     this._CurrentValue         = __CurrentValue;
     this._TotalReplacementCost = __TotalReplacementCost;
     this._Owner             = __Owner;
     this._User              = __User;
     this._ResponsiblePerson = __ResponsiblePerson;
     this._IncorporationDate = __IncorporationDate;
     this._DepreciatedValue  = __DepreciatedValue;
 }
Пример #9
0
 public IfcLanguageId(IfcIdentifier value)
 {
     this.Value = value;
 }
Пример #10
0
 public IfcSpaceProgram(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __SpaceProgramIdentifier, IfcAreaMeasure?__MaxRequiredArea, IfcAreaMeasure?__MinRequiredArea, IfcSpatialStructureElement __RequestedLocation, IfcAreaMeasure __StandardRequiredArea)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._SpaceProgramIdentifier = __SpaceProgramIdentifier;
     this._MaxRequiredArea        = __MaxRequiredArea;
     this._MinRequiredArea        = __MinRequiredArea;
     this._RequestedLocation      = __RequestedLocation;
     this._StandardRequiredArea   = __StandardRequiredArea;
 }
Пример #11
0
 public IfcBlobTexture(IfcBoolean __RepeatS, IfcBoolean __RepeatT, IfcIdentifier?__Mode, IfcCartesianTransformationOperator2D __TextureTransform, IfcIdentifier[] __Parameter, IfcIdentifier __RasterFormat, IfcBinary __RasterCode)
     : base(__RepeatS, __RepeatT, __Mode, __TextureTransform, __Parameter)
 {
     this._RasterFormat = __RasterFormat;
     this._RasterCode   = __RasterCode;
 }
Пример #12
0
 public IfcLanguageId(String value)
 {
     this.Value = new IfcIdentifier(value);
 }
Пример #13
0
        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);
                }
                ((IXbimNoNotifyCollection)_documentReferences).Add((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);
                }
                ((IXbimNoNotifyCollection)_editors).Add((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;
            }
        }
Пример #14
0
 internal IfcProperty(IfcIdentifier name)
 {
     _name = name;
 }
Пример #15
0
 public IfcPropertyReferenceValue(IfcIdentifier __Name, IfcText?__Description, IfcLabel?__UsageName, IfcObjectReferenceSelect __PropertyReference)
     : base(__Name, __Description)
 {
     this._UsageName         = __UsageName;
     this._PropertyReference = __PropertyReference;
 }
Пример #16
0
 public IfcPropertySingleValue(IfcIdentifier __Name, IfcText?__Description, IfcValue __NominalValue, IfcUnit __Unit)
     : base(__Name, __Description)
 {
     this._NominalValue = __NominalValue;
     this._Unit         = __Unit;
 }
Пример #17
0
 public IfcMove(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __TaskId, IfcLabel?__Status, IfcLabel?__WorkMethod, Boolean __IsMilestone, Int64?__Priority, IfcSpatialStructureElement __MoveFrom, IfcSpatialStructureElement __MoveTo, IfcText[] __PunchList)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __TaskId, __Status, __WorkMethod, __IsMilestone, __Priority)
 {
     this._MoveFrom  = __MoveFrom;
     this._MoveTo    = __MoveTo;
     this._PunchList = new List <IfcText>(__PunchList);
 }
Пример #18
0
 public IfcApproval(IfcText?__Description, IfcDateTimeSelect __ApprovalDateTime, IfcLabel?__ApprovalStatus, IfcLabel?__ApprovalLevel, IfcText?__ApprovalQualifier, IfcLabel __Name, IfcIdentifier __Identifier)
 {
     this._Description       = __Description;
     this._ApprovalDateTime  = __ApprovalDateTime;
     this._ApprovalStatus    = __ApprovalStatus;
     this._ApprovalLevel     = __ApprovalLevel;
     this._ApprovalQualifier = __ApprovalQualifier;
     this._Name       = __Name;
     this._Identifier = __Identifier;
 }
Пример #19
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _documentId = value.StringVal;
                return;

            case 1:
                _name = value.StringVal;
                return;

            case 2:
                _description = value.StringVal;
                return;

            case 3:
                _documentReferences.InternalAdd((IfcDocumentReference)value.EntityVal);
                return;

            case 4:
                _purpose = value.StringVal;
                return;

            case 5:
                _intendedUse = value.StringVal;
                return;

            case 6:
                _scope = value.StringVal;
                return;

            case 7:
                _revision = value.StringVal;
                return;

            case 8:
                _documentOwner = (IfcActorSelect)(value.EntityVal);
                return;

            case 9:
                _editors.InternalAdd((IfcActorSelect)value.EntityVal);
                return;

            case 10:
                _creationTime = (IfcDateAndTime)(value.EntityVal);
                return;

            case 11:
                _lastRevisionTime = (IfcDateAndTime)(value.EntityVal);
                return;

            case 12:
                _electronicFormat = (IfcDocumentElectronicFormat)(value.EntityVal);
                return;

            case 13:
                _validFrom = (IfcCalendarDate)(value.EntityVal);
                return;

            case 14:
                _validUntil = (IfcCalendarDate)(value.EntityVal);
                return;

            case 15:
                _confidentiality = (IfcDocumentConfidentialityEnum)System.Enum.Parse(typeof(IfcDocumentConfidentialityEnum), value.EnumVal, true);
                return;

            case 16:
                _status = (IfcDocumentStatusEnum)System.Enum.Parse(typeof(IfcDocumentStatusEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Пример #20
0
 public static bool IsSame(this IfcIdentifier label, IfcIdentifier compare)
 {
     return(string.Compare(label, compare, StringComparison.OrdinalIgnoreCase) == 0);
 }
Пример #21
0
		public IfcWorkPlan(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel? __Name, IfcText? __Description, IfcLabel? __ObjectType, IfcIdentifier __Identifier, IfcDateTimeSelect __CreationDate, IfcPerson[] __Creators, IfcLabel? __Purpose, IfcTimeMeasure? __Duration, IfcTimeMeasure? __TotalFloat, IfcDateTimeSelect __StartTime, IfcDateTimeSelect __FinishTime, IfcWorkControlTypeEnum? __WorkControlType, IfcLabel? __UserDefinedControlType)
			: base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __Identifier, __CreationDate, __Creators, __Purpose, __Duration, __TotalFloat, __StartTime, __FinishTime, __WorkControlType, __UserDefinedControlType)
		{
		}
Пример #22
0
 public IfcProperty(IfcIdentifier __Name, IfcText?__Description)
 {
     this._Name        = __Name;
     this._Description = __Description;
 }
Пример #23
0
 public IfcPropertyListValue(IfcIdentifier __Name, IfcText?__Description, IfcValue[] __ListValues, IfcUnit __Unit)
     : base(__Name, __Description)
 {
     this._ListValues = new List <IfcValue>(__ListValues);
     this._Unit       = __Unit;
 }
Пример #24
0
 public IfcOrderAction(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __TaskId, IfcLabel?__Status, IfcLabel?__WorkMethod, Boolean __IsMilestone, Int64?__Priority, IfcIdentifier __ActionID)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __TaskId, __Status, __WorkMethod, __IsMilestone, __Priority)
 {
     this._ActionID = __ActionID;
 }
Пример #25
0
 protected IfcSimpleProperty(IfcIdentifier __Name, IfcText?__Description)
     : base(__Name, __Description)
 {
 }
Пример #26
0
 public IfcProcedure(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __ProcedureID, IfcProcedureTypeEnum __ProcedureType, IfcLabel?__UserDefinedProcedureType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._ProcedureID              = __ProcedureID;
     this._ProcedureType            = __ProcedureType;
     this._UserDefinedProcedureType = __UserDefinedProcedureType;
 }