Open shbhuk opened 6 years ago
ln.zSaveDetector(1,det_zmxobj_no,fileName=txtfile[:-4]+'.ddr') returns 0 but no .DDR file is created.
Seems to be related?
ln.zSaveDetector(1,det_zmxobj_no,fileName='test.ddr') creates a file called Zemaxtest.ddr in 'C:/Users/shbhu/Documents/'
I am using Zemax 17 and Python 3.5
Hi @indranilsinharoy , Did you get time to look at this?
Hi @shbhuk ,
Unfortunately, since I moved to a new job, I don't have a Zemax license right now. Therefore, I hope someone else with a Zemax key can resolve your issue. I'm very sorry.
Best Regards, Indranil.
Hi @indranilsinharoy , Best of luck with your new job.
Shubham
@shbhuk This is caused by the number of digits in the exponential for intensity / power values. The code is looking for 3 to 8, while some people have just 2.
@indranilsinharoy The ethernal license problem! I've sent a PR #103.
Great, thanks!
Hi, This is following issue #71 I get the following error on trying to use
I checked the source code, and this function which GetDetectorViewer() calls -
This function runs without error and returns 0. However it is not creating the textFile. Thus the zfileutils are giving an error.
This sends the following DDE command -
This command runs without error and returns 'OK' when I call it -
cmd = 'GetTextFile,"{tF}",{aT},"{sF}",{fl:d}'.format(tF=loc+'test.txt', aT='Dvr',sF='',fl=0)
However, there is no file generated in the directory specified by 'loc'