The NX CAE functions make broad use of "PropertyTable" objects. Each entry in a PropertyTable is a name-value pair. If I know the name of the property (a text string), then I can get the corresponding value.
What I don't understand is ... how do I find out the appropriate names?? So, if I'm looking for the value of Young's modulus for a given material, how do I know the name of this property. I can guess that it might be "YoungsModulus" or "youngs_modulus" or "YoungMod", but that kind of guesswork seems ridiculous.
One way I know ... I can cycle through all the properties in the table using GetPropertyNameByIndex, write out the property names I get, and save the list for future reference. But, if I do that, it seems to me that I am essentially creating documentation that ought to exist somewhere already.
Surely there must be a better way ?? Any ideas?
re: Property Tables
Ciao
What I you try recording a journal when creating a new material?. Just tested the idea and one can see things like
scalarFieldWrapper1 = propertyTable2.GetScalarFieldWrapperPropertyValue("MassDensity")
propertyTable2.SetScalarFieldWrapperPropertyValue("MassDensity", scalarFieldWrapper1)
scalarFieldWrapper2 = propertyTable2.GetScalarFieldWrapperPropertyValue("YoungsModulus")propertyTable2.SetScalarFieldWrapperPropertyValue("YoungsModulus", scalarFieldWrapper3)
scalarFieldWrapper4 = propertyTable2.GetScalarFieldWrapperPropertyValue("PoissonsRatio")
Mind you it means that you still have to keep a tab/list of the "correct" name.
Regards
JXB
Thanks
Regards