Print Range

hi all, is there a way to translate print range into python?or design script? i dont have experience in both. Your help is highly appreciated…


Hi @interactiverendering,

Are you after something like this?


import clr

# Import RevitAPI
from Autodesk.Revit.DB import *
import System
from System.Collections.Generic import *

OUT = System.Enum.GetValues(PrintRange)

thanks @Daniel_Woodcock1 perfect!

1 Like

how did you do this?

Using the python node… I’m not too sure what you are asking exactly, can you elaborate?

haha i mean is there a way you can automatically convert any dynamo node into python script or you need to do it manually?!

help me with this issue please.

No, I’m afraid not. However, for pretty much most Built-in dynamo nodes you can write in python as easily as you would hook them up visually in a graph. You can’t use third party nodes in Pyhon (or at least I haven’t tested loading them in).

As for Konrads nodes, a while back I believe he migrated to C# from python, so no, you can not auto convert these to python, but I believe @Alban_de_Chasteigner has provided a link to the Github repo where you might choose to ‘pythonise’ the code… However, you might be interested in this blog post by Konrad around a similar topic…


great wise answer, thanks for your time dear <3

1 Like