ClassesClasses | | Operators

write_component_modelT_write_component_modelWriteComponentModelWriteComponentModel (Operator)

Name

write_component_modelT_write_component_modelWriteComponentModelWriteComponentModel — Write a component model to a file.

Signature

write_component_model( : : ComponentModelID, FileName : )

Herror T_write_component_model(const Htuple ComponentModelID, const Htuple FileName)

void WriteComponentModel(const HTuple& ComponentModelID, const HTuple& FileName)

void HComponentModel::WriteComponentModel(const HString& FileName) const

void HComponentModel::WriteComponentModel(const char* FileName) const

static void HOperatorSet.WriteComponentModel(HTuple componentModelID, HTuple fileName)

void HComponentModel.WriteComponentModel(string fileName)

Description

The operator write_component_modelwrite_component_modelWriteComponentModelWriteComponentModelWriteComponentModel writes the component model ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID to the file FileNameFileNameFileNameFileNamefileName. The model can be read again with read_component_modelread_component_modelReadComponentModelReadComponentModelReadComponentModel. The default HALCON file extension for the component model is 'cbm'.

Execution Information

Parameters

ComponentModelIDComponentModelIDComponentModelIDComponentModelIDcomponentModelID (input_control)  component_model HComponentModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the component model.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.write HTupleHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .cbm

Result

If the file name is valid (write permission), the operator write_component_modelwrite_component_modelWriteComponentModelWriteComponentModelWriteComponentModel returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_component_modelcreate_component_modelCreateComponentModelCreateComponentModelCreateComponentModel, create_trained_component_modelcreate_trained_component_modelCreateTrainedComponentModelCreateTrainedComponentModelCreateTrainedComponentModel

Module

Matching


ClassesClasses | | Operators