blark.solution.twincat_file_writer
- blark.solution.twincat_file_writer(user: TcDUT | TcTTO | TcPOU | TcIO | TcGVL | Solution, source_filename: Path | None, parts: list[OutputBlock]) bytes [source]
Write source code
- Parameters:
- userTcHandler
The user handler that loaded all the files.
- source_filenameOptional[pathlib.Path]
The source filename associatied with all code blocks
- partslist[OutputBlock]
The output blocks to write.
- Returns:
- bytes
The contents of the file to write.