Dimensions - Get Text Fields Above and Below

Hi there,

Does anyone know how to get the text values above and below dimensions?

Thanks

Other than the OOTB (out of the box) nodes you can do this with a python node:

import clr
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

dimensions=UnwrapElement(IN[0])

above=[]
below=[]
for d in dimensions:
    above.append(d.Above)
    below.append(d.Below)

OUT=above,below
1 Like

Hey GregX,

Thanks, much appreciated!

1 Like

If a reply solved your problem please mark it as a solution using the small tickmark option
image

1 Like

Hi i cannot re-create the code block List.Flatten

can share the dyn file please?

You can use the OOTB node Flatten but the main use for it here is to turn the dimension element into a list of a single dimension element, so instead try making it into a list first.

1 Like

thanks i will try…

i want to replace the values of the BELOW text fields…

Don’t know what to do anymore…
how can i feed the result to the text field below of selected dimensions?

Edit :
Figured it out :slight_smile:

1 Like