Skip to content

Commit 80336b1

Browse files
committed
fix snoop selected
1 parent ee709a3 commit 80336b1

File tree

8 files changed

+131
-129
lines changed

8 files changed

+131
-129
lines changed

CADPythonShell.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1313
CONTRIBUTING.md = CONTRIBUTING.md
1414
README.md = README.md
1515
RPS LICENSE.txt = RPS LICENSE.txt
16-
.gitmodules = .gitmodules
1716
.github\workflows\Workflow.yml = .github\workflows\Workflow.yml
17+
PackageContents.xml = PackageContents.xml
1818
EndProjectSection
1919
EndProject
2020
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CADPythonShell", "CADPythonShell\CADPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using Application = Autodesk.AutoCAD.ApplicationServices.Core.Application;
1+
using MgdDbg.Test;
22

33
namespace CADPythonShell;
44

55
public class SnoopDBCommand : ICadCommand
66
{
77
public override void Execute()
88
{
9-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopDB)}\n";
10-
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds cmd = new TestCmds();
10+
cmd.SnoopDatabase();
1111
}
1212
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
namespace CADPythonShell;
1+
using MgdDbg.Test;
2+
3+
namespace CADPythonShell;
24

35
public class SnoopEditorCommand : ICadCommand
46
{
57
public override void Execute()
68
{
7-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopEd)}\n";
8-
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds cmd = new TestCmds();
10+
cmd.SnoopEd();
911
}
1012
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
namespace CADPythonShell;
1+
using MgdDbg.Test;
2+
3+
namespace CADPythonShell;
24

35
public class SnoopEntitiesCommand : ICadCommand
46
{
57
public override void Execute()
68
{
7-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopEnts)}\n";
8-
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds cmd = new TestCmds();
10+
cmd.SnoopEntity();
911
}
1012
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
namespace CADPythonShell;
1+
using MgdDbg.Test;
2+
3+
namespace CADPythonShell;
24

35
public class SnoopEntitiesNestedCommand : ICadCommand
46
{
57
public override void Execute()
68
{
7-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopNEnts)}\n";
8-
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds cmd = new TestCmds();
10+
cmd.SnoopNestedEntity();
911
}
1012
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
namespace CADPythonShell;
1+
using MgdDbg.Test;
2+
3+
namespace CADPythonShell;
24

35
public class SnoopEventsCommand : ICadCommand
46
{
57
public override void Execute()
68
{
7-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopEvents)}\n";
8-
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds cmd = new TestCmds();
10+
cmd.Events();
911
}
1012
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
namespace CADPythonShell;
1+
using MgdDbg.Test;
2+
3+
namespace CADPythonShell;
24

35
public class TestFrameworkCommand : ICadCommand
46
{
57
public override void Execute()
68
{
7-
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopTests)}\n";
8-
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
9+
TestCmds cmd = new TestCmds();
10+
cmd.TestDb();
911
}
1012
}

0 commit comments

Comments
 (0)