Dynamo and revit topography

Good afternoon. Tell me how it is possible to implement through Dynamo the removal of elevation marks of topography in revit at the ends of the segment and entering them into the specification table.

There is a project “training” outdoor sewerage in which a family of sewer profiles is being developed. There are three types of sewerage on the site (stormwater, drainage, household). To enter data into the family, you need to draw annotation lines above the pipes and dynamo must determine the elevation of the toposurface at the ends of this line, there must also be an additional parameter “conditional horizon” which is set manually.

Hello and welcome to the Forum.

Please check out this post on how to request help.