DYH.CAD.OverruleExtension 0.0.7

dotnet add package DYH.CAD.OverruleExtension --version 0.0.7
                    
NuGet\Install-Package DYH.CAD.OverruleExtension -Version 0.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DYH.CAD.OverruleExtension" Version="0.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DYH.CAD.OverruleExtension" Version="0.0.7" />
                    
Directory.Packages.props
<PackageReference Include="DYH.CAD.OverruleExtension" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DYH.CAD.OverruleExtension --version 0.0.7
                    
#r "nuget: DYH.CAD.OverruleExtension, 0.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DYH.CAD.OverruleExtension@0.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DYH.CAD.OverruleExtension&version=0.0.7
                    
Install as a Cake Addin
#tool nuget:?package=DYH.CAD.OverruleExtension&version=0.0.7
                    
Install as a Cake Tool

一个方便使用简易OverRule的扩展库 使用方法 -创建一个简单的Overrule GripOverRule.CreateCommandGripOverRule<Line>((l, list) ⇒ { // 在直线的1/4和3/4处分别添加两个夹点 var vec = l.StartPoint.GetVectorTo(l.EndPoint); var pt1 = l.StartPoint + vec * 0.25; var pt2 = l.StartPoint + vec * 0.75; // 在委托里将夹点添加到list里即可按对应的规则显示在图纸上 list.Add(new CommandGripData("命令1", pt1, GripStyleType.ADD, "按钮描述1")); list.Add(new CommandGripData("命令2", pt2, GripStyleType.EDIT, "按钮描述2", 7)); }) .Overruling(); -保存一个变量可以方便开关 var overrule = GripOverRule.CreateCommandGripOverRule<Circle>((cir, list) ⇒{}); // 开关 overrule.Overruling(); overrule.UnOverruling(); -可以设置锚定的图元的规则 // 例如锚定带有扩展数据的 overrule.SetXDataFilter("appName"); ... -目前有几种不同的夹点样式 BASE 基础 ADD 增加 EDIT 修改 DELETE 删除 SETTINGS 设置

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.7 247 11/29/2024
0.0.6 241 8/2/2024
0.0.5 190 8/2/2024
0.0.4 205 8/2/2024
0.0.3 199 8/2/2024
0.0.2 212 8/2/2024
0.0.1 198 8/2/2024

重构代码,解决GripData被cad销毁而不能获取夹点的问题