/// <summary> /// Creates an IFCData object as IfcLogical. /// </summary> /// <param name="value">The logical value.</param> /// <returns>The IFCData object.</returns> public static IFCData CreateAsLogical(IFCLogical value) { IFCData ifcData = IFCData.CreateLogical(value); IList <string> types = new List <string>(); types.Add("IfcLogical"); ifcData.SetTypeList(types); return(ifcData); }
/// <summary> /// Sets logical attribute for the handle. /// </summary> /// <remarks> /// If value is null or empty, the attribute will be unset. /// </remarks> /// <param name="handle">The handle.</param> /// <param name="name">The attribute name.</param> /// <param name="value">The logical value.</param> /// <exception cref="ArgumentException">If the name is null or empty.</exception> public static void SetAttribute(IFCAnyHandle handle, string name, IFCLogical value) { if (String.IsNullOrEmpty(name)) { throw new ArgumentException("The name is empty.", "name"); } handle.SetAttribute(name, IFCData.CreateLogical(value)); }