This is an old revision of the document!
Table of Contents
GroIMP can import objects from several 3d or graph formats into the project graph. The imported objects can then be used similar to any other part of the graph.
In the following different way of adding a file will be shown based on this dtd file.
Using the Gui
Add directly
The easiest way is to add the object directly, using the main menu: Objects, there you can find the options insert File and insert File to RGG.
They both work very similar, starting with a file dialog to choose which file to import and then turning this file into a graph and adding it. The only difference is that 'Insert File' adds the loaded graph to the root of the scene and 'Insert File to RGG' to the RGG root. This leads to the difference that a file inserted to RGG will be removed when the model is rested or recompiled.
In order to remove a object added to the root of the scene the function 'clear project graph' in the main menu: Edit can be used. Additionally it is always possible to select and object in the 2d or 3d view and use the delte key.
In a new RGG project using the file from above the following result should be appearing:
Since this little tree is added to the GroIMP Graph it can now be queried and manipulated using XL rules. For example to add the following query to the XL console should return 344.
count((*F*));
Or remove stepwise the last internodes:
[f:F,(empty((*f --> Node*)))==>;]
Using the Object explorer
A second more reusable way is to add the external objects to the Object explorer. The explorer can be found on the main menu on Panels/Explorers/Objects. In the newly opened panel a menu with the item Object should be visible. Under this item following the path '/new/insert File' we can select the same file as above. After selecting the file with the file dialog a popup asks “How should the file be added?” the three options mean: