In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "how to create floors in Revit". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The first method to create a floor: NewFloor (CurveArray profile, bool structural) is relatively simple. Let's talk about the second method: NewFloor (CurveArray profile, floorType, level, bool structural) is similar to the previous issues. We need to set these four conditions together so that we can create the floor we want:
1.CurveArray profile . This is a combination of curves, which is different from the collection of walls to add with Append instead of add, as follows:
CurveArray cu = new CurveArray ()
Cu.Append (Line.CreateBound (new XYZ (0,0,0), new XYZ (100,0,0)
Cu.Append (Line.CreateBound (new XYZ (100J 0,0), new XYZ (0,100J 0,0)
Cu.Append (Line.CreateBound (new XYZ (0,100,0), new XYZ (0,0,0)
2.floorType . We need to create the type of floor:
If (wa.GetParameters ("default thickness") [0] .AsValueString () = "225") / / find a plate with a thickness of 225
{
Fl = wa
}
3.level . To create the level on which the floor is located, the editor, like the wall, will not repeat it here.
4. Bool structural . Whether it is a structure, this time we choose a true, which is also similar to the wall. Partners can go to see the previous issues.
The difference between the way we combine and compare and create walls is that when we create walls, we need ID of wall types and levels, while floors need not ID but types, which are essentially the same; (2) create grid lines, levels, and wall create, while slabs need doc.create. The following code:
FilteredElementCollector fil = new FilteredElementCollector (doc)
Fil.OfClass (typeof (Level))
FilteredElementCollector fill = new FilteredElementCollector (doc)
Fill.OfClass (typeof (FloorType))
FloorType fl = null
Level le= null
Foreach (FloorType wa in fill) / / find the type of board
{
If (wa.GetParameters ("default thickness") [0] .AsValueString () = "225") / / find a plate with a thickness of 225
{
Fl= wa
}
}
CurveArray cu = new CurveArray ()
Cu.Append (Line.CreateBound (new XYZ (0,0,0), new XYZ (100,0,0)); / / Line
Cu.Append (Line.CreateBound (new XYZ (100,0,0), new XYZ (0,100,0)
Cu.Append (Line.CreateBound (new XYZ (0,100,0), new XYZ (0,0,0)
Foreach (Level ll in fil) / / find the elevation
{
If (ll.Name.Contains ("first floor") / / find a level
{
Le = ll
}
}
Floor fll = doc.Create.NewFloor (cu, fl, le, true)
Effect:
This is the end of "how to create a floor with Revit". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.