[Tex/LaTex] How to create an instance in pgf-umlsd

tikz-pgf

I'm using Modelio but I want to do everything on my paper with LaTeX, so I chose pgf-umlsd to do my sequence diagram. The trouble I have is that I don't know how to create an message to create a instance with this library, can you help me? Check the image below where you can see what I'm talking about.

this image

My first code:

\documentclass{article}
\usepackage{tikz} 
\usetikzlibrary{arrows,shadows}
\usepackage{pgf-umlsd}

\begin{document}
\begin{sequencediagram}
    \newinst{act}{Actor}
    \newthread{nr}{NetRoute}
    \newthread{nr}{NetScan}
    \begin{call}{act}{ Buscar una red}{nr}{ redes }
        %\begin{call}{act}{ Buscar una red}{nr}{ redes }
    \end{call}
\end{sequencediagram}
\end{document}

which yields:

enter image description here

Best Answer

you may want to take a look on TikZ-uml which defines such a macro (\umlcreatecall{}{}) for you. Just download the tikz-uml.sty into your main folder and compile the following:

% arara: pdflatex

\documentclass{article}
\usepackage{tikz-uml} 

\begin{document}
\begin{tikzpicture}
\begin{umlseqdiag}
\umlactor[class=A, fill=blue!20]{Actor}
\umlobject[class=B]{NetRoute}
\umlobject[class=C]{NetScan}
\umlcreatecall[class=D]{NetScan}{NetModel}
\begin{umlcall}[op={buscar una red}, return=redes]{NetScan}{NetModel}
\end{umlcall}
\end{umlseqdiag}
\end{tikzpicture} 
\end{document}

Which yields:

enter image description here

You should be able to adapt this to your needs. If not, it should still be possible t draw everything in TikZ or you have a look on other possible solutions for drawing UML.