更新整理

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,21 @@
<ui:FluentWindowEx
x:Class="ShrlAlgo.RvKits.RvMEP.ClashResolveView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ShrlAlgo.RvKits.RvMEP"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
Height="450"
MinHeight="480"
MinWidth="320"
Title="避让处理"
Width="320"
Height="450"
MinWidth="320"
MinHeight="480"
d:DataContext="{d:DesignInstance Type=local:ClashResolveViewModel}"
mc:Ignorable="d">
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.RvMEP.ClashResolveView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvMEP"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:rvMep="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvMEP"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:ui="https://github.com/ShrlAlgo/WPFluent"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<b:Interaction.Triggers>
<b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
@@ -82,47 +82,47 @@
</Binding>
</RadioButton.IsChecked>
</RadioButton>
<RadioButton x:Name="LbCustom" Content="自定义" />
<RadioButton Content="自定义" x:Name="LbCustom" />
<TextBox IsEnabled="{Binding IsChecked, ElementName=LbCustom}" Text="{Binding Angle, UpdateSourceTrigger=PropertyChanged}" />
</UniformGrid>
</GroupBox>
<ui:StackPanel Orientation="Horizontal" Spacing="5">
<GroupBox ui:StackPanel.Fill="Fill" Header="参考方式">
<GroupBox Header="参考方式" ui:StackPanel.Fill="Fill">
<UniformGrid Rows="1">
<RadioButton
Content="手动"
IsChecked="{Binding LocationType, ConverterParameter={x:Static local:LocationType.Manual}, Converter={StaticResource ComparisonConverter}}"
IsChecked="{Binding LocationType, ConverterParameter={x:Static rvMep:LocationType.Manual}, Converter={StaticResource ComparisonConverter}}"
ToolTip="手动选取两点" />
<RadioButton
Content="参考"
IsChecked="{Binding LocationType, ConverterParameter={x:Static local:LocationType.Reference}, Converter={StaticResource ComparisonConverter}}"
IsChecked="{Binding LocationType, ConverterParameter={x:Static rvMep:LocationType.Reference}, Converter={StaticResource ComparisonConverter}}"
ToolTip="选择相交的两条管线,将翻弯管线偏移一定距离" />
</UniformGrid>
</GroupBox>
<GroupBox ui:StackPanel.Fill="Fill" Header="调整方式">
<GroupBox Header="调整方式" ui:StackPanel.Fill="Fill">
<UniformGrid Rows="1">
<RadioButton Content="单侧" IsChecked="{Binding AdjustType, ConverterParameter={x:Static local:AdjustType.OneSide}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="双侧" IsChecked="{Binding AdjustType, ConverterParameter={x:Static local:AdjustType.TwoSide}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="单侧" IsChecked="{Binding AdjustType, ConverterParameter={x:Static rvMep:AdjustType.OneSide}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="双侧" IsChecked="{Binding AdjustType, ConverterParameter={x:Static rvMep:AdjustType.TwoSide}, Converter={StaticResource ComparisonConverter}}" />
</UniformGrid>
</GroupBox>
</ui:StackPanel>
<GroupBox Grid.Row="2" Header="调整方向">
<UniformGrid Rows="1">
<RadioButton Content="上" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Up}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="下" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Down}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="左" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Left}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="右" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static local:AdjustDirection.Right}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="上" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static rvMep:AdjustDirection.Up}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="下" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static rvMep:AdjustDirection.Down}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="左" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static rvMep:AdjustDirection.Left}, Converter={StaticResource ComparisonConverter}}" />
<RadioButton Content="右" IsChecked="{Binding AdjustDirection, ConverterParameter={x:Static rvMep:AdjustDirection.Right}, Converter={StaticResource ComparisonConverter}}" />
</UniformGrid>
</GroupBox>
<ui:TextBoxEx
ui:StackPanel.Fill="Fill"
Prefix="偏移量:"
Suffix="mm"
Text="{Binding Offset, UpdateSourceTrigger=PropertyChanged}" />
Text="{Binding Offset, UpdateSourceTrigger=PropertyChanged}"
ui:StackPanel.Fill="Fill" />
<Button
HorizontalAlignment="Stretch"
ui:StackPanel.Fill="Fill"
Command="{Binding ResolveCommand}"
Content="调整" />
Content="调整"
HorizontalAlignment="Stretch"
ui:StackPanel.Fill="Fill" />
</ui:StackPanel>
</ui:FluentWindowEx>