HierarchySubset functions don't work
Posted: Tue Jan 30, 2018 6:02 pm
From our testing the new HierarchySubset functions don't work as advertised in PA 2.0.3 (in fact don't work at all)
For example
HierarchySubsetElementGetIndex(sDim, sHier, sSub, sEle, nIdx);
Always returns the value given by the starting index nIdx regardless of the element name passed in.
e.g.
HierarchySubsetElementGetIndex(sDim, sHier, sSub, sEle, 1);
will always return a value of 1 and NOT the index position of the element sEle in the subset sSub.
And this function's twin also has issues
HierarchySubsetGetElementName(Dim, sHier, sSub, nIdx);
Will return an index out of range error rather than the element name when a valid subset index value is passed.
For anyone with a semi- large or sophisticated model in production where there is any evaluation of subsets and iterating subset members this is pretty much a "no go" for upgrading from 10.2.2 to PA.
Can anyone with access to PA 2.0.4 confirm if this bug is fixed in the latest release?
For example
HierarchySubsetElementGetIndex(sDim, sHier, sSub, sEle, nIdx);
Always returns the value given by the starting index nIdx regardless of the element name passed in.
e.g.
HierarchySubsetElementGetIndex(sDim, sHier, sSub, sEle, 1);
will always return a value of 1 and NOT the index position of the element sEle in the subset sSub.
And this function's twin also has issues
HierarchySubsetGetElementName(Dim, sHier, sSub, nIdx);
Will return an index out of range error rather than the element name when a valid subset index value is passed.
For anyone with a semi- large or sophisticated model in production where there is any evaluation of subsets and iterating subset members this is pretty much a "no go" for upgrading from 10.2.2 to PA.
Can anyone with access to PA 2.0.4 confirm if this bug is fixed in the latest release?