xzos / PyZDDE

Zemax/ OpticStudio Extension using Python
MIT License
154 stars 64 forks source link

Unable to open or generate footprint file analysis window #74

Open shbhuk opened 7 years ago

shbhuk commented 7 years ago

Hi, I am trying to generate footprints in Python and tried to use the following - 1) zGetMetaFile - ln.zGetMetaFile('full_path+filename.wmf','Foo') 2) ipzCaptureWindow

with the analysis code 'Foo'. Irrespective of the analysis code I enter, I always get the default output - the 2D layout. Could you please guide me as to where could the problem lie.

It returns code 0 and saves the 2D layout window as the file for option 1.

shbhuk commented 7 years ago

Conversely, this does work -

ln.zGetTextFile(path+'sample.txt','Foo') and succeeds in saving a txt file

indranilsinharoy commented 7 years ago

Hi @shbhuk, is it ok if I take a look at it during the weekend?

shbhuk commented 7 years ago

Sure. I also had a problem with the zExecuteMacro, which I posted on another issue thread. Please do take a look at that too.

indranilsinharoy commented 7 years ago

Hi shbhuk, I'm sorry that I couldn't get to look into it this weekend ... had to get some work out of the way ... but I hope to take it up today/tomorrow.

Best regards,Indranil Sinharoy.Cell: 408-338-8834

On Thursday, June 29, 2017, 3:30:07 PM CDT, shbhuk notifications@github.com wrote:

Sure. I also had a problem with the zExecuteMacro, which I posted on another issue thread. Please do take a look at that too.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

shbhuk commented 7 years ago

Hi Indranil, Got the time?

indranilsinharoy commented 7 years ago

Hi shbhuk, I'm sorry. I have been crazy busy for the last few days. I've have a deadline (15 th July) on an experimental demonstration which is consuming me. I do want to help you, and it is there at the back of my mind. I will find some time very soon.

Best regards,Indranil Sinharoy.Cell: 408-338-8834

On Wednesday, July 5, 2017, 7:10:54 PM CDT, shbhuk notifications@github.com wrote:

Hi Indranil, Got the time?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

shbhuk commented 7 years ago

Hi Indranil, I understand. Take your time.

shbhuk commented 7 years ago

Hey, Any luck?

indranilsinharoy commented 7 years ago

Hi @shbhuk Please see https://github.com/indranilsinharoy/PyZDDE/issues/77#issuecomment-317112966

shbhuk commented 7 years ago

I see. Is there any other way to obtain the Footprint or other Analysis windows?

indranilsinharoy commented 7 years ago

Can you explain what you mean by "footprint"? In OpticStudio 14 and above, you should be able to use the macro (zExecuteMacro()) to get analysis windows .... it is not ideal, but that's the only workaround that I could think of. I also know that you had a problem using the zExecuteMacro() function. I'll take a look at it and get back to you.

shbhuk commented 7 years ago

Hi, Footprint or Spot diagram in Seq.

I tried using ExecuteMacro, but faced an error as mentioned above. Do let me know.

indranilsinharoy commented 7 years ago

@shbhuk see https://github.com/indranilsinharoy/PyZDDE/issues/62#issuecomment-317136607