Get Revit linear reference of an edge

Who knows how to select a linear reference in the Revit API (for example to use in a linear dimension)? To select a Surface reference I use ‘surface.Tags.LookupTag(“RevitFaceReference”)’

What is the equivalent for a linear reference (like an edge curve)?

In this screenshot you see the reference type I am looking for to select:

Any help would be awesome.

Is this what you are thinking?

The last Python node contains…

import clr
from Autodesk.DesignScript.Geometry import *

import Revit


import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
import System

uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
doc = DocumentManager.Instance.CurrentDBDocument

import Autodesk
from Autodesk.Revit.DB import *

items = UnwrapElement(IN[0])
outlist = []

for i in items:
OUT = outlist
1 Like

Thank you for your research. This is nice to have, but I am looking for a way to measure the edges of the wall when they are not parallel. For example when to walls meet with another angle than 90degrees. The reference for this edge dimension can’t be a surface.