User Tools

Site Tools


tutorials:import-object-in-groimp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:import-object-in-groimp [2025/11/01 07:48] – [Importing though RGG code] Timtutorials:import-object-in-groimp [2025/11/01 08:24] (current) – [Importing though RGG code] Tim
Line 102: Line 102:
 === Import and return node === === Import and return node ===
  
-loadNodeFromFile("path","memeType")+With the same parameters as above we can also use the loadNodeFromFile and loadeNodeFromStream functions.  
 +These functions return the root of the imported structure and therefore allow us to place it at any position in our graph. For example lats place the dtd tree twice in the graph once at 0,0,0 and once at 2,0,0. 
  
-loadNodeFromFile(Stream,"memeType")+<code java loadNodeFromFile.rgg> 
 +protected void init()[ 
 + Axiom==> 
 +  loadNodeFromFile(getPathToHomeDirectory()+"\\Downloads\\cherry_new.dtd","model/x-grogra-dtd")  
 +  [ 
 +   Translate(2,0,0)  
 +   loadNodeFromFile(getPathToHomeDirectory()+"\\Downloads\\cherry_new.dtd","model/x-grogra-dtd") 
 +  ]; 
 +]
  
-e.g. +</code>
  
-A ==> loadNodeFromFile("path","memeType"); 
  
 ==== Using the Object explorer ==== ==== Using the Object explorer ====
tutorials/import-object-in-groimp.1761979739.txt.gz · Last modified: 2025/11/01 07:48 by Tim