Altering element from N to C and attribute values
Posted: Thu Feb 19, 2015 1:19 pm
Hello,
Have you ever noticed that when adding an N-element to different N-element (future parent) to form a consolidation (thus altering the future parent element from N to C "automatically") will cause loss of attributes on the future parent element? I believe this method worked fine in versions <=10.1. Now in >=10.2 it seems that something is different?
Example (pseudocode):
1) Let's create future parent first as N element and set some attribute values
Now we should have "future parent" in our dimension with attribute value set.
2) Now let's create new element and insert it as a child of future element. Inserting element as a child to N-element should alter N-element to C-element.
Now we have C-element "future parent", but we have lost attribute value on it.
Is it just me seeing this or others? Do you have any clue why this is happening?
Thank you
Have you ever noticed that when adding an N-element to different N-element (future parent) to form a consolidation (thus altering the future parent element from N to C "automatically") will cause loss of attributes on the future parent element? I believe this method worked fine in versions <=10.1. Now in >=10.2 it seems that something is different?
Example (pseudocode):
1) Let's create future parent first as N element and set some attribute values
Code: Select all
DimensionElementInsertDirect(dimName, '', 'future parent', 'N');
AttrInsert(dimName, '', 'test n attr', 'n');
AttrPutN(100, dimName, 'future parent', 'test n attr');
2) Now let's create new element and insert it as a child of future element. Inserting element as a child to N-element should alter N-element to C-element.
Code: Select all
DimensionElementInsertDirect(dimName, 'child', '', 'N');
DimensionElementComponentAddDirect(dimName, 'future parent', 'child', 1);
Is it just me seeing this or others? Do you have any clue why this is happening?
Thank you