IX.1.3 Accessing FEM data
In the “NETEX/EX02/properties.cs” example, one shows how one can access the properties in the
finite element model. The C# code looks as follows:
object[] card;
foreach (int pid in db.iter_propertyId()) {
os.Write("{0,8}",pid);
os.Write("' n' n");
card=db.fillCard("Property",pid);
os.Write("{0,8}",card[0]);
for (int i=1;i<card.Length;i++) {
os.Write("{0,8}",card[i]);
if (i%8==0&&i!=card.Length-1) {
os.Write("' n");
os.Write("{0,8}","");
}
}
os.Write("' n' n");
}
This example illustrates the use of “fillCard” method, already presented in sections III.1.1.5 and
IV.2.3