【金沙js333娱乐场】【Revit API】FamilyInstance、FamilySymbol、Family的搜索关系

话不多说,做个笔记

FamilyInstance instance;  
var typeid = instance.GetTypeId();  
var symbol = RevitDoc.GetElement(typeid) as FamilySymbol;  
var familyName = symbol.FamilyName; 


var defaultFamilySymbolID = family.GetFamilySymbolIds().ToList()[familySymbolIndex];
var symbol =  doc.GetElement(defaultFamilySymbolID) as FamilySymbol;
if (!symbol.IsActive)
{
    symbol.Activate();
}

发表评论

电子邮件地址不会被公开。 必填项已用*标注