Files
UnrealEngineUWP/Engine/Source/Programs/Enterprise/Datasmith/DatasmithSolidworksExporter
JeanLuc Corenthin 33689a5341 Fixed crash on sync on all exporters.
- Root cause: In cl 17646035, the value of bBuildWithEditorOnlyData in the different Target.cs failes was changed from true to false. Doing so implies the use of the wrong BulkData on which the Datasmith mesh serialization is relying on and generates the crash.
  - Solution: Move bBuildWithEditorOnlyData  back to true.
Note the reason why the change was made in the first place has not been found yet.

#jira UE-145285
#rb none
#preflight 6228d36e0d5a90e98ec5719b

[CL 19322125 by JeanLuc Corenthin in ue5-main branch]
2022-03-09 12:23:38 -05:00
..

1) You need to have a licensed version of Solidworks to build this plugin

The solidowrks DLLs needed are the following:
SolidWorks.Interop.sldworks.dll
SolidWorks.Interop.swcommands.dll
SolidWorks.Interop.swconst.dll
SolidWorks.Interop.swmotionstudy.dll
SolidWorks.Interop.swpublished.dll
solidworkstools.dll

2) Build the DatasmithSolidorks project

3) Signing
[TBD]

4) Find the installer executable in

Engine\Source\Programs\Enterprise\Datasmith\DatasmithSolidworksExporter\Installer\bin\Release\en-us

5) The installer procedure will create a folder in the predefined binaries directory:

Engine\Binaries\Win64\Solidworks

This directory should contain the final compiled installer, but at the time of this writing it will receive the compiled DLL instead (which is useless).

6) Modifying the project

Unreal is unaware of changes to the project. If files are added or removed from the Private folder, run generateprojectfiles.bat to update the Solution, but don't forget to manually modify the C# project as well
Engine\Source\Programs\Enterprise\Datasmith\DatasmithSolidworksExporter\DatasmithSolidworks\DatasmithSolidworks.csproj

Because Unreal is unaware of changes to these files (the C# build is not part of BuildTool's C++ based building process), you may have to invalidate the build by manually removing the following folders:
Engine\Binaries\Win64\Solidworks
Engine\Intermediate\Build\Win64\DatasmithSolidworks

7) VERSION
To change the version, modify the two relevant version properties properties in file
Engine\Source\Programs\Enterprise\Datasmith\DatasmithSolidworksExporter\DatasmithSolidworks\Properties\AssemblyInfo.cs