3MFConsortium / lib3mf

lib3mf is an implementation of the 3D Manufacturing Format file standard
http://3mf.io
BSD 2-Clause "Simplified" License
228 stars 92 forks source link

Duplicate ResourceID Exception when using AddBaseMaterialGroup #355

Closed jdegenstein closed 2 weeks ago

jdegenstein commented 5 months ago

When I simply use AddBaseMaterialGroup on a model, I am able to successfully export a 3MF file from lib3mf. When trying to import this same file with lib3mf I get an ELib3MFException: Lib3MFException 5: Duplicate Resource ID exception. Looking at the model XML file, the numbering of the material resource ID begins at 1. I am not able to see any other fields that are numbered with 1.

Using Microsoft 3D Builder, the numbering of this field appears to always start at 2.

This was tested on lib3mf==2.3.1 using the python bindings.