The task of the whole microgrid state-space matrix creation is usually done in a preferred textual programming language, and it presents a complicated, time-consuming, and error-prone job for a researcher without good coding practices. To ease the modeling task, contribute to the adaptation of new microgrid structures, control algorithms, and devices, and to improve the flexibility of the model, a graphical element building block method is proposed in this paper. With the proposed approach model creation of the whole microgrid is reduced to the creation of the individual element state-space model that is linked with other elements in a logical way with a graphical connection. Elements are then grouped into meaningful wholes and encapsulated with the appropriate graphical user interface that enables easy parameter modification and model complexity change. More detailed DC/DC and DC/AC models of converters than those in the literature concerning microgrid stability are presented in this paper. Those converters are incorporated in a microgrid, whose model is created using the proposed approach in MATLAB/Simulink. The dynamic response examination of the model remains easy, just as with all Simulink models, while for the linear system analysis, a specialized toolbox is used.