Hi,
I'm wondering if there is a simple way to clone an LLValue containin a category description. The reason why I ask that is because I've got a lots of entries to process (between 5 and 10 thousand) and I'd like to speed up the import.
Today I do the following for each object I create:
- doc.FetchCategoryVersion (... catVersion)
- a handful of attrValues.add
- attr.AttrSetValues(catVersion ....)
then later, CreateObjectEx.
In the documentation it is said that catVersion is an output for method AttrSetValues, therefore I need a pristine "LLValue catVersion" for each object I process,but *without* using the slow doc.FetchCategoryVersion.
Maybe reading once the category, then cloning it and copying it back for each object will be ok, but LLValue does not seem to offer a clone method so I'm stuck there.
Any help will be appreciated.
Thanks in advance.
I'm wondering if there is a simple way to clone an LLValue containin a category description. The reason why I ask that is because I've got a lots of entries to process (between 5 and 10 thousand) and I'd like to speed up the import.
Today I do the following for each object I create:
- doc.FetchCategoryVersion (... catVersion)
- a handful of attrValues.add
- attr.AttrSetValues(catVersion ....)
then later, CreateObjectEx.
In the documentation it is said that catVersion is an output for method AttrSetValues, therefore I need a pristine "LLValue catVersion" for each object I process,but *without* using the slow doc.FetchCategoryVersion.
Maybe reading once the category, then cloning it and copying it back for each object will be ok, but LLValue does not seem to offer a clone method so I'm stuck there.
Any help will be appreciated.
Thanks in advance.