VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > Python基础教程 >
  • C#教程之【Revit API】FamilyInstance、FamilySymbol、Fam

话不多说,做个笔记

复制代码
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();
}


相关教程