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())); } }
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; }
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; }
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; }
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; }
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); } }
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; }
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; }
internal IfcProxy(IfcProxy q) : base(q) { mProxyType = q.mProxyType; mTag = q.mTag; }
public IfcRelAssigns(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, List <IfcObjectDefinition> relatedObjects, IfcObjectTypeEnum relatedObjectsType) : base(globalId, ownerHistory, name, description) { RelatedObjects = relatedObjects; RelatedObjectsType = relatedObjectsType; }
public static bool?IfcCorrectObjectAssignment(IfcObjectTypeEnum constraint, List <IfcObjectDefinition> objects) { throw new NotImplementedException(); }
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; }
} // optional /// <summary> /// Construct a IfcProxy with all required attributes. /// </summary> public IfcProxy(IfcGloballyUniqueId globalId, IfcObjectTypeEnum proxyType) : base(globalId) { ProxyType = proxyType; }
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; }