I'm not sure what the fundamental difference is, but the same result happens with your code as well. Unrecoverable error.
I see the difference with the Set pcbDoc, but other than that there's no difference. If I comment out the line
edcontrol.Grid(6, 2) = gridval
the script will run fine and get to the message line without failure. This leads me to believe the problem lies with the edcontrol.Grid function.
BTW, I'm running Expedition 2005.3.
Any other ideas?
I just tried this on another machine that has 2005.1 installed. It worked fine using Satoru's version of the script, and my original.
We also have a test machine on which we're getting 2007.something installed, so I'll go try it there.
If anyone else out there can run a test and report your platform, I'd appreciate it.
Follow Up #2:
The script works fine on 2007.6
I guess this means that the problem is either with my installation/configuration or the 2005.3 software, and not with the script or the .Grid() function.
The Grid property worked in my Exp2005.3 environment.
I think that a re-installation is good.
You are correct. As we are soon going to be transitioning to 2007.6, I will take the opportunity to do a complete re-install of all my Mentor tools.
Thank you for your help - the script you sent to me had some things in it that solved some other issues I was also working on.
hello everyone... i got this message too. unrecoverable error and automatically shuts down the application. I just tried to export the gencad but when opening the gencad, it is corrupted. It doesn't generate shapes for other components. So what I did, I update cells and padstacks . Then I export gencad again. Then it gives me that error. Have anyone encounter this problem too? The gencad is corrupted and the unrecoverable error?