コード例 #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 7:
                _proxyType = (IfcObjectTypeEnum)System.Enum.Parse(typeof(IfcObjectTypeEnum), value.EnumVal, true);
                return;

            case 8:
                _tag = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #2
0
 public IfcRelAssignsToProduct(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType, IfcProductSelect relatingProduct) : base(globalId, ownerHistory, name, description, relatedObjects, relatedObjectsType)
 {
     RelatingProduct = relatingProduct;
 }
コード例 #3
0
 public IfcRelAssignsToControl(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType, IfcControl relatingControl) : base(globalId, ownerHistory, name, description, relatedObjects, relatedObjectsType)
 {
     RelatingControl = relatingControl;
 }
コード例 #4
0
 public IfcRelAssignsToProcess(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType, IfcProcessSelect relatingProcess, IfcMeasureWithUnit quantityInProcess) : base(globalId, ownerHistory, name, description, relatedObjects, relatedObjectsType)
 {
     RelatingProcess   = relatingProcess;
     QuantityInProcess = quantityInProcess;
 }
コード例 #5
0
ファイル: IfcProxy.cs プロジェクト: vdubya/IfcDoc
 public IfcProxy(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcObjectPlacement __ObjectPlacement, IfcProductRepresentation __Representation, IfcObjectTypeEnum __ProxyType, IfcLabel?__Tag)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __ObjectPlacement, __Representation)
 {
     this.ProxyType = __ProxyType;
     this.Tag       = __Tag;
 }
コード例 #6
0
        internal static bool?IfcCorrectObjectAssignment(IfcObjectTypeEnum Constraint, IEnumerable <IfcObjectDefinition> Objects)
        {
            // local variables
            int Count = 0;


            if (!EXISTS(Constraint))
            {
                return(true);
            }

            switch (Constraint)
            {
            case IfcObjectTypeEnum.NOTDEFINED:
                return(true);

            case IfcObjectTypeEnum.PRODUCT:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCPRODUCT")));
                return(Count == 0);
            }

            case IfcObjectTypeEnum.PROCESS:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCPROCESS")));
                return(Count == 0);
            }

            case IfcObjectTypeEnum.CONTROL:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCCONTROL")));
                return(Count == 0);
            }

            case IfcObjectTypeEnum.RESOURCE:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCRESOURCE")));
                return(Count == 0);
            }

            case IfcObjectTypeEnum.ACTOR:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCACTOR")));
                return(Count == 0);
            }

            case IfcObjectTypeEnum.GROUP:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCGROUP")));
                return(Count == 0);
            }

            case IfcObjectTypeEnum.PROJECT:
            {
                Count = SIZEOF(Objects.Where(temp => !INTYPEOF(temp, "IFC2X3.IFCPROJECT")));
                return(Count == 0);
            }

            default:
                return(null);
            }
        }
コード例 #7
0
 public IfcRelAssignsToGroupByFactor(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType, IfcGroup relatingGroup, IfcRatioMeasure factor) : base(globalId, ownerHistory, name, description, relatedObjects, relatedObjectsType, relatingGroup)
 {
     Factor = factor;
 }
コード例 #8
0
 public IfcRelAssignsToActor(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType, IfcActor relatingActor, IfcActorRole actingRole) : base(globalId, ownerHistory, name, description, relatedObjects, relatedObjectsType)
 {
     RelatingActor = relatingActor;
     ActingRole    = actingRole;
 }
コード例 #9
0
ファイル: IFC P.cs プロジェクト: jenca-cloud/ggIFC
		internal IfcProxy(IfcProxy q) : base(q) { mProxyType = q.mProxyType; mTag = q.mTag; }
コード例 #10
0
 public IfcRelAssigns(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType) : base(globalId, ownerHistory, name, description)
 {
     RelatedObjects     = relatedObjects;
     RelatedObjectsType = relatedObjectsType;
 }
コード例 #11
0
 public static bool?IfcCorrectObjectAssignment(IfcObjectTypeEnum constraint, List <IfcObjectDefinition> objects)
 {
     throw new NotImplementedException();
 }
コード例 #12
0
ファイル: IfcProxy.g.cs プロジェクト: vdubya/IFC-gen
 public IfcProxy(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcLabel objectType, IfcObjectPlacement objectPlacement, IfcProductRepresentation representation, IfcObjectTypeEnum proxyType, IfcLabel tag) : base(globalId, ownerHistory, name, description, objectType, objectPlacement, representation)
 {
     ProxyType = proxyType;
     Tag       = tag;
 }
コード例 #13
0
ファイル: IfcProxy.g.cs プロジェクト: vdubya/IFC-gen
        }                                     // optional


        /// <summary>
        /// Construct a IfcProxy with all required attributes.
        /// </summary>
        public IfcProxy(IfcGloballyUniqueId globalId, IfcObjectTypeEnum proxyType) : base(globalId)
        {
            ProxyType = proxyType;
        }
コード例 #14
0
 public IfcRelAssignsToResource(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType, IfcResourceSelect relatingResource) : base(globalId, ownerHistory, name, description, relatedObjects, relatedObjectsType)
 {
     RelatingResource = relatingResource;
 }