The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Save values with AbstractAttribute.setValue
Contributor I
Hey I need again some help,
i have some difficulties to understand the documentation.
i want simply to save some values in a column.
I the doc there is an example with "for (Example example : exampleSet) {...."
But i want (of course) to set some single values.
I have tried with for AbstractAttribute.setValue..without success. Can help anyone?
Thx in advance!
-Vik
i have some difficulties to understand the documentation.
i want simply to save some values in a column.
I the doc there is an example with "for (Example example : exampleSet) {...."
But i want (of course) to set some single values.
I have tried with for AbstractAttribute.setValue..without success. Can help anyone?
Thx in advance!
-Vik
Tagged:
0
Answers
you need the example and the attribute you want to change the value of.
Attribute attribute = exampleSet.getAttributes().get("nameOfAttribute")to get the attribute or to change the value.An alternative would be to create an ExampleSet yourself from scratch, however that's probably not what you need
Marco