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.
User functions
-
- Site Admin
- Posts: 181
- Joined: 11 Jul 2014, 13:55 [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
User functions
- Attachments
-
- Functions_Extern.cls
- (11.64 KiB) Downloaded 235 times
-
- Functions.cls
- (16.73 KiB) Downloaded 241 times
Ing. Petr Slepicka
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
Return to “Design forms features”
Who is online
Users browsing this forum: No registered users and 8 guests