Function returns importance factor for snow load Is in accordance with 4.1.6.2 OBC12.
General information
Function OBC12__4_1_6_2__ImportanceFactorForSnowLoad
returns importance factor for snow load Is in accordance with 4.1.6.2 Ontario Building Code 2012. You can use this function in your applications and reports during snow loads calculating.
DLL
dystlab.multicode.dll
Usage format (Pascal)
function OBC12__4_1_6_2__ImportanceFactorForSnowLoad(ImportanceCategory, LimitState: Integer): Double; stdcall; external [DllName];
Parameters:
- ImportanceCategory — importance category (1, 2, 3, 4);
- LimitState — limit state (LimitState=1 for ULS, LimitState=2 for SLS).
Return value
Function returns importance factor for snow load Is in accordance with 4.1.6.2 OBC12. If error, function returns 0.
Directives
- DllName — library name. If DLL included in installation pack, then DllName is 'dystlab.multicode.dll'.
Example for TechEditor
Next code calls function from DLL and shows standard message box. Code can be used in applications for TechEditor 1.0.5 and higher.
uses
Classes, Dialogs;
function OBC12__4_1_6_2__ImportanceFactorForSnowLoad(ImportanceCategory, LimitState: Integer): Double; stdcall; external 'dystlab.multicode.dll';
var
Is1, Is2: Double;
begin
Is1 := OBC12__4_1_6_2__ImportanceFactorForSnowLoad(1, 1); Is2 := OBC12__4_1_6_2__ImportanceFactorForSnowLoad(1, 2); ShowMessage('Importance factor for ULS: ' + FloatToStr(Is1)); ShowMessage('Importance factor for SLS: ' + FloatToStr(Is2)); end;