# Drawing Mass Spring Damp Systems in TikZ [closed]

I'd like to draw a Spring-Mass-Damping system by TikZ. I found the example in Drawing Mechanical Systems in LaTeX

But I have problems compiling it. If I delete the damper code `\draw [dampener] (ground2.north) -- (\$(M.south east)!(ground2.north)!(M.south west)\$)` it works well

The error message as below:

``````! Package pgfkeys Error: I do not know the key '/pgf/decoration/mark connection node' and I am going to ignore it. Perhaps you misspelled it.

See the pgfkeys package documentation for explanation.
Type  H <return>  for immediate help.
...

l.30 \draw [dampener]
(ground2.north) -- (\$(M.south east)!(ground2.north)!(M...

?
[1
``````

-

## closed as too localized by Alan Munn, Joseph Wright♦Dec 23 '11 at 21:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I wonder if this is a version issue. What version of `pgf` do you have installed? –  Joseph Wright Dec 23 '11 at 15:07
version information as below: `(d:\CTEX\MiKTeX\tex\generic\pgf\frontendlayer\tikz\libraries\tikzlibrarytopaths .code.tex File: tikzlibrarytopaths.code.tex 2008/06/17 v2.00-cvs (rcs-revision 1.2) ))) PGFVersion=2.00-cvs )` –  laplace Dec 23 '11 at 15:19
There is no problem with my system with Miktex 2.9/pgf-TikZ 2.10 –  percusse Dec 23 '11 at 15:30
@laplace: Can you remove everything from your document except for this `tikzpicture`, and post the code in the question please? –  qubyte Dec 23 '11 at 15:35
Can anyone else reproduce this problem? If not then perhaps we should close this question. –  qubyte Dec 23 '11 at 16:37

``````\usetikzlibrary{calc,patterns,decorations.markings}
Fernando, thanks for you answer. I have copy the whole codes, also contains `\usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings}` –  laplace Dec 23 '11 at 15:11