failed to launch C:\Users\86137\Documents\Zemax\ZOS-API Projects\PythonStandaloneApplication\PythonStandaloneApplication.sln:the operation was canceled by userAnd when I run the file get. I meet the error like this.I wonder if there is something missing or something wrong.
Hi everyone, I stumbled across an odd behaviour in the ZOS-API regarding CENY with GetOperandValue. I’m using Python 3.8.15, and Pythonnet 3.0.1.If you run the following code in an interactive extension with the Double Gauss 28 degree field sample file:import timet = time.time()print('Sampling 0: ' + str(TheSystem.MFE.GetOperandValue(ZOSAPI.Editors.MFE.MeritOperandType.CENY, 0, 1, 2, 0, 0, 0, 0, 0)))print('Time lapsed: ' + str(time.time()-t))t = time.time()print('Sampling 5: ' + str(TheSystem.MFE.GetOperandValue(ZOSAPI.Editors.MFE.MeritOperandType.CENY, 0, 1, 2, 5, 0, 0, 0, 0)))print('Time lapsed: ' + str(time.time()-t))The console output reads (code run multiple times):Sampling 0: 17.450689876377123Time lapsed: 0.001974821090698242Sampling 0: 17.450678324665706Time lapsed: 0.003976583480834961Sampling 0: 17.450689876377123Time lapsed: 0.0019915103912353516Sampling 5: 17.450678324665706Time lapsed: 0.0029811859130859375Sampling 0: 17.450689876377123Time lapsed: 0.001978635787963867Samp
Hi team,Usually, our customer provides one step file for an optical assembly (Series of lenses). By using other softwares like tracepro, we can apply surfaces properties to individual components in the assembly. Here my question is, is it possible to apply individual components of an optical assembly, in non-sequential mode of zemax, without using any external cad softwares.Broader application is illumination analysis.Thanks in advance,Regards,Arun
Load the following file into Matlab. “MATLABStandalone_02_NSC_ray_trace.m”Go to line 39 and change the file extension from “ .zos” to “.zmx”.File with the name Digital_projector_flys_eye_homogenizer.zos and Digital_projector_flys_eye_homogenizer.zms exist in the SamplesDir.The Matlab code will fail at line 50. It will not fail if the extension is “.zos”.
Hello everyone,I have the following problem (Zemax 22.3):I generated a binary source file (20000 rays - number does not really matter) with a specfic order of rays (sdf file with wavelength and flux) I build a dummy non-sequential system consisting of the source file (randomization turned off) and a dummy surface (complexity and structure of the system does not matter as well) After tracing the rays and looking into the ray database viewer the order of the rays is actually not as defined in the ray file, as I expected (I checked if the order in the ray file is correct with: Python Reading Writing Binary Files (ZRD, ZBF, DAT, SDF) | Zemax Community) While there are correctly ordered sub-batches of rays in the zrd file, the position and size (number of rays) of the batches depends on the settings in the System Explorer → Non-Sequential. Changing e.g. Maximum Intersections per Ray, etc leads to a different order/size of the batches in the ray database viewer. My expectation was that these
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.