# Extract (auto)Corridor Featurelines

**URL:** <https://forum.dynamobim.com/t/extract-auto-corridor-featurelines/66225>\
**Category:** Civil 3D\
**Created:** [July 15, 2021, 8:27am UTC](https://forum.dynamobim.com/t/extract-auto-corridor-featurelines/66225 "2021-07-15T08:27:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [July 15, 2021, 3:43pm UTC](https://forum.dynamobim.com/t/extract-auto-corridor-featurelines/66225/3 "2021-07-15T15:43:37Z")

</div>

Hi @JPS,

First of all, that documentation is for the COM API, which is probably not what you want. The correct place to look is the _AutoCorridorFeatureLine_ .NET class. There is a property to get the region name. Like @kovacsv mentioned, you’ll have to pay attention to how the Feature Lines are joined across regions. If all of the regions are joined together, the output will be “All”. If they are joined between two or more regions (but not all), then the output will be the name of the first region.

Here’s an example:

```auto
import clr

clr.AddReference('AcMgd')
clr.AddReference('AcDbMgd')
clr.AddReference('AeccDbMgd')

from Autodesk.AutoCAD.ApplicationServices import *
from Autodesk.AutoCAD.DatabaseServices import *
from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *

autoFeatureLine = IN[0]
adoc = Application.DocumentManager.MdiActiveDocument

with adoc.LockDocument():
    with adoc.Database as db:
        with db.TransactionManager.StartTransaction() as t:
            oid = autoFeatureLine.InternalObjectId
            obj = t.GetObject(oid, OpenMode.ForRead)
            region = obj.CorridorFeaturelineRegionName
            t.Commit()
            pass
OUT = region

```

---

_[View the full topic](https://forum.dynamobim.com/t/extract-auto-corridor-featurelines/66225)._
