[Python.NET] Casting an object to a different interface

Matthias Hillenbrand mahibra at gmail.com
Mon Feb 29 16:53:25 EST 2016


Thanks! Bryan Loyd's method of casting to an interface seems to be what I am
looking for.

 

However, I get an error in combination with the commercial API:

>       surfaceCB = ZOSAPI.Editors.LDE.ISurfaceCoordinateBreak(surface)

E       TypeError: object does not implement ISurfaceCoordinateBreak

 

I will try to get a further hint from the support of the commercial software
I am struggling with.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20160229/f2abff45/attachment.html>


More information about the PythonDotNet mailing list