多项功能优化

This commit is contained in:
GG Z
2024-12-22 10:26:12 +08:00
parent 77655c9ef5
commit 83b846f15f
66 changed files with 5424 additions and 2927 deletions

View File

@@ -1,4 +1,5 @@
using Autodesk.Revit.DB;
using Nice3point.Revit.Toolkit.External;
namespace Sai.RvKits.RvView;
@@ -7,20 +8,20 @@ namespace Sai.RvKits.RvView;
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
public class SectionBoxControllerCmd : ExternalCommand
{
public override void Execute()
{
//if (Document.ActiveView.ViewType != ViewType.ThreeD)
//{
// UiDocument.ActiveView = Document.OfCollector<View3D>().Cast<View3D>().FirstOrDefault(v => !v.IsTemplate);
public override void Execute()
{
//if (Document.ActiveView.ViewType != ViewType.ThreeD)
//{
// UiDocument.ActiveView = Document.OfCollector<View3D>().Cast<View3D>().FirstOrDefault(v => !v.IsTemplate);
//}
try
{
WinDialogHelper.ShowModeless<SectionBoxControllerView>(new SectionBoxControllerViewModel(UiDocument));
}
catch (Exception ex)
{
ErrorMessage = ex.Message;
}
}
//}
try
{
WinDialogHelper.ShowModeless<SectionBoxControllerView>(new SectionBoxControllerViewModel(UiApplication));
}
catch (Exception ex)
{
ErrorMessage = ex.Message;
}
}
}