Extract spot elevation (survey) value to a parameter

im a plumber designer and i want to make a schedule of my manholes with those parameter
top level (absolute height)
invert level (top level - depth)
depth
diameter

is there any way with dynamo to automatically extract the manhole cover absolute height to some simple text parameter? with that so it will make my work more efficient and reduce error while entering the information manually.
i make all the parameter work great but i just need to figure out what to do with the top level parameter.

What does your family look like?
With a properly designed family, you could do all this with just a simple schedule - no programing.

everything is simple to insert beside the survey elevation. this kind of value i need to enter manually.

Manhole Tag.rfa (344 KB)
תא ביוב.rfa (448 KB)


this is the tag


this is i thought maybe with dynamo there is some way that the top level of the manhole can be provided automatically.

“Automatically” in that you could build logic to get the elevation from any given manhole and write it to a value, but there is no direct method for exactly that. What have you done so far to determine the elevation of the family?

Simple enough, Your family is level based. So Z can be determined a couple of ways.
But the most straight forward is to use the Coordinates.GetLocation, Coordinates.BasePoint and Coordinates.SurveyPoint. Those are all relative to the internal origin. Just do the math from there for XYZ.
Extract that XYZ and push those values into X, Y, Z values of shared parameters. Then you can schedule those values.
Personally, I’d add a small line at the origin of your manhole to make it easy to tag it with the Spot Coordinate tool. Note that your manhole cover is a bit above the vault. Don’t know if that matters or not in your calculations.