/// <summary> /// This function creates a new dimension element. /// </summary> /// <param name="numericElement">If true, a numeric element will be created. If false, a text element will be created.</param> /// <param name="element">The element to create.</param> /// <param name="parentElement">The parent element under which the new element should be created. If empty the element will be created on the top level.</param> /// <param name="weight">The weight used to aggregate the new element into it's parent. Only used if parent element is provided.</param> /// <returns>True, if the element was created. False, if an error occurred.</returns> public bool CreateDimensionElement(bool numericElement, string element, string parentElement, double weight) { return(NativeOlapApi.CreateDimensionElement(_server.Store.ClientSlot, _server.ServerHandle, "1", _name, numericElement, element, parentElement, weight)); }