Retrieve Curtain Panel Height from Host Level

Retrieve Curtain Panel Height from Host Level

AdvancedBIMSystems
Enthusiast Enthusiast
298 Views
3 Replies
Message 1 of 4

Retrieve Curtain Panel Height from Host Level

AdvancedBIMSystems
Enthusiast
Enthusiast

Curtain panels don't have a built in parameter for base-of-panel height from the hosted level but the XYZ values can be obtained through Revit Lookup (as attached).

 

I'm looking to create a plugin that can change some curtain panel parameters based upon each panel's height from it's hosted level. I just need a few lines of code that can retrieve the XYZ.Z value of a given panel.

 

I'll grab all the panels using FilteredElementCollector & run them through a 'for each' loop to change parameters but I just need to apply nested "if else" conditions based upon height from hosted level.

 

Thanks

0 Likes
299 Views
3 Replies
Replies (3)
Message 2 of 4

AdvancedBIMSystems
Enthusiast
Enthusiast

The closest thing I can find to an answer seems to be related to : GetFamilyPointLocations Method (revitapidocs.com)

"Examples of FamilySymbol objects that contain placement references are Panels and Flexible Components."

 

I can't find any examples of this & not sure if it's the right way to go...

0 Likes
Message 3 of 4

RPTHOMAS108
Mentor
Mentor

Wall class has CurtainGrid property.

 

CurtainGrid.GetCell

CurtainGrid.GetPanel

CurtainGrid.GetUGridLineIds, CurtainGrid.GetVGridLineIds.

 

Probably these are in logical order but if not you can find the order by comparing geometry (but I assume the order will be apparent).

 

Also curtain grids can be quite complex with panels hosting CurtainGrids (CurtainGrid.GetCell is probably more generic than CurtainGrid.GetPanel). Filtering for Panels doesn't give you relationships other than via manual comparison of geometry.

 

 

0 Likes
Message 4 of 4

AdvancedBIMSystems
Enthusiast
Enthusiast

Thanks for your reply, much appreciated.

 

I'll have a look into curtain grids & see if they're an option.

0 Likes