DuplicateSurfaceBorder - Python rhinoscriptsyntax

The vbScript equivalent has a switch for interior/exterior/both types of curves; rhinoscriptsyntax for Python does not (yet).
Aside from the implict request here for the implementation of the switch in Python… how does one workaround this with RhinoCommon? I don’t see how to distinguish interior from exterior with brep.DuplicateEdgeCurves()…

Thanks, --Mitch

OK, got it, for the outer border for example:

import Rhino
def GetBrepOuterLoop(brep):
    trimLoops=brep.Loops
    for loop in trimLoops:
        if loop.LoopType==Rhino.Geometry.BrepLoopType.Outer:
            return Rhino.Geometry.BrepLoop.To3dCurve(loop)

Still want a simplified approach with rhinoscriptsyntax, though…
–Mitch

I added this request to our bugtracker
http://mcneel.myjetbrains.com/youtrack/issue/RH-21253

The type option will be available in SR7