/// <summary> /// Processes IfcDoorStyle attributes. /// </summary> /// <param name="ifcDoorStyle">The IfcDoorStyle handle.</param> protected override void Process(IFCAnyHandle ifcDoorStyle) { base.Process(ifcDoorStyle); OperationType = IFCEnums.GetSafeEnumerationAttribute <IFCDoorStyleOperation>(ifcDoorStyle, "OperationType", IFCDoorStyleOperation.NotDefined); ConstructionType = IFCEnums.GetSafeEnumerationAttribute <IFCDoorStyleConstruction>(ifcDoorStyle, "ConstructionType", IFCDoorStyleConstruction.NotDefined); }
/// <summary> /// Processes IfcDoorStyle attributes. /// </summary> /// <param name="ifcDoorStyle">The IfcDoorStyle handle.</param> protected override void Process(IFCAnyHandle ifcDoorStyle) { base.Process(ifcDoorStyle); OperationType = IFCEnums.GetSafeEnumerationAttribute<IFCDoorStyleOperation>(ifcDoorStyle, "OperationType", IFCDoorStyleOperation.NotDefined); ConstructionType = IFCEnums.GetSafeEnumerationAttribute<IFCDoorStyleConstruction>(ifcDoorStyle, "ConstructionType", IFCDoorStyleConstruction.NotDefined); }
/// <summary> /// Creates an IfcDoorStyle, and assigns it to the file. [DEPRECATED from IFC4 onward] /// </summary> /// <param name="file">The file.</param> /// <param name="guid">The GUID.</param> /// <param name="ownerHistory">The owner history.</param> /// <param name="name">The name.</param> /// <param name="description">The description.</param> /// <param name="applicableOccurrence">The attribute optionally defines the data type of the occurrence object.</param> /// <param name="propertySets">The property set(s) associated with the type.</param> /// <param name="representationMaps">The mapped geometries associated with the type.</param> /// <param name="elementTag">The tag that represents the entity.</param> /// <param name="operationType">The operation type.</param> /// <param name="constructionType">The construction type.</param> /// <param name="parameterTakesPrecedence">True if the parameter given in the attached lining and panel properties exactly define the geometry, /// false if the attached style shape takes precedence.</param> /// <param name="sizeable">True if the attached IfcMappedRepresentation (if given) can be sized (using scale factor of transformation), false if not.</param> /// <returns>The handle.</returns> public static IFCAnyHandle CreateDoorStyle(IFCFile file, string guid, IFCAnyHandle ownerHistory, string name, string description, string applicableOccurrence, HashSet<IFCAnyHandle> propertySets, IList<IFCAnyHandle> representationMaps, string elementTag, string operationType, IFCDoorStyleConstruction constructionType, bool parameterTakesPrecedence, bool sizeable) { ValidateTypeProduct(guid, ownerHistory, name, description, applicableOccurrence, propertySets, representationMaps, elementTag); IFCAnyHandle doorStyle = CreateInstance(file, IFCEntityType.IfcDoorStyle); IFCAnyHandleUtil.SetAttribute(doorStyle, "OperationType", operationType, true); IFCAnyHandleUtil.SetAttribute(doorStyle, "ConstructionType", constructionType); IFCAnyHandleUtil.SetAttribute(doorStyle, "ParameterTakesPrecedence", parameterTakesPrecedence); IFCAnyHandleUtil.SetAttribute(doorStyle, "Sizeable", sizeable); SetTypeProduct(doorStyle, guid, ownerHistory, name, description, applicableOccurrence, propertySets, representationMaps, elementTag); return doorStyle; }