Placement of panels using pyrevit

Placement of panels using pyrevit

sHubamyadav016
Enthusiast Enthusiast
62 Views
1 Reply
Message 1 of 2

Placement of panels using pyrevit

sHubamyadav016
Enthusiast
Enthusiast

I created a rectangle based family with instance parameter height and width now i need to arrange this rectangle on one click on another rectqangle base is 3600 and height 2400 and ist rectangle which family name is w.rfa and we are using height is 2400 and width is 600 how to do using pyrevit

  • A rectangle-based family (w.rfa) with instance parameters: Height & Width.

  • You want to place multiple instances of this rectangle (Height = 2400, Width = 600) along another rectangle (Wall/Base: 3600 × 2400).

  • In one click, fill the wall with these panels using pyRevit.

    Placement Strategy
    • Wall: 3600 × 2400 mm.

    • Panel: 600 × 2400 mm.

    • So horizontally: 3600 ÷ 600 = 6 panels.

    • Total = 6 panels in one row.

      how to do in pyrevit this setup help me how can i do 

 

 

0 Likes
63 Views
1 Reply
Reply (1)
Message 2 of 2

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi,

 

I’m not an expert in pyRevit. From your description ("fill the wall with these panels"), it seems you want to place multiple family instances on an element face.


Refer to this guide:
https://help.autodesk.com/view/RVT/2026/ENU/?guid=0c0d640b-7810-55e4-3c5e-cd295dede87b


Use the NewFamilyInstance method that accepts a Face parameter, and review the overloads to choose the correct one.


For pyRevit-specific help, please post your question here: https://discourse.pyrevitlabs.io/

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes