ds.enovia.exchange 1.0.3

dotnet add package ds.enovia.exchange --version 1.0.3
NuGet\Install-Package ds.enovia.exchange -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ds.enovia.exchange" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ds.enovia.exchange --version 1.0.3
#r "nuget: ds.enovia.exchange, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ds.enovia.exchange as a Cake Addin
#addin nuget:?package=ds.enovia.exchange&version=1.0.3

// Install ds.enovia.exchange as a Cake Tool
#tool nuget:?package=ds.enovia.exchange&version=1.0.3

Enterprise IP Exchange C# SDK

ws3dx.exchange

This ws3dx.exchange demo exercises an C# SDK that accesses the 3DEXPERIENCE Enterprise IP Exchange web services. The current version focuses only on basic export functionality,

  • CreateExportJob
  • SubmitExportJob
  • GetExportJob

CreateExportJob

  • Exercises the creation of an Export Job.

	TypedUriIdentifier id = new TypedUriIdentifier();
	id.Type = "VPMReference";
	id.Source = m_serviceUrl;
	id.RelativePath = $"/resource/v1/dseng/VPMReference/{rootEngItemId}";
	id.Identifier = rootEngItemId;

	EngineeringDomainExportParameter engExportParam = new EngineeringDomainExportParameter(); ;
	engExportParam.ExpandDepth = "0"; //-1 expand everything

	NewExportJob newExportJob = new NewExportJob();
	newExportJob.Title = "ERP Export test";

	newExportJob.Objects = new List<object> {
		id
	};

	 newExportJob.Parameters = new List<object> {
		engExportParam
	 };

     ExportJobRef? newJobRef = await service.CreateExportJob(newExportJob);
	 

SubmitExportJob

  • Submits a previously created export job (see previous step)

	if (!await service.SubmitExportJob(newJobRef.Identifier))
	{
		//TODO: Handle error
		return;
	}
	 

GetExportJob

  • Gets the status of a previously submitted job (see previous step)

	DateTime pollingStart = DateTime.Now;

	ExportJob exportJob = null;

	do
	{

		if (DateTime.Now > pollingStart.AddSeconds(timeoutSecs))
		{
		   timeOutRaised = true;
		   break;
		}

		Thread.Sleep(pollingIntervalSecs * 1000);

		exportJob = await service.GetExportJob(newJobRef.Identifier);

	}
	while ((exportJob != null) && (!exportJob.HasCompleted));
	 

License

MIT

Disclaimer

This is only a demo product and it is NOT an official Dassault Systèmes product. It aims to demonstrate a possible way to build an SDK for C# that accesses the 3DEXPERIENCE web services. This demo is provided under the MIT license and any partner can take its source code and extend it to their own products always within the boundaries and constraints of the given license.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 248 11/16/2023

Updates on HasSucceeded and HasCompleted attributes of ExportJob