Code Block For ExportRange etc

I keep having trouble with reliably using drop-down lists in my graphs like others have described.

Anybody know how to enumerate the different kinds of ExportRanges?

Or better yet, anybody know of a resource to find this sort of information? Ideally, I’d hard-code all the options from the archilab package.

Those are custom nodes so that is a bit more difficult. However, that appears to simply be a string, so you could just use a string node for it.
image

1 Like

Well, I tried using a string but got this error:

Traceabck (most recent call last): File "<string>", line 81, in <module>
TypeError: len() of unsized object

Is there something else I should be doing?

export image test.dyn (19.8 KB)

Turns out you are correct! I can feed that node strings.

I was getting an error because of a separate issue.

And for those curious, I was able to answer my original question with this code in a python script node:

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

OUT = System.Enum.GetValues(Autodesk.Revit.DB.ExportRange)

snip_20200505084156