> ## 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.

# サンプル 2. Step 12: RecipeNumber ブロックの作成

> RecipeNumber という名前の Text ブロックを追加し、そのソースとして RecipeNumber 要素に関連付けることで、ABBYY FlexiCapture がレシピ番号 field を認識できるようにします。

ABBYY FlexiCapture でレシピ番号を認識できるようにするには、**Recipe #** field に対応するブロックを作成し、その位置を指定する必要があります。

**Recipe #** field に対応するブロックを作成するには、次の手順に従います。

1. プログラムのメインウィンドウで **FlexiLayout** タブをクリックします。

2. FlexiLayout ツリーで **Blocks** を選択します。

3. **FlexiLayout** メニューまたはショートカットメニューで **Add Block →** Text を選択します。

   <Frame>
     <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/tutorial2_15.png?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=a9ab3108b85f1ff4e76ed310f5cfb538" alt="FlexiLayout ツリーで Blocks ノードが選択され、Add Block サブメニューが開いて Text ブロック コマンドが強調表示されている ABBYY FlexiLayout Studio のメインウィンドウのスクリーンショット。" width="540" height="549" data-path="images/flexi-capture/fls/tutorial2_15.png" />
   </Frame>

4. Properties ダイアログの Name field にブロック名を入力します。たとえば **RecipeNumber** です。

   <Tip>
     ブロック名は、**Recipe #** field に対応する要素名と一致している必要はありません。便宜上、field と同じ名前をブロックに付けてください。
   </Tip>

5. ブロックの位置を指定するには、Source element を選択します。 "**…**" をクリックし、ソース要素として **RecipeNumber** 要素を指定します。

<Frame>
  <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/tutorial2_16.png?fit=max&auto=format&n=r-nfa7jujx5b9gKX&q=85&s=6bc3e3492cb7cced62b79659bfff4a9d" alt="Source element が選択され、SearchElements.RecipeNumber に設定された RecipeNumber Text ブロックが表示されている ABBYY FlexiLayout Studio の Properties of Blocks.RecipeNumber ダイアログのスクリーンショット。" width="431" height="455" data-path="images/flexi-capture/fls/tutorial2_16.png" />
</Frame>
