编程如何修改Revit族类型名称


Revit族类型名称的修改 直接通过FamilySymbol.Name 属性值



请看下面的代码:


	                Selection sel = this.ActiveUIDocument.Selection;
			Reference ref1 = sel.PickObject(ObjectType.Element,"please pick a family instance");				
		
			Document doc = this.ActiveUIDocument.Document;
			
			FamilyInstance inst = doc.GetElement(ref1) as FamilyInstance;
			FamilySymbol symbol = inst.Symbol;
		
			
			Transaction trans = new Transaction(doc);
			trans.Start("changeSymbolName");
			symbol.Name = "new" + symbol.Name;
						
			trans.Commit();
			


转载请复制以下信息:
原文链接: http://blog.csdn.net/joexiongjin/article/details/9011073
作者: 叶雄进 , Autodesk ADN



你可能感兴趣的:(编程如何修改Revit族类型名称)