How to get the print set by RIR

Hi all,

Is it possible to get the “print set” by RIR.

pls see the screenshot below.

Thanks.

There is no native component but can be done via API.

Hi @JinLong,

I hope this is what you are looking for

Printset Definition.gh (8.5 KB)

Hi @Muhammad_Saqlain_Awa

Thank you for the reply, that is good for me.

I also want to know,If In Revit, the print set has already been set up. How can I get the sheets included in this print set in RIR?

Thanks

@JinLong Yes you can

 import clr


clr.AddReference("RevitAPI")
clr.AddReference("RevitAPIUI")
clr.AddReference("RhinoInside.Revit")

from Autodesk.Revit import DB
from RhinoInside.Revit import Revit

doc = Revit.ActiveDBDocument

sheets = []

if GO and PS:
    try:
        if isinstance(PS, DB.ViewSheetSet):
            sheets = list(PS.Views)
    except:
        pass

1 Like

1 Like

Hi @Muhammad_Saqlain_Awa

It works great!

Thank you very much for your answer

1 Like