View previous topic :: View next topic |
Author |
Message |
blueman541
Joined: 21 Dec 2005 Posts: 23
|
Posted: Mon Nov 20, 2006 7:44 pm Post subject: Import more than once? |
|
|
iMatch exports its catalog into a text file.
I am trying to import that into iView
I import using:
Code: | set mediaItem = cat.Import(filename) |
I then add it to a catalog set:
Code: | mySet.Add(mediaItem) |
So how do i later add again the filename into a different catalog set?
iMatch catalog allow an image file to be part of multiple catalogs, so am parsing the text file line by line. If i try to import the file again, iView won't do it and i will get a runtime error when i try assign it to a catalog set.
Hope im not too confusing.
iMatch text out goes something like this
[Xmas photo]
file://C:/image1.jpg .....
file://C:/image2.jpg .....
[My photo]
file://C:/image1.jpg .....
[More Photo]
file://C:/image2.jpg ...
file://C:/image4.jpg ...
... and so on. |
|
Back to top |
|
 |
blueman541
Joined: 21 Dec 2005 Posts: 23
|
Posted: Wed Nov 22, 2006 8:22 am Post subject: |
|
|
I figured i could used the Dictionary object to create a semi hash table like data structure. I key it by filename, and it returns me the index i could reuse. Works =]
So, I only need to import once, save it to the Dictionary, and reuse it later. |
|
Back to top |
|
 |
|