Skip to content

Commit a8abfd4

Browse files
committed
Cleanups and Compiled for Manage 2017
Added Referenced DLLs Renamed project to NavisPythonShell Compiled for Navisworks Manage 2017
1 parent 6d16248 commit a8abfd4

83 files changed

Lines changed: 186 additions & 1059 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
4-
# SharpDevelop 5.1
5-
VisualStudioVersion = 15.0.26228.9
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27004.2005
65
MinimumVisualStudioVersion = 10.0.40219.1
7-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RevitPythonShell", "RevitPythonShell\RevitPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NavisPythonShell", "NavisPythonShell\NavisPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
87
ProjectSection(ProjectDependencies) = postProject
98
{C8446636-C663-409F-82D0-72C0D55BBA1C} = {C8446636-C663-409F-82D0-72C0D55BBA1C}
109
{F1152D68-346B-4F48-8DB7-BE67B5CB1F49} = {F1152D68-346B-4F48-8DB7-BE67B5CB1F49}
1110
EndProjectSection
1211
EndProject
1312
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PythonConsoleControl", "PythonConsoleControl\PythonConsoleControl.csproj", "{F1152D68-346B-4F48-8DB7-BE67B5CB1F49}"
1413
EndProject
15-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RpsRuntime", "RpsRuntime\RpsRuntime.csproj", "{C8446636-C663-409F-82D0-72C0D55BBA1C}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NpsRuntime", "NpsRuntime\NpsRuntime.csproj", "{C8446636-C663-409F-82D0-72C0D55BBA1C}"
1615
EndProject
1716
Global
1817
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -36,6 +35,9 @@ Global
3635
GlobalSection(SolutionProperties) = preSolution
3736
HideSolutionNode = FALSE
3837
EndGlobalSection
38+
GlobalSection(ExtensibilityGlobals) = postSolution
39+
SolutionGuid = {8B297B8C-D49D-42A2-BD5A-6B7C9A3ECAF4}
40+
EndGlobalSection
3941
GlobalSection(SubversionScc) = preSolution
4042
Svn-Managed = True
4143
Manager = AnkhSVN - Subversion Support for Visual Studio
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
22
using System.IO;
3-
using RevitPythonShell.RpsRuntime;
3+
using NavisPythonShell.NpsRuntime;
44
using Autodesk.Navisworks.Api;
55
using Autodesk.Navisworks.Api.Plugins;
66

7-
namespace RevitPythonShell
7+
namespace NavisPythonShell
88
{
99
/// <summary>
1010
/// Starts up a ScriptOutput window for a given canned command.
@@ -32,7 +32,7 @@ public abstract class CommandLoaderBase
3232
int Execute(ref string message, params string[] parameters)
3333
{
3434
// FIXME: somehow fetch back message after script execution...
35-
var executor = new ScriptExecutor(RevitPythonShellApplication.GetConfig() );
35+
var executor = new ScriptExecutor(NavisPythonShellApplication.GetConfig() );
3636

3737
string source;
3838
using (var reader = File.OpenText(_scriptSource))
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Windows.Forms;
66
using System.Drawing;
77

8-
namespace RevitPythonShell
8+
namespace NavisPythonShell
99
{
1010
/// <summary>
1111
/// Display a listbox with a list of completions for a given string.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
using Autodesk.Navisworks.Api;
77
using Autodesk.Navisworks.Api.Plugins;
88

9-
namespace RevitPythonShell
9+
namespace NavisPythonShell
1010
{
1111
/// <summary>
1212
/// Open the configuration dialog.
1313
/// </summary>
1414

15-
[PluginAttribute("RevitPythonShell.ConfigureCommand",
15+
[PluginAttribute("NavisPythonShell.ConfigureCommand",
1616
"ACOM",
1717
ToolTip = "NPS configuration window",
1818
DisplayName = "Configure NPS")]
@@ -25,9 +25,9 @@ class ConfigureCommand : AddInPlugin
2525
public override int Execute(params string[] parameters)
2626
{
2727
//load the application
28-
if (!RevitPythonShellApplication.applicationLoaded)
28+
if (!NavisPythonShellApplication.applicationLoaded)
2929
{
30-
RevitPythonShellApplication.OnLoaded();
30+
NavisPythonShellApplication.OnLoaded();
3131
}
3232

3333
var dialog = new ConfigureCommandsForm();

RevitPythonShell/ConfigureCommandsForm.Designer.cs renamed to NavisPythonShell/ConfigureCommandsForm.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Windows.Forms;
99
using System.IO;
1010

11-
namespace RevitPythonShell
11+
namespace NavisPythonShell
1212
{
1313
public partial class ConfigureCommandsForm : Form
1414
{
@@ -35,21 +35,21 @@ private void btnCancel_Click(object sender, EventArgs e)
3535
/// </summary>
3636
private void ConfigureCommandsForm_Load(object sender, EventArgs e)
3737
{
38-
_commands = RevitPythonShellApplication.GetCommands(
39-
RevitPythonShellApplication.GetSettings()).ToList();
38+
_commands = NavisPythonShellApplication.GetCommands(
39+
NavisPythonShellApplication.GetSettings()).ToList();
4040
lstCommands.DataSource = _commands;
4141

42-
_searchPaths = RevitPythonShellApplication.GetConfig().GetSearchPaths().ToList();
42+
_searchPaths = NavisPythonShellApplication.GetConfig().GetSearchPaths().ToList();
4343
lstSearchPaths.DataSource = _searchPaths;
4444

45-
_variables = RevitPythonShellApplication.GetConfig().GetVariables().AsEnumerable().ToList();
45+
_variables = NavisPythonShellApplication.GetConfig().GetVariables().AsEnumerable().ToList();
4646
lstVariables.DataSource = _variables;
4747
lstVariables.DisplayMember = "Key";
4848

49-
string initScriptPath = RevitPythonShellApplication.GetInitScriptPath();
49+
string initScriptPath = NavisPythonShellApplication.GetInitScriptPath();
5050
txtInitScript.Text = initScriptPath;
5151

52-
string startupScriptPath = RevitPythonShellApplication.GetStartupScriptPath();
52+
string startupScriptPath = NavisPythonShellApplication.GetStartupScriptPath();
5353
txtStartupScript.Text = startupScriptPath;
5454
}
5555

@@ -213,13 +213,13 @@ private void btnCommandMoveDown_Click(object sender, EventArgs e)
213213
lstCommands.SelectedIndex = newPosition;
214214
}
215215

216-
216+
217217
/// <summary>
218-
/// Save changes to RevitPythonShell.xml and close Dialog.
218+
/// Save changes to NavisPythonShell.xml and close Dialog.
219219
/// </summary>
220220
private void btnCommandSave_Click(object sender, EventArgs e)
221221
{
222-
RevitPythonShellApplication.WriteSettings(_commands, _searchPaths, _variables, txtInitScript.Text, txtStartupScript.Text);
222+
NavisPythonShellApplication.WriteSettings(_commands, _searchPaths, _variables, txtInitScript.Text, txtStartupScript.Text);
223223
Close();
224224
}
225225

File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Windows.Media;
1010
using PythonConsoleControl;
1111

12-
namespace RevitPythonShell
12+
namespace NavisPythonShell
1313
{
1414
public class ConsoleOptions
1515
{

0 commit comments

Comments
 (0)