Export master data and bom list as XML-File

Hello everyone,

I am looking for a solution to automatically export (via workflow) master data for components and, if available, bom list as an XML file.

In my first attempt, I tried using an export rule in the workflow. I first tried it with the Solidworks BOM, but we are missing quite a few values from the master data.

In my second attempt, I tried the computed parts list, which allows me to specify how variables are output, but the position number and quantity are missing.

This is also not what I’m looking for.

I have already researched whether there is a solution as a task, but have not found anything suitable yet.

Does anyone have any ideas on how to export master data and parts lists with all the required content?

Since the CAD BOM and computed BOM aren’t sufficient, you may have to step into the world of PDM add-ins.

We had the same issue. It required a custom add-in as Jim mentioned. Now BOMs auto upload when they’re approved in PDM. It’s pretty nice!

There are companies out there that write customizable tools but I’ve not seen any that look like they’d work, at least for my application.

I was afraid it would come down to an add-in (again).
We’re already using an add-in. This add-in supports two-way communication between PDM and ERP. However, since we’ll only be transferring data from PDM to ERP in the future, and the add-in is relatively expensive and comes with an annual maintenance fee, plus the PDM is slowed down significantly by the add-in, we’re now looking for a solution that works with built-in tools.

Is it possible to call a standard SolidWorks macro from within a task? Because there is a ready-made macro for this in the SolidWorks documentation.
Or is it possible to insert the code for an SWX macro in the advanced script options for tasks?

It’s possible to execute code in a standard task add-in. You’d have to modify the code by clicking the Advanced Scripting button.

It’s frustrating to code and debug since it’s called in a different way than a macro, but may be possible.