命名优化,达芬奇字体修改工具
This commit is contained in:
@@ -116,6 +116,10 @@ internal class FluentAddin : ExternalCommand
|
||||
}
|
||||
public override void Execute()
|
||||
{
|
||||
var ids1 = UiDocument.Selection.GetElementIds();
|
||||
var firstPipe = ids1.Where(id => Document.GetElement(id).GetConnectors(true).Size == 2).FirstOrDefault();
|
||||
UiDocument.Selection.SetElementIds([firstPipe]);
|
||||
return;
|
||||
var elementsBaseFace = Document.OfClass<FamilyInstance>().Where(
|
||||
e => e is FamilyInstance ins &&
|
||||
ins.Symbol.Family.FamilyPlacementType == FamilyPlacementType.WorkPlaneBased &&
|
||||
|
||||
@@ -21,6 +21,18 @@ public class TempCmd : ExternalCommand
|
||||
{
|
||||
public override void Execute()
|
||||
{
|
||||
var elems = Document.OfClass<FamilyInstance>().Where(f => f.get_Parameter(BuiltInParameter.DOOR_NUMBER)?.AsString()?.Contains("PD0527SQX008") ==true);
|
||||
//if (!elems.Any()==true)
|
||||
//{
|
||||
// MessageBox.Show("未找到");
|
||||
// return;
|
||||
//}
|
||||
UiDocument.Selection.SetElementIds(elems.Select(e => e.Id).ToList());
|
||||
//var result=string.Join(";", elems.Select(e => e.Id.ToString()));
|
||||
//Clipboard.SetText(result);
|
||||
//MessageBox.Show(result);
|
||||
return;
|
||||
|
||||
//导出Revit中的所有族类别BuiltInCategory和中文名
|
||||
StringBuilder sb = new StringBuilder();
|
||||
var doc = Document;
|
||||
|
||||
Reference in New Issue
Block a user