# Grouping objects and applying operation to the group

Forgive me for my perhaps naive questions, I am beginning to discover Tikz potentials. To ease certain operations as moving objects or transforming them, I want to know if there is a mechanism in Tikz that I can group certain operations and give a name to this grouping and use that name in doing operations on the whole collection of objects that are grouped. My first guess was perhaps scope will do this. But could not see how I can refer collectively to the scoped operations and/or objects. The best analogy, for give me to mention it, is the grouping operation in Power Point. Thanks for your help. Artimess

-

You can apply transformations to a scope, like for example:

\begin{tikzpicture}
\begin{scope}[rotate=45]
\draw (-1,-1) rectangle (1,1);
\draw (0,0) circle (1);
\end{scope}
\end{tikzpicture}


Whatever parameters and operations you specify in the [...] at the beginning of the scope environment is applied to every command inside the scope.

-
tikzpicture envionments can be nested. They behave like scope environments and support optional arguments for parameters. For instance, \begin{tikzpicture}[scale=0.5, transform shape] ... \end{tikzpicture} could be used inside a parent tikzpicture environment.