write_component_model — Write a component model to a file.
The operator write_component_model writes the component model ComponentModelID to the file FileName. The model can be read again with read_component_model. The default HALCON file extension for the component model is 'cbm'.
Handle of the component model.
File extension: .cbm
If the file name is valid (write permission), the operator write_component_model returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.