Module: Editor
Version: 17.01 +
Description
Futurama comes with an extensive Formula Library. In some cases you might want to add formulas to the library. At this support page is explained how to add custom formulas to this library. To use these custom formulas a Futurama PlugIn has to be defined. See the Configuration – PlugIns section how to do this configuration.
Developing an external formula library
To add your own formulas you need to develop a .Net DLL. With this DLL you can add an entire library of custom formulas. This DLL should implement the interface IExternalFormulaLibrary, as defined in the DLL ActuIT.Futurama.IoCInterfaces.dll that is part of Futurama. In this library there are only two methods:
GetLibraryName
This method should return a string with the name of the library.
GetFormulasDocument
The method GetFormulasDocument should return an XML Document containing an XML definition of the formulas defined in the library.
Custom methods
Apart from the two mandatory methods you can add your own methods with formulas you want to make available to Futurama.
Requirements for methods
The methods should meet the next requirements:
- method should be static
- method should be public
- the input types can be any of the following
- int
- double
- string
- bool
- DateTime
- the return value should be one of the following
- int
- double
- string
- bool
- DateTime
Sample code
Xml document with Formula definition
Here is sample XML document with formulas.
Feedback
If you have any questions about this subject or if you want to provide us feedback please send us an e-mail.