Hot answers tagged 9.3.1
For one thing, I am pretty sure that when using a for loop, .next() is not required, since it automatically iterates through the object. In the case of while, however, the .next() method is necessary to continue moving through the rows. I'm not sure if your use of row as a reference to the .next() method is a problem in the iteration you start with the loop, ...
I believe your command line should read: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe C:\Temp\Mydll.dll /tlb:Mytlb.tlb /codebase Not directly related to your problem, but I would also advise against naming the type library file differently than the DLL as it violates the standard naming convention. I.e. use Mydll.tlb instead of Mytlb.tlb.
Remember that in Python, indentation is everything, including variable scope. So even if the cursor were iterable, gname would only be in scope during the loop (which effectively does nothing), then when you get to the Output = line, Python will complain that gname doesn't exist. In addition, instead of creating a grid shapefile and using that as a cookie ...
Only top voted, non community-wiki answers of a minimum length are eligible