【Revit API】FamilyInstance、FamilySymbol、Family的尋找關係

話很少說,作個筆記spa

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();}
相關文章
相關標籤/搜索