/// <summary> /// Creates an IfcTransportElementType, and assigns it to the file. /// </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="elementType">The type name.</param> /// <param name="predefinedType">The predefined types.</param> /// <returns>The handle.</returns> public static IFCAnyHandle CreateTransportElementType(IFCFile file, string guid, IFCAnyHandle ownerHistory, string name, string description, string applicableOccurrence, HashSet<IFCAnyHandle> propertySets, IList<IFCAnyHandle> representationMaps, string elementTag, string elementType, IFCTransportElementType predefinedType) { ValidateElementType(guid, ownerHistory, name, description, applicableOccurrence, propertySets, representationMaps, elementTag, elementType); IFCAnyHandle transportElementType = CreateInstance(file, IFCEntityType.IfcTransportElementType); IFCAnyHandleUtil.SetAttribute(transportElementType, "PredefinedType", predefinedType); SetElementType(transportElementType, guid, ownerHistory, name, description, applicableOccurrence, propertySets, representationMaps, elementTag, elementType); return transportElementType; }
/// <summary> /// Creates an IfcTransportElement, and assigns it to the file. /// </summary> /// <param name="file">The file.</param> /// <param name="guid">The GUID to use to label the wall.</param> /// <param name="ownerHistory">The IfcOwnerHistory.</param> /// <param name="name">The name.</param> /// <param name="description">The description.</param> /// <param name="objectType">The object type.</param> /// <param name="objectPlacement">The local placement.</param> /// <param name="representation">The representation object assigned to the wall.</param> /// <param name="elementTag">The tag for the identifier of the element.</param> /// <param name="operationType">The transport operation type.</param> /// <param name="capacityByWeight">The capacity by weight.</param> /// <param name="capacityByNumber">The capacity by number.</param> /// <returns>The handle.</returns> public static IFCAnyHandle CreateTransportElement(IFCFile file, string guid, IFCAnyHandle ownerHistory, string name, string description, string objectType, IFCAnyHandle objectPlacement, IFCAnyHandle representation, string elementTag, IFCTransportElementType? operationType, double? capacityByWeight, double? capacityByNumber) { ValidateElement(guid, ownerHistory, name, description, objectType, objectPlacement, representation, elementTag); IFCAnyHandle transportElement = CreateInstance(file, IFCEntityType.IfcTransportElement); IFCAnyHandleUtil.SetAttribute(transportElement, "OperationType", operationType); IFCAnyHandleUtil.SetAttribute(transportElement, "CapacityByWeight", capacityByWeight); IFCAnyHandleUtil.SetAttribute(transportElement, "CapacityByNumber", capacityByNumber); SetElement(transportElement, guid, ownerHistory, name, description, objectType, objectPlacement, representation, elementTag); return transportElement; }