read_component_modelT_read_component_modelReadComponentModelReadComponentModel (Operator)
Name
read_component_modelT_read_component_modelReadComponentModelReadComponentModel
— Read a component model from a file.
Signature
Description
The operator read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModel
reads a component model,
which has been written with write_component_modelwrite_component_modelWriteComponentModelWriteComponentModelWriteComponentModel
, from the
file FileNameFileNameFileNameFileNamefileName
and returns it in ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID
.
The default HALCON file extension for the component model is 'cbm'.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Parameters
FileNameFileNameFileNameFileNamefileName
(input_control) filename.read →
HTupleHTupleHtuple (string) (string) (HString) (char*)
File name.
File extension: .cbm
ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID
(output_control) component_model →
HComponentModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the component model.
Result
If the file name is valid, the operator read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModel
returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
Possible Successors
find_component_modelfind_component_modelFindComponentModelFindComponentModelFindComponentModel
Module
Matching