How assign "floortype" to NewFloor ?

How assign "floortype" to NewFloor ?

bdsas081914
Explorer Explorer
1,024 Views
2 Replies
Message 1 of 3

How assign "floortype" to NewFloor ?

bdsas081914
Explorer
Explorer

Hello,

I'm new to Revit's API.
I will not be assigned floor type.
Because I do not know "Revit 2014 API HELP" Explanation.
Are there any examples available online?
please help me.
Thank you!

 

 

Document.NewFloor Method (CurveArray, FloorType, Level, Boolean, XYZ)
public Floor NewFloor(
CurveArray profile,
FloorType floorType,
Level level,
bool structural,
XYZ normal
)

floorType
Type: Autodesk.Revit.DB.FloorType
A floor type to be used by the new floor instead of the default type.

0 Likes
Accepted solutions (1)
1,025 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear bdsas081914,

 

You can retrieve all floor types from the project document using a filtered element collector.

 

Then it is up to you which one of them you want to use.

 

Here is an example of doing exactly that:

 

http://thebuildingcoder.typepad.com/blog/2011/08/floor-creation.html

 

The Building Coder provides a few other examples of creating floors as well, if you take a look.

 

I hope this helps.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

bdsas081914
Explorer
Explorer

Thank you Jeremy explanation. 

0 Likes