tutorials:import-object-in-groimp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorials:import-object-in-groimp [2024/09/27 16:22] – [Using the Object explorer] tim | tutorials:import-object-in-groimp [2025/05/25 12:42] (current) – barley1965 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | GroIMP | + | With GroIMP |
- | In the following different way of adding a file will be shown based on {{ : | + | In the following, a different way of adding a file will be shown based on {{ : |
Line 12: | Line 12: | ||
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. | 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 ' | + | 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 ' |
- | In order to remove | + | In order to remove |
Line 34: | Line 34: | ||
After selecting the file with the file dialog a popup asks "How should the file be added?" | After selecting the file with the file dialog a popup asks "How should the file be added?" | ||
- | __Add the file:__ the file is copied to a folder | + | __Add the file:__ the file is copied to a folder |
- | __Link the file:__ only the path to the current file is added, this can be useful in a more complex pipeline where the external file is updated by another | + | __Link the file:__ only the path to the current file is added. This can be useful in a more complex pipeline where the external file is updated by another |
- | __Embed the file:__ The file is read and added to the meta Graph. Doing so makes it independent from the format, the file or the import process. | + | __Embed the file:__ The file is read and added to the meta graph. Doing so makes it independent from the format, the file or the import process. |
The choice really depends on the use case, but in our case the easiest is to add the file. | The choice really depends on the use case, but in our case the easiest is to add the file. | ||
- | After the file was loaded it can be reference | + | After the file has been loaded it can be referenced |
- | Using this in a XL query will create an instance of the imported object, in the Graph. | + | Using this in a XL query will create an instance of the imported object, in the Graph. |
- | For example the following code would create three time the same tree in a row: | + | For example the following code would create three times the same tree in a row: |
< | < | ||
Line 58: | Line 58: | ||
</ | </ | ||
- | It is also possible to access the graph structure of this referenced objects using the code below but it is more recommended to use the GraphExplorer to do so. | + | It is also possible to access the graph structure of these referenced objects using the code below but it is more recommended to use the GraphExplorer to do so. |
< | < | ||
{ | { |
tutorials/import-object-in-groimp.1727446956.txt.gz · Last modified: 2024/09/27 16:22 by tim