This was an interesting problem to solve. Essentially what was wanted was a way to apply around 500 different pressure values to a number of elements arranged in a grid pattern. It would be possible for the user to do this manually, but automating processes like this is what the API was made for. What the API requires is a three column CSV file with each row containing the centroid coordinates (x,y) and pressure value for each element. The API prompts the user to specify the file location and then asks the user to define a workplane whose orientation and origin are identical to that of the data found in the data file. The API then looks for elements whose centers correspond to what is found in the data file. The face of the element that is coplanar to the workplane is then found, and the corresponding pressure is applied to this face.

feCoordOnNode is used to determine the coordinate of a node within a model. The button within the .xls file will prompt the user to select a node and upon successful selection, the coordinate values will be displayed in the excel file. The .BAS file will prompt the user to select a node and upon successful selection, the coordinate will be displayed in the Messages pane within Femap.