I have to copy an object and all his attributes from the module A to the module B. Let's call Xa the object in the module A and Xb the clone object in the module B. The two modules has the same attributes, but it can be that in the module B the value "jjj" of the enumeration attribute types "kkk" is not present
Is there a simple control that when i try to assign Xb."kkk" = "jjj" the script doesn't crash, but it doesn't assign the value? Should i check for each attribute of each objects i want to copy that the attribute is an enumeration, for each value of the attribute that the value is present also in b?
I need to copy a huge amount of object, so i want to optimize the computation time.