Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66667

Room vertical area for finishing

$
0
0

Hello, Everybody abd thank u for reading my post.

I am new in the API world and new as a profesional, but full of energy and will to learn and progress. 

There is my issue. 

 

In my company our objectiv is extract the maximum of quantities throught the model Revit in a minimal time. 

One task that take most of our planning is to determine the quantities of verticals finishings. 

The option that consists in painting all the walls and column in the model (project >20000 squre meter) has been droped because of the time implication, and we usually applied one type of finition in a room.

 

So there is the new pists we want to explor : 

For each Room in the project calculate the vertical area of the room (wall and columns that determine the geometry of the room).

 

At first, knowing the volume and the superfie of the room, we would estimate the height and mutiple this per the perimeter.

But this estimation is wrong when a room has a lot of opening o WORST has a one or more of its boundary determine per room serapation lines.

Of course i am not teaching anything new to you guys but i think it important to understand my need.

 

So my idea is to do a macro that will determine the area of the element wall and column that determine the geometry of the room (area of door / windws and other type of opening must be substract)

 

My idea will be to do something like that : 

Caution I Have notion of VBA in excel envirionement and starting studying on my own API Revit.  So I know that what is writen after doesn´t exist or is inexact as i script it in Revit. It is mainly done to express my idea in a way that will understandable (at least i hope so).

 

Create a Shared parameter AreaVertical room

Value initial of AreaVertical room = 0

 

For each room

     Getting all segments that determine the geometry of the room in the plan XY

        For each segments 

           Get the nature of the element that host the segments

              If the element is separation line then do nothing

                 Else  do for each element 

                 AreaVerticalRoom = Part of Area From Element Include in the room + AreaVerticalRoom

 

\\  to determine the segment that form the geometry of the room i have see that exists in Revit API this methode : BoundarySegmentArray

So to determine for exemple witch part of the wall is contain is the room, I was wondering if it was possible to code something like that :

 

For each wall that determine the geometry of the room 

    Get coordonate of InteriorFaceOfThe Wall = XZWallFacePlan

    Get coodonate of  segment = xSegment

    If  xSegment include in WallFacePlan then extract Area Wall of the intersection.

 

Well that all suposition but i will start investigate in this way i don t know if i am doing well. So that is why i am asking for u help. 

I  have also to accomodate with the sharp environement and all the REVIT-API with its methosd function and class.... 

Since i am "used" to VBA, i will raher like coding in VB.net because i can read and understand (as far as my experience permit) to understand the code

 

Thank you for the time i hope u wil past helping me!

 


Viewing all articles
Browse latest Browse all 66667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>