Find all levels a wall spans

Find all levels a wall spans

Anonymous
Not applicable
564 Views
1 Reply
Message 1 of 2

Find all levels a wall spans

Anonymous
Not applicable

I have a list of Walls in the file and a list of Levels in the file.

What I want is the list of all the Levels that the wall spans. 

Calling LevelId on the wall only gets the Base Constraint Level.

 

0 Likes
Accepted solutions (1)
565 Views
1 Reply
Reply (1)
Message 2 of 2

Moustafa_K
Advisor
Advisor
Accepted solution

 Hi,

Getting levelId will not always serve what you want. as may be a wall has an baseoffset value which already spans another level.

my suggestion is :

  1. get the bounding box of the wall
  2. get the max and min point.
  3. compare the Z value of min and max with all levels elevation
  4. any value in between the min z and max z would be a level you need.

hope that helps.

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1