Skip to content

Commit

Permalink
Merge pull request #14 from koechlm/2025.1.0.0
Browse files Browse the repository at this point in the history
2025.1.0.0
  • Loading branch information
koechlm authored Oct 17, 2024
2 parents 9acb32b + 2cce297 commit a322e97
Show file tree
Hide file tree
Showing 12 changed files with 359 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,22 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>SDK Refs\Autodesk.Navisworks.Automation.dll</HintPath>
</Reference>
<Reference Include="Autodesk.Navisworks.Controls, Version=21.0.0.0, Culture=neutral, PublicKeyToken=d85e58fa5af9b484, processorArchitecture=AMD64">
<Reference Include="Autodesk.Navisworks.Controls, Version=22.0.0.0, Culture=neutral, PublicKeyToken=d85e58fa5af9b484, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion>
<HintPath>SDK Refs\Autodesk.Navisworks.Controls.dll</HintPath>
</Reference>
<Reference Include="Autodesk.Navisworks.Resolver, Version=22.0.0.0, Culture=neutral, PublicKeyToken=d85e58fa5af9b484, processorArchitecture=AMD64">
<SpecificVersion>False</SpecificVersion>
<HintPath>SDK Refs\Autodesk.Navisworks.Resolver.dll</HintPath>
</Reference>
<Reference Include="SolidWorks.Interop.sldworks">
<HintPath>SDK Refs\SolidWorks.Interop.sldworks.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="SolidWorks.Interop.swconst">
<HintPath>SDK Refs\SolidWorks.Interop.swconst.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms" />
Expand Down
334 changes: 259 additions & 75 deletions Autodesk.VLTINVSRV.ExportSampleJob/JobExtension.cs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Autodesk.VLTINVSRV.ExportSampleJob/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2025.0.0.0")]
[assembly: AssemblyFileVersion("2025.0.0.0")]
[assembly: AssemblyVersion("2025.1.2.0")]
[assembly: AssemblyFileVersion("2025.1.2.0")]
4 changes: 2 additions & 2 deletions Autodesk.VLTINVSRV.ExportSampleJob/Settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<LogFileLocation>C:\Temp\</LogFileLocation>

<!-- Export File Format(s)-->
<!-- Supported Values/File Formats are: STP, JT, SMDXF, 3DDWG, 2DDWG, IMAGE, NWD -->
<!-- Supported Values/File Formats are: STP, JT, SMDXF, 3DDWG, 2DDWG, IMAGE, NWD, NWD+DWF, SLDDRW.PDF -->
<!-- Multiple Outputs per jobs are supported, list all required formats comma separated, e.g., STP, JT, SMDXF -->
<!-- To Export Sheet Metal Flatpattern SMDXF - NOTE: distinct category for sheet metal part required, if job handles parts and SM-parts-->
<ExportFormats>NWD</ExportFormats>
<ExportFormats>NWD+DWF,SLDDRW.PDF</ExportFormats>

<!--Sheet Metal Category Name-->
<SmCatDispName>Sheet Metal Part</SmCatDispName>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
using System;
using Autodesk.Navisworks.Api.Automation;

namespace NavisworksExportExample
{
class Program
{
static void Main(string[] args)
{
// Initialize the Navisworks Automation object
NavisworksApplication mNavisworksAutomation = new NavisworksApplication();

// Path to the document to open
string mDocPath = @"C:\path\to\your\file.nwd";
// Path to save the new Navisworks file
string mNWDName = @"C:\path\to\output\file.nwd";
// Path to save the export file
string mExportFilePath = @"C:\path\to\output\file";

// Condition to check for exporting format
string exportFormat = "DWF"; // Change this to the desired format

try
{
// Open the file with Navisworks; opening other file formats creates a new Navisworks file appending the import file
mNavisworksAutomation.OpenFile(mDocPath);

// Save the new Navisworks file
mNavisworksAutomation.SaveFile(mNWDName);

// Export to the desired format using the appropriate plugin
switch (exportFormat)
{
case "DWF":
mNavisworksAutomation.ExecuteAddInPlugin("NativeExportPluginAdaptor_LcDwfExporterPlugin_Export.Navisworks", mExportFilePath + ".dwf");
Console.WriteLine("Export to DWF successful!");
break;
case "FBX":
mNavisworksAutomation.ExecuteAddInPlugin("NativeExportPluginAdaptor_LcFbxExporterPlugin_Export.Navisworks", mExportFilePath + ".fbx");
Console.WriteLine("Export to FBX successful!");
break;
case "RVT":
mNavisworksAutomation.ExecuteAddInPlugin("NativeExportPluginAdaptor_LcRvtExporterPlugin_Export.Navisworks", mExportFilePath + ".rvt");
Console.WriteLine("Export to RVT successful!");
break;
// Add more cases for other formats as needed
default:
Console.WriteLine("Unsupported export format.");
break;
}
}
catch (Exception ex)
{
Console.WriteLine($"An error occurred: {ex.Message}");
}
finally
{
// Clean up the Navisworks Automation object
mNavisworksAutomation.Dispose();
}
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20801,6 +20801,30 @@ Returns the plugin, loads it if required
null if plugin failed to load
</returns>
</member>
<member name="T:Autodesk.Navisworks.Api.Plugins.HomeScreenError"></member>
<member name="M:Autodesk.Navisworks.Api.Plugins.HomeScreenError.#ctor"></member>
<member name="P:Autodesk.Navisworks.Api.Plugins.HomeScreenError.ErrorStatus"></member>
<member name="P:Autodesk.Navisworks.Api.Plugins.HomeScreenError.HttpStatusCode"></member>
<member name="T:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.Unknown"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.CertificateCommonNameIsIncorrect"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.CertificateExpired"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ClientCertificateContainsErrors"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.CertificateRevoked"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.CertificateIsInvalid"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ServerUnreachable"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.Timeout"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ErrorHttpInvalidServerResponse"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ConnectionAborted"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ConnectionReset"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.Disconnected"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.CannotConnect"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.HostNameNotResolved"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.OperationCanceled"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.RedirectFailed"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.UnexpectedError"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ValidAuthenticationCredentialsRequired"></member>
<member name="F:Autodesk.Navisworks.Api.Plugins.HomeScreenErrorStatus.ValidProxyAuthenticationRequired"></member>
<member name="T:Autodesk.Navisworks.Api.Plugins.HomeScreenExtensionPlugin">
<summary>
A plugin for implementing a home screen extension
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit a322e97

Please sign in to comment.