Member Controls

Developers > FileTable question
TheoLink to postposted: Thu Sep 21, 2006 4:14 pm
Avator for Theo

Member since:
 2006-01-07
From:
 14.918246, -23.514862
Posts:
 75
I was wondering if it's possible to programmatically add a package (or folder) to the FileTable, and make that change permanent.

I searched some of the code, but wasn't able to find anything similar to that. Any ideas?

Thanks.
Inge JonesLink to postposted: Thu Sep 21, 2006 8:53 pm
Avator for Inge Jones

Member since:
 2005-03-06
Posts:
 1899

The PJSE tool already incorporates that feature for its own filetable, but it won't be used by SimPE for non-simantics (eg scenegraph) resources.

 

Create an entry in \Simpe\Data\Plugins\pjse.coder.plugin\packages.txt to a folder where you keep those packages you want to have read in.

quaxiLink to postposted: Sat Sep 23, 2006 2:26 pm
Avator for quaxi

Member since:
 2006-04-28
Posts:
 3154
Yes you can. Here are the functions you might want to check:

  • SimPe.FileTable.FileIndex.AddIndexFromPackage();
  • SimPe.FileTable.FileIndex.AddIndexFromFolder();
That is just for the current session. Next time SimPE starts, this change is forgotten. If you want to have a folder added permanently, you have to change the File Data\Folders.xreg (which is a simple xml file).


viewthread, 0, 0, FileTable-question