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.
Click to download (4KB BAS File)