02-26-2008 06:07 AM - edited 02-26-2008 06:16 AM
02-26-2008 09:43 AM
If you are trying to iterate through an unknown property structure, then the following PropertyObject methods can be useful:
GetNumSubProperties
GetNthSubPropertyName
GetNthSubProperty
GetType
GetVal<DataType>
GetPropertyObject
For arrays, the following are also handy
GetNumElements and/or GetDimensions
GetVal<DataType>ByOffset
GetPropertyObjectByOffset
Note that even for arrays with multiple dimensions, you can iterate with a single loop thanks to the "ByOffset" methods. You can convert between a linearized offset and multidimensional coordinates with the GetArrayIndex and GetArrayOffset methods.
If you hit a road block, make sure you check all the available methods and properties of PropertyObject.