User functions
Posted: 16 Jul 2014, 06:43
size=150User functions/size
You can define own functions in SDF script.
User functions may be used in equations or to export data to output. One functions can be used in both ways - see example.
Functions can be loaded from external calculation.
Functions can be defined within url=http://forum.nemetschek-scia.com/viewtopic.php?f=44&t=875&sid=8043601b551468ca1785a8baa28b4cdeuser class/url.
ubSyntax:/b/u
<type> <function_name>(<parameters>) {
<function_body>
}
itype/i - type of return value: double, string, bool or object
ifunction_name/i - Name of function consisting of letters, numbers and underscore. First character must be letter.
iparameters/i - array of parameters, separated by commas. One parameter consists of parameter type and parameter name
ifunctions_body/i - standard rules for SDF script.
ubReturn value:/b/u
Function return value is defined by the command "return".
iReturn value does not have to be defined. "null" value is returned in that case./i
bRemarks to example:/b
You have to compile Functions_Extern.cls first.
You can define own functions in SDF script.
User functions may be used in equations or to export data to output. One functions can be used in both ways - see example.
Functions can be loaded from external calculation.
Functions can be defined within url=http://forum.nemetschek-scia.com/viewtopic.php?f=44&t=875&sid=8043601b551468ca1785a8baa28b4cdeuser class/url.
ubSyntax:/b/u
<type> <function_name>(<parameters>) {
<function_body>
}
itype/i - type of return value: double, string, bool or object
ifunction_name/i - Name of function consisting of letters, numbers and underscore. First character must be letter.
iparameters/i - array of parameters, separated by commas. One parameter consists of parameter type and parameter name
ifunctions_body/i - standard rules for SDF script.
ubReturn value:/b/u
Function return value is defined by the command "return".
iReturn value does not have to be defined. "null" value is returned in that case./i
bRemarks to example:/b
You have to compile Functions_Extern.cls first.