/// <summary> /// This function retrieves the modifier assignment for area elements. /// The default value for all modifiers is one. /// </summary> /// <param name="name">The name of an existing area element or object.</param> /// <param name="modifiers">Unitless modifiers.</param> /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception> public void GetModifiers(string name, out AreaModifier modifiers) { double[] csiModifiers = new double[0]; _callCode = _sapModel.AreaElm.GetModifiers(name, ref csiModifiers); if (throwCurrentApiException(_callCode)) { throw new CSiException(API_DEFAULT_ERROR_CODE); } modifiers = new AreaModifier(); modifiers.FromArray(csiModifiers); }
// === Get/Set /// <summary> /// Returns the unitless modifier assignments. /// The default value for all modifiers is one. /// </summary> /// <param name="name">The name of an existing object.</param> /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception> public AreaModifier GetModifiers(string name) { double[] csiModifiers = new double[0]; _callCode = _sapModel.NamedAssign.ModifierArea.GetModifiers(name, ref csiModifiers); if (throwCurrentApiException(_callCode)) { throw new CSiException(API_DEFAULT_ERROR_CODE); } AreaModifier modifiers = new AreaModifier(); modifiers.FromArray(csiModifiers); return(modifiers); }