Guilin Sun
Ansys Employee

Please refer to the script articles for more details: https://optics.ansys.com/hc/en-us/articles/360037228834-Lumerical-scripting-language-By-category

you can use for example  getdata, getresult to get the refractive index;

The monitors are mostly for simulation results. Only index monitor can give you geometry profile information from refractive index.

Using rectangle to test is because you know the edge length for each side.

for side angles, you can built a trapezoid  like this

四棱台体积公式图解- 搜狗图片搜索

you have a monitor close to the top and another monitor close to the bottom. You know the height (monitor location difference) and the lateral sizes from the monitors you can roguthly calculate the title angles. Right? of course you can have your own ways to verify this. But usually it is not necessary.