更新整理

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,18 @@
using System.ComponentModel;
using System.Windows.Controls;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Windows;
using CommunityToolkit.Mvvm.Input;
using Nice3point.Revit.Toolkit.External.Handlers;
using ShrlAlgo.RvKits.RvCommon;
using System.ComponentModel;
using ShrlAlgoToolkit.Core.Assists;
using ShrlAlgoToolkit.RevitAddins.Assists;
using System.Windows.Controls;
using ShrlAlgo.Toolkit.Core.Assist;
using ShrlAlgoToolkit.Core.Assist;
using ShrlAlgoToolkit.RevitAddins.Properties;
using ShrlAlgoToolkit.RevitAddins.RvCommon;
namespace ShrlAlgo.RvKits.UIRibbon;
namespace ShrlAlgoToolkit.RevitAddins.UIRibbon;
public class ModifyTabApp
{
@@ -214,7 +211,7 @@ public class ModifyTabApp
//面板按钮
var alignLeftBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.align_left_16px.ToBitmapSource(),
Image = Resources.align_left_16px.ToBitmapSource(),
//LargeImage = Properties.Resources.align_left_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -229,7 +226,7 @@ public class ModifyTabApp
};
var alignRightBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.align_right_16px.ToBitmapSource(),
Image = Resources.align_right_16px.ToBitmapSource(),
//LargeImage = Properties.Resources.align_right_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -245,7 +242,7 @@ public class ModifyTabApp
var alignDownBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.align_down_16px.ToBitmapSource(),
Image = Resources.align_down_16px.ToBitmapSource(),
//LargeImage = Properties.Resources.align_down_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -260,7 +257,7 @@ public class ModifyTabApp
};
var alignUpBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.align_top_16px.ToBitmapSource(),
Image = Resources.align_top_16px.ToBitmapSource(),
//LargeImage = Properties.Resources.align_top_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -275,7 +272,7 @@ public class ModifyTabApp
};
var alignHCBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.align_center_16px.ToBitmapSource(),
Image = Resources.align_center_16px.ToBitmapSource(),
//LargeImage = Properties.Resources.align_center_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -290,7 +287,7 @@ public class ModifyTabApp
};
var alignVCBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.align_middle_16px.ToBitmapSource(),
Image = Resources.align_middle_16px.ToBitmapSource(),
//LargeImage = Properties.Resources.align_middle_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -305,8 +302,8 @@ public class ModifyTabApp
};
var alignTopBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.top_elev_16px.ToBitmapSource(),
LargeImage = Properties.Resources.top_elev_32px.ToBitmapSource(),
Image = Resources.top_elev_16px.ToBitmapSource(),
LargeImage = Resources.top_elev_32px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
ToolTip = "几何元素顶部高程对齐",
@@ -321,8 +318,8 @@ public class ModifyTabApp
};
var alignMiddleBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.middle_elev_16px.ToBitmapSource(),
LargeImage = Properties.Resources.middle_elev_32px.ToBitmapSource(),
Image = Resources.middle_elev_16px.ToBitmapSource(),
LargeImage = Resources.middle_elev_32px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
ToolTip = "几何元素中心高程对齐",
@@ -336,8 +333,8 @@ public class ModifyTabApp
};
var alignBottomBtn = new Autodesk.Windows.RibbonButton
{
Image = Properties.Resources.bottom_elev_16px.ToBitmapSource(),
LargeImage = Properties.Resources.bottom_elev_32px.ToBitmapSource(),
Image = Resources.bottom_elev_16px.ToBitmapSource(),
LargeImage = Resources.bottom_elev_32px.ToBitmapSource(),
//Standard为16pxLarge为32px
Size = RibbonItemSize.Standard,
ShowText = true,
@@ -393,7 +390,7 @@ public class ModifyTabApp
new()
{
//Image = new System.Windows.Media.Imaging.BitmapImage(new Uri(icopath)),
Image = Properties.Resources.select_on_view_16px.ToBitmapSource(),
Image = Resources.select_on_view_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
Id = "ID_IAV_BTN",
@@ -437,7 +434,7 @@ public class ModifyTabApp
Autodesk.Windows.RibbonButton iipBtn =
new()
{
Image = Properties.Resources.select_on_project_16px.ToBitmapSource(),
Image = Resources.select_on_project_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
Id = "ID_IIP_BTN",
@@ -480,7 +477,7 @@ public class ModifyTabApp
Autodesk.Windows.RibbonButton rSelBtn =
new()
{
Image = Properties.Resources.select_3d_object_16px.ToBitmapSource(),
Image = Resources.select_3d_object_16px.ToBitmapSource(),
Size = RibbonItemSize.Standard,
ShowText = true,
Id = "ID_BS_BTN",
@@ -533,8 +530,8 @@ public class ModifyTabApp
new()
{
//Image = new System.Windows.Media.Imaging.BitmapImage(new Uri(icopath)),
Image = Properties.Resources.select_filter_16px.ToBitmapSource(),
LargeImage = Properties.Resources.select_filter_32px.ToBitmapSource(),
Image = Resources.select_filter_16px.ToBitmapSource(),
LargeImage = Resources.select_filter_32px.ToBitmapSource(),
Size = RibbonItemSize.Large,
ShowText = true,
Id = "ID_Filter_BTN",
@@ -586,8 +583,8 @@ public class ModifyTabApp
new()
{
//Image = new System.Windows.Media.Imaging.BitmapImage(new Uri(icopath)),
Image = Properties.Resources.select_filter_16px.ToBitmapSource(),
LargeImage = Properties.Resources.select_filter_32px.ToBitmapSource(),
Image = Resources.select_filter_16px.ToBitmapSource(),
LargeImage = Resources.select_filter_32px.ToBitmapSource(),
Size = RibbonItemSize.Large,
ShowText = true,
Id = "ID_Filter_BTN",