Skip to content

Commit

Permalink
fix snoop selected
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Apr 12, 2023
1 parent ee709a3 commit 80336b1
Show file tree
Hide file tree
Showing 8 changed files with 131 additions and 129 deletions.
2 changes: 1 addition & 1 deletion CADPythonShell.sln
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
CONTRIBUTING.md = CONTRIBUTING.md
README.md = README.md
RPS LICENSE.txt = RPS LICENSE.txt
.gitmodules = .gitmodules
.github\workflows\Workflow.yml = .github\workflows\Workflow.yml
PackageContents.xml = PackageContents.xml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CADPythonShell", "CADPythonShell\CADPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
Expand Down
6 changes: 3 additions & 3 deletions CADPythonShell/Command/SnoopDBCommand.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using Application = Autodesk.AutoCAD.ApplicationServices.Core.Application;
using MgdDbg.Test;

namespace CADPythonShell;

public class SnoopDBCommand : ICadCommand
{
public override void Execute()
{
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopDB)}\n";
Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
TestCmds cmd = new TestCmds();
cmd.SnoopDatabase();
}
}
8 changes: 5 additions & 3 deletions CADPythonShell/Command/SnoopEditorCommand.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
namespace CADPythonShell;
using MgdDbg.Test;

namespace CADPythonShell;

public class SnoopEditorCommand : ICadCommand
{
public override void Execute()
{
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopEd)}\n";
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
TestCmds cmd = new TestCmds();
cmd.SnoopEd();
}
}
8 changes: 5 additions & 3 deletions CADPythonShell/Command/SnoopEntitiesCommand.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
namespace CADPythonShell;
using MgdDbg.Test;

namespace CADPythonShell;

public class SnoopEntitiesCommand : ICadCommand
{
public override void Execute()
{
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopEnts)}\n";
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
TestCmds cmd = new TestCmds();
cmd.SnoopEntity();
}
}
8 changes: 5 additions & 3 deletions CADPythonShell/Command/SnoopEntitiesNestedCommand.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
namespace CADPythonShell;
using MgdDbg.Test;

namespace CADPythonShell;

public class SnoopEntitiesNestedCommand : ICadCommand
{
public override void Execute()
{
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopNEnts)}\n";
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
TestCmds cmd = new TestCmds();
cmd.SnoopNestedEntity();
}
}
8 changes: 5 additions & 3 deletions CADPythonShell/Command/SnoopEventsCommand.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
namespace CADPythonShell;
using MgdDbg.Test;

namespace CADPythonShell;

public class SnoopEventsCommand : ICadCommand
{
public override void Execute()
{
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopEvents)}\n";
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
TestCmds cmd = new TestCmds();
cmd.Events();
}
}
8 changes: 5 additions & 3 deletions CADPythonShell/Command/TestFrameworkCommand.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
namespace CADPythonShell;
using MgdDbg.Test;

namespace CADPythonShell;

public class TestFrameworkCommand : ICadCommand
{
public override void Execute()
{
string fullCmdLine = $"_{nameof(MgdDbgAction.SnoopTests)}\n";
Autodesk.AutoCAD.ApplicationServices.Core.Application.DocumentManager.MdiActiveDocument.SendStringToExecute(fullCmdLine, false, false, true);
TestCmds cmd = new TestCmds();
cmd.TestDb();
}
}
Loading

0 comments on commit 80336b1

Please sign in to comment.