Skip to content

Commit 101c8bd

Browse files
committed
refactor
1 parent 076aed3 commit 101c8bd

File tree

140 files changed

+235
-560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+235
-560
lines changed

CADPythonShell.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
README.md = README.md
1515
RPS LICENSE.txt = RPS LICENSE.txt
1616
.github\workflows\Workflow.yml = .github\workflows\Workflow.yml
17-
PackageContents.xml = PackageContents.xml
17+
CADPythonShell\PackageContents.xml = CADPythonShell\PackageContents.xml
1818
EndProjectSection
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CADPythonShell", "CADPythonShell\CADPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"

CADPythonShell/App/CADPythonShellApplication.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using CADRuntime;
2-
using System.IO;
1+
using System.IO;
32
using System.Windows.Media;
43
using System.Windows.Media.Imaging;
54
using System.Xml.Linq;
5+
using CADRuntime;
66
using Forms = System.Windows.Forms;
77

8-
namespace CADPythonShell
8+
namespace CADPythonShell.App
99
{
1010
internal static class CADPythonShellApplication
1111
{

CADPythonShell/App/IronPythonConsoleApp.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using Autodesk.AutoCAD.Runtime;
22
using Autodesk.Windows;
3-
using MgdDbg;
3+
using CADPythonShell.Command;
44
using Orientation = System.Windows.Controls.Orientation;
55

6-
namespace CADPythonShell
6+
namespace CADPythonShell.App
77
{
88
public class IronPythonConsoleApp : ICadCommand
99
{
@@ -164,7 +164,7 @@ private static RibbonPanel AddPanelTwo()
164164
"CADPythonShell.Resources.handle-16.png"),
165165
LargeImage =
166166
CADPythonShellApplication.GetEmbeddedPng(addinAssembly, "CADPythonShell.Resources.handle-32.png"),
167-
CommandHandler = new RelayCommand(new SnoopByHanderCommand().Execute),
167+
CommandHandler = new RelayCommand(new SnoopByHandleCommand().Execute),
168168
AllowInToolBar = true,
169169
KeyTip = "Snoop By Handle",
170170
};

CADPythonShell/Command/CommandLoaderBase.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
using CADRuntime;
2-
using System.IO;
1+
using System.IO;
2+
using CADPythonShell.App;
3+
using CADRuntime;
34

4-
namespace CADPythonShell
5+
namespace CADPythonShell.Command
56
{
67
/// <summary>
78
/// Starts up a ScriptOutput window for a given canned command.

CADPythonShell/Command/ConfigureCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
using Autodesk.AutoCAD.Runtime;
2+
using CADPythonShell.App;
23
using Application = Autodesk.AutoCAD.ApplicationServices.Core.Application;
34

4-
namespace CADPythonShell
5+
namespace CADPythonShell.Command
56
{
67
/// <summary>
78
/// Open the configuration dialog.

CADPythonShell/Command/ICadCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace CADPythonShell;
1+
namespace CADPythonShell.Command;
22

33
public abstract class ICadCommand
44
{

CADPythonShell/Command/IronPythonConsoleCommand.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
using Autodesk.AutoCAD.ApplicationServices;
1+
using System.Windows;
2+
using System.Windows.Interop;
3+
using System.Windows.Threading;
4+
using Autodesk.AutoCAD.ApplicationServices;
25
using Autodesk.AutoCAD.Runtime;
6+
using CADPythonShell.App;
37
using CADRuntime;
48
using Microsoft.Scripting;
5-
using System.Windows;
6-
using System.Windows.Interop;
7-
using System.Windows.Threading;
89
using Application = Autodesk.AutoCAD.ApplicationServices.Core.Application;
910
using Exception = System.Exception;
1011
using Forms = System.Windows.Forms;
1112

12-
namespace CADPythonShell
13+
namespace CADPythonShell.Command
1314
{
1415
public class IronPythonConsoleCommand : ICadCommand
1516
{
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using Application = Autodesk.AutoCAD.ApplicationServices.Application;
1+
using MgdDbg.App;
22

3-
namespace CADPythonShell;
3+
namespace CADPythonShell.Command;
44

5-
public class SnoopByHanderCommand : ICadCommand
5+
public class SnoopByHandleCommand : ICadCommand
66
{
77
public override void Execute()
88
{
9-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopByHandle)}\n";
10-
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds testCmds = new TestCmds();
10+
testCmds.SnoopEntityByHandle();
1111
}
1212
}

CADPythonShell/Command/SnoopCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Autodesk.AutoCAD.Runtime;
22

3-
namespace CADPythonShell
3+
namespace CADPythonShell.Command
44
{
55
public class SnoopCommand : ICadCommand
66
{

CADPythonShell/Command/SnoopDBCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using MgdDbg.Test;
1+
using MgdDbg.App;
22

3-
namespace CADPythonShell;
3+
namespace CADPythonShell.Command;
44

55
public class SnoopDBCommand : ICadCommand
66
{

0 commit comments

Comments
 (0)