> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# EditUserPattern Method of the Engine Object

<Note>
  This method is implemented in FRE for Windows.
</Note>

This method displays the [User Pattern dialog box](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/edituserpattern-method/user-pattern-dialog-box) that allows a user to edit user pattern file.

## Syntax

### C++

```cpp theme={null}
HRESULT EditUserPattern( BSTR FileName );
```

### C\#

```csharp theme={null}
void EditUserPattern( string FileName );
```

### Visual Basic .NET

```vb theme={null}
Sub EditUserPattern(FileName As String)
```

## Parameters

FileName

\[in] This variable contains the full path to the user pattern file that is to be edited. This file should be created by the [IEngine::CreateEmptyUserPattern](/fine-reader/engine/api-reference/engine-object-iengine-interface/creation-methods/createemptyuserpattern-method) method or by ABBYY FineReader.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

* User patterns are files that specify a number of pairs "image of a character — the character itself". User patterns may be used during recognition to identify characters of non-standard fonts. To use a user pattern during recognition, specify a path to it in the [IRecognizerParams::UserPatternsFile](/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/recognizerparams#userpatternsfile) property. See [Recognizing with Training](/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/recognizing-with-training).
* The method is enabled only if the license supports the [User Patterns Training](/fine-reader/engine/licensing/modules#user_patterns_training) module.
* Pattern training is not supported for [CJK languages](/fine-reader/engine/guided-tour/advanced-techniques/recognizing-cjk-languages#cjk).

## See also

[Recognizing with Training](/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/recognizing-with-training)

[Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface)

[CreateEmptyUserPattern](/fine-reader/engine/api-reference/engine-object-iengine-interface/creation-methods/createemptyuserpattern-method)
