更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -1,21 +1,17 @@
using System.Text;
using ACadSharp.Entities;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Mechanical;
using Autodesk.Revit.DB.Plumbing;
using Autodesk.Revit.UI.Selection;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Nice3point.Revit.Toolkit.External.Handlers;
using ShrlAlgoToolkit.Core.Assists;
using ShrlAlgo.Toolkit.Core.Assist;
using ShrlAlgoToolkit.Core.Assist;
namespace ShrlAlgo.RvKits.RvCommon;
namespace ShrlAlgoToolkit.RevitAddins.RvCommon;
public partial class PipesCreatorViewModel : ObservableObject
{
@@ -28,11 +24,11 @@ public partial class PipesCreatorViewModel : ObservableObject
private readonly Document document;
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(CreateCommand))]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCommon.PipesCreatorViewModel.CreateCommand))]
private PipeType selectedPipeType;
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(CreateCommand))]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvCommon.PipesCreatorViewModel.CreateCommand))]
private PipingSystemType selectedPipingSystemType;
public IList<PipeType> PipeTypes => document.OfClass<PipeType>().Cast<PipeType>().ToList();
@@ -245,7 +241,7 @@ public partial class PipesCreatorViewModel : ObservableObject
//var filePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\问题管线.txt";
//File.WriteAllText(filePath, sb.ToString());
//WinDialogHelper.OpenFolderAndSelectFile(filePath);
IOHelper.WriteTxtFile("问题管线", sb.ToString());
IOAssist.WriteTxtFile("问题管线", sb.ToString());
}
//UiDocument.Selection.SetElementIds(ids);