Add the following to your preamble to visualize boxes that are normally of interest while designing a letter layout (changing lengths).
\LoadLetterOption{visualize}
\showfields{head,address,location,refline,foot}
According to the manual, this are all boxes (+test
showing a 10 x 15 cm rectangle for print calibration) that can be shown this way. One needs to go a different way to visualize the rest of the gray boxes shown in your figure above.
A complete MWE:
\documentclass[backaddress=plain]{scrlttr2}
\usepackage[main=ngerman]{babel}
\usepackage{blindtext}
% change some lengths ------------------------------------------
\makeatletter
% Text block
\areaset{160mm}{237mm}
\setlength{\oddsidemargin}{\dimexpr 30mm-1in}
\setlength{\evensidemargin}{\dimexpr 20mm-1in}
% Letter Head
\@setplength{firstheadhpos}{30mm}
\@setplength{firstheadvpos}{17mm}
\@setplength{firstheadwidth}{\textwidth}
% Address Window
\@setplength{toaddrhpos}{30mm}
\@setplength{toaddrvpos}{45mm}
\@setplength{toaddrwidth}{75mm}
\@setplength{toaddrheight}{45mm}
\@setplength{toaddrindent}{0mm}
\makeatother
% visualize border of boxes in blue ----------------------------
\LoadLetterOption{visualize}
\showfields{head,address,location,refline,foot}
\setkomafont{field}{\color{blue}}
%---------------------------------------------------------------
\begin{document}
\setkomavar{fromname}{Max Mustermann}
\setkomavar{fromaddress}{Musterstr. 12\\34567 Musterstadt}
\begin{letter}{Dr. Moritz Busch\\Georgengarten\\30167 Hannover}
\opening{Mein lieber Freund,}
\blindtext
\par
\blindtext
\closing{Bis bald,}
\end{letter}
\end{document}
plenDIN
part), the processing is defined inside Makefile.guide, lines 286-292. Some of the needed variables are defined inside Makefile.latexinit.visualize.lco
some of the fields can be visualized. Searchvisualize.lco
in the documentation.