Skip to content

Commit

Permalink
release v.12
Browse files Browse the repository at this point in the history
  • Loading branch information
shichuyibushishiwu committed Nov 27, 2023
1 parent 1003c83 commit 6655c60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 61 deletions.
61 changes: 1 addition & 60 deletions src/TestCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,67 +20,8 @@ public Result Execute(ExternalCommandData commandData, ref string message, Eleme
{
UIDocument uiDocument = commandData.Application.ActiveUIDocument;
Document document = uiDocument.Document;
var cs = new List<BuiltInCategory>
{
BuiltInCategory.OST_PipeCurves,
BuiltInCategory.OST_PipeFitting,
BuiltInCategory.OST_PipeAccessory,
BuiltInCategory.OST_FlexPipeCurves,
BuiltInCategory.OST_Sprinklers,

//Equipements
BuiltInCategory.OST_SpecialityEquipment,
BuiltInCategory.OST_NurseCallDevices,
BuiltInCategory.OST_TelephoneDevices,
BuiltInCategory.OST_FireAlarmDevices,
BuiltInCategory.OST_GenericModel,
//MEP NetWork
BuiltInCategory.OST_FabricationPipework,
BuiltInCategory.OST_FabricationDuctwork,
BuiltInCategory.OST_FabricationHangers,

//CVC
BuiltInCategory.OST_DuctTerminal,
BuiltInCategory.OST_MechanicalEquipment,
BuiltInCategory.OST_DuctCurves,
BuiltInCategory.OST_DuctAccessory,
BuiltInCategory.OST_DuctFitting,
BuiltInCategory.OST_FlexDuctCurves,

//Electricite
BuiltInCategory.OST_Conduit,
BuiltInCategory.OST_CableTray,
BuiltInCategory.OST_ConduitFitting,
BuiltInCategory.OST_CableTrayFitting,
BuiltInCategory.OST_ElectricalEquipment,
BuiltInCategory.OST_Casework,
BuiltInCategory.OST_ElectricalFixtures,

//GC
#region GC
BuiltInCategory.OST_Stairs,

BuiltInCategory.OST_StructuralFoundation,
BuiltInCategory.OST_Ceilings,
BuiltInCategory.OST_Gutter,
BuiltInCategory.OST_StairsRailing,
BuiltInCategory.OST_Walls,
BuiltInCategory.OST_StructuralFraming,
BuiltInCategory.OST_CurtainWallPanels,
BuiltInCategory.OST_CurtainWallMullions,
BuiltInCategory.OST_Doors,
BuiltInCategory.OST_Columns,
BuiltInCategory.OST_StructuralColumns,
BuiltInCategory.OST_Floors,
BuiltInCategory.OST_Roofs,
#endregion
};

Stopwatch Stopwatch = new Stopwatch();
Stopwatch.Start();
document.GetElements(BuiltInCategory.OST_Windows,cs.ToArray());
Stopwatch.Stop();
System.Windows.MessageBox.Show(Stopwatch.Elapsed.ToString());

return Result.Succeeded;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Tuna.Revit.Extension.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<Company>Tuna</Company>
<Authors>Shiwu</Authors>
<PackageIcon>Tuna.png</PackageIcon>
<TunaVer>11</TunaVer>
<TunaVer>12</TunaVer>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>This is an extension package for revit api.</Description>
<PackageProjectUrl>https://github.com/shichuyibushishiwu/Tuna.Revit.Extensions/wiki</PackageProjectUrl>
Expand Down

0 comments on commit 6655c60

Please sign in to comment.