user12944: I've got two questions. I'm wondering if:

It is possible to search for certain positions in a database (like Chessbase) and display all of them in a text file.
To be able to assign a score to each position automatically with a chess engine. 

I've got some notions of programming but I wouldn't mind getting some ideas on how to write such a program.

user825: 
Use pgn-extract:


... FEN positional matches with -t ...


Use ChessArtist. It supports any UCI chess engine, including Stockfish and Komodo.


user12951: I am the author of pgn-extract and, as has been pointed out, it doesn't hook up directly with a chess engine. However, if you would like to try out something I recently wrote that does interface with an engine then there is a description of a UCI-based analyser that can output annotated PGN via its --annotatePGN option. It is still a little experimental and you will need to compile from source but it might provide something close to what you are looking for.

12944: <p>I've got two questions. I'm wondering if:</p>

<ol>
<li>It is possible to search for certain positions in a database (like Chessbase) and display all of them in a text file.</li>
<li>To be able to assign a score to each position automatically with a chess engine. </li>
</ol>

<p>I've got some notions of programming but I wouldn't mind getting some ideas on how to write such a program.</p>
 825: <ol>
<li>Use <a href="https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html" rel="nofollow noreferrer">pgn-extract</a>:</li>
</ol>

<blockquote>
  <p>... FEN positional matches with -t ...</p>
</blockquote>

<ol start="2">
<li>Use <a href="https://github.com/fsmosca/chess-artist" rel="nofollow noreferrer">ChessArtist</a>. It supports any UCI chess engine, including Stockfish and Komodo.</li>
</ol>
 12951: <p>I am the author of <a href="https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/" rel="nofollow noreferrer">pgn-extract</a> and, as has been pointed out, it doesn't hook up directly with a chess engine. However, if you would like to try out something I recently wrote that does interface with an engine then there is a description of a <a href="https://www.cs.kent.ac.uk/people/staff/djb/chessplag/" rel="nofollow noreferrer">UCI-based analyser</a> that can output annotated PGN via its --annotatePGN option. It is still a little experimental and you will need to compile from source but it might provide something close to what you are looking for.</p>
