Is there a way to query the LDE in NS mode to get the column ints, doubles, or strings? Additionally, query the column name of the row number?
[Mod note: moved to more appropriate forum for ZPL-related discussions.]
Best answer by MichaelHView original
Found it. I was trying to use it to name detectors, but didn’t realize the “i” parameter was the surface number
Where “i” is the surface number. My detectors were at the bottom of the LDE so I just had to add a constant to get the correct surface in a for loop
Still not working though, but this is how you “get” comment line.
I am using the code from one of the macros that are pre-built in Zemax, but just trying to get the name of the detector image file changed. However, the COMMENT line does not return anything. I feel like this should not be this hard, but I can't figure out what Zemax is doing. Can someone point me in the right direction? The PRINT statement generates this.
The $COMMENT() only works for sequential surfaces in the LDE; it does not work for non-sequential objects in the NSC. To get the non-sequential comment, you need to use a combination of
$BUFFER(). Assuming you're in pure non-sequential mode (where the NSC Surface = 1), the code to get an object's comment is: