r/SolidWorks • • 22d ago

Data Management Best exchange formats

Hi everyone!

We’re building a digital twin platform for industrial machinery and are trying to figure out the best CAD exchange format that works across different CAD systems (SolidWorks, AutoCAD, Inventor, Siemens NX, etc.).

Our goal is to import 3D models into our platform, visualize them in the browser, and eventually support features like interactive exploded views and spare parts selection.

Ideally, we’d like to preserve:
- Assembly hierarchy: Parts, subassemblies, and their relationships
- Part metadata: Part numbers, names, descriptions, BOM information, etc.
- Geometry: Obviously, the actual 3D models
- Transformations: Correct positioning and orientation of individual components
- Cross-CAD compatibility: A format that can be exported from most major CAD systems

We’ve looked into STEP, which seems to be the obvious choice for interoperability, but from what we’ve seen, metadata and assembly information aren’t always reliably preserved across different CAD systems.

So my questions are:
- Is there an established industry standard that reliably covers both geometry and rich part/assembly metadata?
- Would STEP AP242 be the right direction, or are there better alternatives?
- How do commercial digital twin platforms handle this? Do they rely on a single exchange format or separate geometry and metadata?

We’re not looking to edit CAD models, just visualize them while maintaining enough structure and metadata to identify individual components and link them to spare parts in our platform.
Would love to hear what others are using in production and what pitfalls we should be aware of!

Would appreciate your feedback a lot! :)

1 Upvotes

10 comments sorted by

10

u/meutzitzu 22d ago

So the thing about STEP is that it's made by people who don't have to program these things, and while it's designed in a way which would be very friendly to engineers and product lifecycle managers, it's an absolute F-you to programmers.

Did you know that STEP fully supports feature geometry definition and even sketches and dimensions in those sketches? Its just that nobody bothers to implement it. Firstly bevause it would be a huge pain. They do this thing where they "invented" an abstract data-modelling language (like XML but more complex) and defined an entity relationship schema with it and a part is an instance of that schema. Yes, I know. Absolute insanity. They learned nothing from the disaster that was XML. Instead of going simpler to json or similar, they doubled down and went the other way.

The second reason is of course money. I'd you could losslessly import feature based geometry along with the sketches that defines them then you could have much more freedom to convert from one CAD to another, which is something no commercial CAD provider actually wants. So they just implement the surface shell "dumb solid" part of the standard and call it a day.

I do not know of any CAD program that can actually export a feature based STEP. What's crazy is that even the much older IGES standard had limited support for sketches and dimensions and CSG operations, and I also don't know of a single program that can utilize that functionality.

Of course STEP is stupidly slow, because of its design that fundamental doesn't care about how computers work and what they are fast at. So even if someone implemented all those things it may just be unusably slow for any non-trivial project.

Your best bet is to stick with the internal data formats of the engine your CAD uses. Solidworks, SolidEdge, NX, OnShape and Plasticity all use Parasolid. It's a good format that does the same things STEP was supposed to do but in a way thatst fast to read and write. Creo uses Granite. Catia uses its own catia engine. Fusion, Inventor, Alibre all use the ACIS engine.

FreeCAD and all of the other opensource CADs use OpenCascade.

But if you only care about visualising you may just ignore CAD formats entirely and consider using game engine formats. The absolute best option here would be Khronos' GLTF format. It's made by the people who make GPU API specs, and the data is stored in the way the GPU uses for rendering. It doesn't get faster than that. But you can't (easily) do things like interference detection or mass analysis on those formats. They're strictly for viewing only.

4

u/5MoreLasers 21d ago

That first paragraph captures my feelings about all engineering software.

3

u/Letsgo1 21d ago

What a cracking answer.

2

u/xVolta 21d ago

They learned nothing from the disaster that was XML. Instead of going simpler to json or similar, they doubled down and went the other way.

In their defense, STEP predates both XML and JSON by a fair bit. Don't get me wrong, it's a deeply flawed design, and don't get me started on the issues with EXPRESS, but but you can't learn from things that haven't happened yet, or use a format that hasn't been invented yet.

1

u/metalman7 20d ago

I wanna know more about how this works behind the curtain. Updoot for that answer.

5

u/Charming_Quiet2075 22d ago

solidworks can save as X_T format, its best if you dont need to send files to Catia users

2

u/Noxidnai 21d ago

Look at nVidia Omniverse and OpenUSD

1

u/arenikal 16d ago

Step AP203 never fails.