OpenAlgResult OpenAlg(OdId tOb, OpenAlgArg tArg)
tOb. Moniker of the repository object that is indicators calculation algorithm.
tArg. Operation execution parameters.
The OpenAlg operation opens indicators calculation algorithm.
The operation gets access to indicators algorithm structure. The operation can also be applied for calculation algorithm blocks that are created as external repository objects: calculation blocks and function blocks.
To execute the operation, in the tOb field specify moniker of the object that is calculation algorithm, calculation block, or function block, and in the tArg field specify opening parameters. The object moniker can be obtained on executing the GetObjects operation. The tArg field can be used to specify mode (view or edit), parameter values and pattern for getting metadata. The pattern specifies the information to be retrieved on executing the operation. The operation results in the opened express object instance moniker and also the metadata if an appropriate pattern was defined in the tArg.metaGet parameter on executing the operation.
Further work with the opened object instance is executed using the GetAlg and SetAlg operations. To save changes, use the SaveAlg operation.
To close the opened object instance, use the CloseAlg operation.
Various methods of using the operation are given in the following examples:
Example name |
Opening calculation algorithm for edit |
Opening and getting metadata |
See also: