We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.
Hi, I would like to use zpl to update my detector viewer and save it as an image. However, neither Ray Database nor Filter are adjusted in the detector viewer. #trace rays & evaluate Detector filter$ = "h3&h6&!x_hitface(8,0)&!x_hitface(8,2)&!x_hitface(4,0)&(x_hitface(7,1)|x_hitface(7,0))"filter2$="h3&h6&!x_hitface(8,0)&!x_hitface(8,2)&!x_hitface(4,0)"fileName$ = "ZMPRays.ZRD" NSTR 1, 0,0,0,0,1,0,1,fileName$temp = NSDD(1,0,0,0) ZRDPlayback fileName$,1,0,1, filter2$UPDATE ALLPRINT NSDD(1,9,0,0)ZRDPlayback fileName$,1,0,1, filter$UPDATE ALLPRINT NSDD(1,9,0,0) settingsFile$= "...\Zemax\Configs\DVR.CFG"MODIFYSETTINGS settingsFile$, DVW_ZRD, fileName$MODIFYSETTINGS settingsFile$, DVW_FILTER, filter$UPDATE ALL The PRINT NSDD(….) commands give the correct outputs, but the detector viewer is not updated. How can I use ZPL to update the detector viewer using the Ray Database fileName$ and the filter string filter$?
Hello to all!. I usually deal with large ZRD database when doing non-sequential ray traces. Usually this means that displaying detector information or doing ray database filtering takes a considerable amount of time. What is the main bottleneck for the speed of these analysis/processing in Zemax that could be improved by upgrading the PC components? Thank you
Hello, I am currently trying to replicate some of the previous chats that say you can rotate multiple objects around a common object in the NSCE. Aligned cylinders (see image above) I currently have a small ellipse as my object I want the two cylinders to rotate around. The first cylinder has one edge right where the ellipse is and it extends 90mm. Then I wish to start a new cylinder that is smaller in diameter from the end of the first cylinder. This new cylinder extends 50mm. I wish to have both rotate around the ellipse that I have. That is when I rotate the ellipse, the two cylinders rotate and stay centrally aligned to one another. Currently when I try to do the pickup method, I get this result (see image below). The second cylinder rotates 5 degrees, but does not stay aligned with the end of the bigger cylinder. I am not sure how to fix this? I have tried doing pickup on several variables and am not getting any luck. Any and all help would be greatly appreciated! Thanks!
In the design and analysis of freeform surfaces, local surface data including sag, slope curvature, etc. are extremely important. The newly introduced Surface Data plots in OpticStudio can help you obtain this information easily.
First, can someone confirm that ht Through Focus MTF tool works by modifying the thickness of the second-to-last surface (when the last surface is the image plane) ? If so, would it be possible to specify which surface thickness to vary ?
I am using the ZOS-API in C# with 4.8.1 framework using Zemax OpticStudio 2024 R1.02 and getting an error message when running the Local Optimization tool. The error message returned from running the tool is “Input settings are invalid”. This occurs only when I load from an Archive File (.ZAR). If I load from a model file (.ZMX) then the Local Optimization tool works as expected. For the fields that I set, there are only 2; Algorithm = DampedLeastSquares and Cycles = Automatic It’s weird and I can’t understand the difference between accessing the model from an Archive would create this issue. NOTE, that I did load the ZAR file from the actual Zemax application and Optimization worked fine. If anyone has any ideas as to the issue then please let me know Thanks B.
The ray density of the spot diagram is not being updated as expected; I have tried two different methods: # spot diagramspot = TheSystem.Analyses.New_StandardSpot()spot.GetSettings.RayDensity = 15spot.ApplyAndWaitForCompletion() newSpot = TheSystem.Analyses.New_StandardSpot()print("Spot has analysis specific settings? ", newSpot.HasAnalysisSpecificSettings) # True; no ModifySettingsnewSettings = newSpot.GetSettings()newSettings.RayDensity = 15newSpot.ApplyAndWaitForCompletion() However, after being run the ray density of the spot diagram does not update as expected - any ideas?
Hi there, I found a very helpful description of Mark Nicholson on “How to model a black-box optical system using Zernike coefficients”. When I start calculating Huygens PSF in that paraxial equivalent model, I see some deviations to the real system (especially when I go to large field angles). Why and what should I consider to make Huygens PSF work “correctly” in that case? Any ideas? Kind regards!
So far I was using Zemax with version 2023R1.02 Pro, and tried to install 2025R1.01. I downloaded a “OPTICSTUDIO_2025R1.01_WINX64.zip” file from Ansys’ website after logging with my mail adress, and executed “OPTICSTUDIO_2025R1.01_WINX64.exe”. This installed : “Ansys optics Launched 2025 R1” “Ansys Zemax OpticStudio 2025 R1.01” At this point when I tried to run the new Ansys Zemax OpticStudio, I get a : I’m kinda lost in the licensing system and not sure what to do.
API support for the Cross-Section, 3D Layout, and Shaded Models is added to the OpticStudio API. The support allow users to change the settings via the API and retrieve a static image. Layouts in both sequential and non-sequential mode are supported. Some toolbar buttons, such as automatically setting camera viewpoints, will also be accessible via the API. Please download the following Python Standalone codes, including: PythonStandaloneApplication_SEQ_layout.py (sequential mode and export 2D cross-section) TheSystem.Tools.OpenCrossSectionExport() # the core command PythonStandaloneApplication_SEQ_3DViewer.py (sequential mode and export 3D viewer) TheSystem.Tools.Open3DViewerExport() PythonStandaloneApplication_SEQ_ShadedModel.py (sequential mode and export shaded model) TheSystem.Tools.OpenShadedModelExport() PythonStandaloneApplication_NSC_3D.py (non-sequential mode and export 3D layout) TheSystem.Tools.OpenNSC3DLayoutExport() PythonStandaloneApplication_NSC_ShadedModel.py (non-seque
Hello everyone, I can't connect Zemax and Matlab since I installed the new version of zemax 2025 R1.01. I am using Matalb version 2019a Updates 9 and it worked with previous versions of zemax.The error in question Unable to load one or more of the required types. My two applications are installed in 64bits I've already tried uninstalling and reinstalling the applications. Thanks for your help
I have a Gaussian to flattop beam shaper, the layout is attached, the website does not alow me to upload Zemax file. The POP irradiance plot shows strange not-rotational-symmetric wide fringes, although the Guassian beam data used in the layout and POP are exactly the same and the system is rotational symmetric. If converting this system is to NSC, there is no such wide fringes. Can someone explain this? Thanks.
When I set up an inverted light source, all the components seemed to be malfunctioning.
Hello Everyone, What is the best way to create sag on a lens surface (one of the two surfaces would be the beginning, and then I would move to both surfaces) and parametrize it using python so that i can create wavefront maps and the changes in the wavefront maps based on the localized changed in the sag? Here is what I want to do: Create sag on a lens surface that can be parametrized (conic constant and the other asphere constants can be varied) For each combination of these parameters, evaluate the wavefront map So far, the knowledgebase articles show how to use a .dat file to induce sag on surfaces, but there is nothing about parameterization. Is there a Python example that does something similar? Or is there any other method that would make more sense? Thank you for your insights. Amit
50 points
15 points
12 points
10 points
2 points
23606 points
14508 points
13498 points
11064 points
10401 points
Already have an account? Login
Enter your 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.