I need a length long as /tikz/cs/x[y].
It can be done with a trick like this:
\documentclass{article}
\usepackage{tikz}
\newlength{\scaledx}
\newlength{\scaledy}
\begin{document}
\begin{tikzpicture}[
x=30pt,
y=60pt,
]
\makeatletter
\pgfpointxy{1}{1}
\setlength{\scaledx}{\pgf@x};
\setlength{\scaledy}{\pgf@y};
\makeatother
\node[draw] at (0,0) { \the\scaledx };
\node[draw] at (1,1) { \the\scaledy };
\end{tikzpicture}
\end{document}
However, in the place I need my picture the \makeatletter breaks something. Besides this method seems a bit hackish for this task.
What is the proper way to get a length from /tikz/cs/x[y]?