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 knowledge about "How to create column family types in Revit". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!
1.XYZ
Location information is where we want to build this instance. So let's put it at the origin new XYZ(0, 0, 0).
2. FamilySymbol
Family type, what type of family instance do we need to create (we filter to get the column family type we want to create):
FilteredElementCollector faaa = new FilteredElementCollector(doc);
faaa.OfClass(typeof(FamilySymbol));//Collect family types
foreach (FamilySymbol faa in faaa)
{
if(faa.Name.Contains("500 x 500"))//Find columns of type 500*500
{
id = faa.Id;//Store its ID
}
}
FamilySymbol fs = doc.GetElement( id) as FamilySymbol;//Get family type from its ID
3. Level
The elevation is similar to previous issues, so I won't repeat it here.
FilteredElementCollector fil = new FilteredElementCollector(doc);
fil.OfClass(typeof(Level));
foreach (Level ll in fil)//find elevation
{
if (ll.Name.Contains("Level 1"))//Level 1 found
{
le = ll;
}
}
4.StructuralType
This is the structure type, need to focus on, before the template reference did not involve the reference structure type, so do you remember how to reference it?
Just add a reference before the namespace, using Autodesk.Revit.DB.Structure;
So what are the structures? Let's look at it in detail.
NonStructuralNon-Structural Structural BeamStructural Beam BraceStructural Brace ColumnStructural Column FootingStructural Footing Structural Foundations UnknownFraming
Unknown Framing
This defines the purpose of our structural family instance.
Then let's use StructuralType.Column; for structural columns here!
Let's look at the code (remember the reference before the namespace):
FilteredElementCollector fil = new FilteredElementCollector(doc);
fil.OfClass(typeof(Level));
FilteredElementCollector faaa = new FilteredElementCollector(doc);
faaa.OfClass(typeof(FamilySymbol));//Collect family types
Level le = null;
ElementId id = null;
foreach (FamilySymbol faa in faaa)
{
if(faa.Name.Contains("500 x 500"))//Find columns of type 500*500
{
id = faa.Id;//Store its ID
}
}
FamilySymbol fs = doc.GetElement( id) as FamilySymbol;//Get family type from its ID
foreach (Level ll in fil)//find elevation
{
if (ll.Name.Contains("Level 1"))//Level 1 found
{
le = ll;
}
}
FamilyInstance fa = doc.Create.NewFamilyInstance(new XYZ(0, 0, 0), fs, le, StructuralType.Column);
Effect display:
"Revit how to create column family type" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!
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.