Please feel free to change the title of this question since I'm not sure if it's fitting.
For example, I'd like to draw a rule with the same height as the thickness of a frame line of a standard tcolorbox.
I had a look at the tcolorbox package code, and I assume that the line leftrule/.store in=\kvtcb@left@rule is somehow essential for what I want. But if I try
\documentclass{article}
\usepackage{tcolorbox}
\begin{document}
\noindent\rule{\textwidth}{\kvtcb@left@rule}
\end{document}
it doesn't work and LaTeX returns the error ! Undefined control sequence..
So my more general question is: How can I access package internal values like this to use them in my document?
\makeatletterbefore\ruleand\makeatotherafter the closing brace. There is no general answer, I'm afraid: it much depends on what internal value you need access to. – egreg Jun 29 '14 at 16:38tikzsymbolsauthor has amply demonstrated, but the more considerate ones.) But they don't do the same for internal values in general. The implementation may change in ways which break your code. – cfr May 15 '16 at 19:53