随笔 - 102  文章 - 0 评论 - 49 trackbacks - 0

话不多说,做个笔记

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();
}

posted on 2018-06-11 19:09 airforce094 阅读(...) 评论(...) 编辑 收藏