How to work with DatasmithCADWorker?

In that case that is the last point I mentioned, to make an exporter for solid edge.
you can use the doc and look at the code of some of the exporters your referenced.

But basically how those plugins work is that since they are embedded in the DCC application, it uses the CAD application library to extract the primitives from the scene: geometries, nurbs, materials, product tree, metadata and convert those to udatasmith using the SDK. None of these plugins works by exporting a file in the native DCC format and then converting it to udatasmith.

So you have 3 solutions none fully satisfying:

  1. Datasmith exporter route that you are evaluating. Can be nice, give you runtime import, direct link etc. But require you to write a solid edge plugin that will use solidedge sdk to get primitives from solidedge and convert that to udatasmith

  2. Use a UE application to read CAD file, create asset, then cook the generated assets so that you get “cooked asset” or pak file that you can then load directly at runtime. Cooked asset will need to be recooked if you change the UE version that the application uses

  3. We are working to add CAD load at runtime, but it is very experimental and will stay so for months.

1 Like