All Frameworks Class Hierarchy This Framework Next Indexes
KnowledgeInterfaces Interface CATIAddLibrary
System.IUnknown
|
+---System.IDispatch
|
+---System.CATBaseUnknown
|
+---CATIAddLibrary
Usage: you can freely reimplement this interface.
interface CATIAddLibrary
Interface to implement to add libraries.
Role: This interface helps us to find your specific user functions that you would like to add to our language.
Usage:
If you want to customise the Knowledge tools (by adding functions, measures,etc...)
Implement this interface on one class that we call XX for example (that
will also implement CATICreateInstance).
In the Add method create all the functions, measures, etc... and add them to CATParmDictionary.
Create an Object Modeler dictionary (.dico file) explaining that XX implements CATICreateInstance and CATIAddLibrary in
Those methods will be called by our product at its initialisation
For example, you may want to create a max(double,double) function that could then be used in formulas, checks or programs
The algorithm to find all functions is the following :
We scan the Object Modeler Dictionnaries to find all objects implementing CATIAddLibrary and CATICreateInstance :
for each object, we create it with CATICreateInstance, then get the
CATIAddLibrary interface on it and call the Add Method.
In the Add method, you can use the CreateFunction method.
- See also:
- CATICkeSignature, CATICkeArg
Method Index
- o
Add()
- Add your own user functions here.
Methods
o Add
public virtual void Add( | )= 0 |
-
Add your own user functions here.
This object is included in the file: CATIAddLibrary.h
If needed, your Imakefile.mk should include the module: KnowledgeItf