TemplexPlugin
Plug-in support for the Templex interpreter.
Inputs
- ents
- An entity table.
- src
- A value table.
- begin
- A procedure to be called on the begin event (optional).
- onrecord
- A procedure to be called on the onrecord event.
- end
- A procedure to be called on the end event (optional).
- opt_str
- Specify to pass a user-defined argument string (optional).
- script
- The file that contains the event procedure definitions.
Outputs
- answer
- A value table.
Comments
- The entities in ents must match the binding of the values in src. For example, if src contains elemental scalars, ents must contain elements from the same pool.
- The onrecord procedure is mandatory, begin and end procedures are optional.
Syntax
Requires *RegisterResultMathPlugin entry in preference file. See the Configuration section.
XML Example
<call name="TemplexPlugin" ents="ent_tab" src="src_tab" begin="begin_proc" onrecord="record_proc" end="end_proc" script="templex_script_filepath" answer="answer" />
Query/Action Function | Description |
---|---|
GetTableInfo | Supports table queries and accepts a single argument:
GetTableInfo can be called in the Begin and End events. |
GetRecordInfo | Supports record queries and accepts the following arguments:
GetRecordInfo can be called in the OnRecord event only. |
AddRecord | Sends values to the destination table and accepts a string with an ID,
followed by a space-separated list of values. For example, when adding a vector
value, the call would appear as:
where: ent_id is a variable that evaluates to the ID. vec_val is a variable that evaluates to three vector components. |
GetOption GetOption(key) |
Returns the string passed in the argument “opt_str” if specified, or the optional argument associated with key. |
ThrowException | Sends a message to the controlling application and terminates execution of
the plug-in operation. The syntax is as follows:
When a scripted plugin is run from HyperView, the exception string is output in the tk console window. |