I want to create this message exchange structure. I need that structure for school enter image description here

I can only do the the above top message. I don't know how create The below part

 \begin{tikzpicture}[block1/.style={draw, minimum width=3cm, minimum 
 block2/.style={draw, minimum width=1cm, minimum height=.8cm},
 \node[block1] (b1) {Include pic?};
 \node[block1, right=5cm of b1] (b2) {2};

 \draw[->] ([yshift=3mm]b1.east)--node[above] {hello} ([yshift=3mm]b2.west);

enter image description here

Thanks for your help !!!! :)

  • What's the problem exactly? Is doing this in LaTeX homework? Or is the assignment on something else and you just want to use LaTeX? If the latter, you could just draw it in Inkscape or something and include the PDF. Or you could export TikZ code for inclusion in your document. – cfr May 28 '17 at 18:45
  • Yes, create this figure in latex for include the code(of figure) in my latex document :) – Solid May 28 '17 at 19:03
  • 2
    Aren't there packages for this sort of thing, like pgf-umlsd? e.g., tex.stackexchange.com/questions/174207/… – Steven B. Segletes May 28 '17 at 19:27
  • What I mean is, you can draw it in Inkscape and export the TikZ code. Or you can work through one of the tutorials in the manual, if you want to learn the basics. This is just some lines, boxes and circles, after all. You don't say what you're having trouble with. – cfr May 28 '17 at 20:48
  • 1
    You could also use msc package. Some examples: tex.stackexchange.com/a/54390/1952, tex.stackexchange.com/a/302962/1952. – Ignasi May 29 '17 at 9:27