Hi Ying,
Unfortunately, there is no built-in way to get the 3D location of the vertex of the exploded part in Non-Sequential mode. The reason is because when OpticStudio explodes the individual CAD components, it uses the global reference as the XYZ origin. So, if you toggle the Object Properties > Draw > Draw Local Axis, you can see that each exploded part has the same XYZ origin and that is at (0, 0, 0).
As with almost anything in non-sequential mode, you’ll need to run a ray trace to get any useful information. For this specific case where you have a good idea that the lenses are “on-axis”, you can use a Source Ray and the NSRA Merit Function Operand to determine the XYZ location of the vertex:
- Insert a Source Ray anywhere in NCE
- Set the Z Position to a negative value (like -5)
- Set the # Analysis Rays to 1
- Hide the objects you don’t care about (you’ll need to analyze the objects one at a time)
- Open the Merit Function Editor and add a NSRA operand
- Set the following values:
- Src# = row number of the Source Ray
- Splt? = 0
- Pol? = 0
- Seg#: use 1 for the front vertex and 2 for the back vertex (assuming you’ve hidden all previous objects)
- Data: 3 for Z (1 for X and 2 for Y)
- Source # = 0
~Michael