Skip to content

Commit 8956f9a

Browse files
committed
migrarted to Navisworks 2020
- Upgraded projects to Net Framework 4.7 - Minor cleanup of the projects files
1 parent 42ed840 commit 8956f9a

6 files changed

Lines changed: 21 additions & 18 deletions

File tree

NavisPythonShell.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.27004.2005
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.28803.202
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NavisPythonShell", "NavisPythonShell\NavisPythonShell.csproj", "{7E37F14E-D840-42F8-8CA6-90FFC5497972}"
77
ProjectSection(ProjectDependencies) = postProject

NavisPythonShell/NavisPythonShell.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
5050
</PropertyGroup>
5151
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
52-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
52+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
5353
<DefineConstants>DEBUG;TRACE</DefineConstants>
5454
<DebugType>Full</DebugType>
5555
</PropertyGroup>
@@ -71,7 +71,7 @@
7171
<Prefer32Bit />
7272
</PropertyGroup>
7373
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
74-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
74+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
7575
<DefineConstants>TRACE</DefineConstants>
7676
<DebugType>None</DebugType>
7777
</PropertyGroup>
@@ -87,9 +87,9 @@
8787
<BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
8888
</PropertyGroup>
8989
<ItemGroup>
90-
<Reference Include="Autodesk.Navisworks.Api, Version=12.0.1147.53, Culture=neutral, PublicKeyToken=d85e58fa5af9b484, processorArchitecture=AMD64">
91-
<SpecificVersion>False</SpecificVersion>
92-
<HintPath>..\RefrencedAssemblies\Autodesk.Navisworks.Api.dll</HintPath>
90+
<Reference Include="Autodesk.Navisworks.Api">
91+
<HintPath>C:\Program Files\Autodesk\Navisworks Manage 2020\Autodesk.Navisworks.Api.dll</HintPath>
92+
<Private>False</Private>
9393
</Reference>
9494
<Reference Include="ICSharpCode.AvalonEdit, Version=5.0.3.0, Culture=neutral, PublicKeyToken=9cc39be672370310, processorArchitecture=MSIL">
9595
<SpecificVersion>False</SpecificVersion>

NavisPythonShell/Properties/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

NpsRuntime/NpsRuntime.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
3030
</PropertyGroup>
3131
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
32-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
32+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
3333
<DefineConstants>DEBUG;TRACE</DefineConstants>
3434
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
3535
<DebugType>Full</DebugType>
@@ -49,7 +49,7 @@
4949
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
5050
</PropertyGroup>
5151
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
52-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
52+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
5353
<DefineConstants>TRACE</DefineConstants>
5454
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
5555
<DebugType>None</DebugType>
@@ -64,9 +64,10 @@
6464
<Prefer32Bit />
6565
</PropertyGroup>
6666
<ItemGroup>
67-
<Reference Include="Autodesk.Navisworks.Api, Version=12.0.1147.53, Culture=neutral, PublicKeyToken=d85e58fa5af9b484, processorArchitecture=AMD64">
67+
<Reference Include="Autodesk.Navisworks.Api">
6868
<SpecificVersion>False</SpecificVersion>
69-
<HintPath>..\RefrencedAssemblies\Autodesk.Navisworks.Api.dll</HintPath>
69+
<HintPath>C:\Program Files\Autodesk\Navisworks Manage 2020\Autodesk.Navisworks.Api.dll</HintPath>
70+
<Private>False</Private>
7071
</Reference>
7172
<Reference Include="ICSharpCode.AvalonEdit, Version=5.0.3.0, Culture=neutral, PublicKeyToken=9cc39be672370310, processorArchitecture=MSIL">
7273
<SpecificVersion>False</SpecificVersion>

PythonConsoleControl/PythonConsoleControl.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<OutputPath>bin\$(Configuration)\</OutputPath>
4343
</PropertyGroup>
4444
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
45-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
45+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
4646
<DebugType>Full</DebugType>
4747
<DefineConstants>DEBUG;TRACE</DefineConstants>
4848
<Optimize>False</Optimize>
@@ -166,7 +166,7 @@
166166
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
167167
</PropertyGroup>
168168
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
169-
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
169+
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
170170
<DebugType>None</DebugType>
171171
<DefineConstants>TRACE</DefineConstants>
172172
<Optimize>True</Optimize>

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ The biggest limitation is that you can't deploy DLLs with custom scripts at this
2222

2323
- Reference the version of "Autodesk.Navisworks.Api.dll" that you'd like to target.
2424
- Compile the solution.
25-
- Copy your build folder (usually ".\NavisPythonShell\RevitPythonShell\bin\$(Configuration)\ )to
26-
"%APPDATA%\Autodesk Navisworks Manage 2016\Plugins" (or whichever version of Navisworks you're targeting)
27-
25+
- Go to the "%APPDATA%\Autodesk Navisworks Manage 2020\" (or the version that you'd like to target)
26+
- If there is no "Plugins" foler, create it
27+
- In the "Plugins" folder create a "NavisPythonShell" folder
28+
- Copy the contents of the build folder (usually ".\NavisPythonShell\NavisPythonShell\bin\$(Configuration)\" ) to the "\Plugins\NavisPythonShell\" folder
29+
- The final plugin directory should be similar to "%APPDATA%\Autodesk Navisworks Manage 2020\Plugins\NavisPythonShell"
2830
OR
2931

3032
- Download a valid [release zip](https://github.com/dimven/NavisPythonShell/releases) for your version of Navisworks.
31-
- Extract the zip to "%APPDATA%\Autodesk Navisworks Manage 2016\Plugins" (or whichever version of Navisworks you're targeting)
33+
- Extract the zip to "%APPDATA%\Autodesk Navisworks Manage 2020\Plugins" (or whichever version of Navisworks you're targeting)
3234

3335
## Contribute
3436

0 commit comments

Comments
 (0)