Hi,
i'm completaly new in revit api. I'm trying to get shape of floor in section. I wish to get 4 points of edges.
can someone give me any idea how to do it please ?
i can get shape of floor from sketch but it return shape in floorplan which doesn't help me
thanks for ideas
Vitezslav Peka
Dear Vitezslav Peka,
You could analyse the floor geometry as described in various blog posts:
This one shows how to get the horizontal section of a slab from one of its faces:
http://thebuildingcoder.typepad.com/blog/2008/10/slab-boundary.html
This one discusses obtaining a vertical section from a wall from another of its faces:
http://thebuildingcoder.typepad.com/blog/2008/11/wall-elevation-profile.html
In Revit 2012, the BooleanOperationsUtils class also provides access to Boolean operations in the project context, which would allow you to define the section view in any way that you see fit and then analyse the resulting gometry to obtain the edges you are interested in in a similar way.
Cheers, Jeremy.
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com