Skip to content

Conversation

@markstor
Copy link

@markstor markstor commented Oct 22, 2025

Handle build items' partnumber attribute on both load and export functions

Now the node names won't have unique id suffix, only an integer will be added when needed. The partnumbers will be the node names in the Scene graph, if it's better to store them separately please let me know.

While testing part number preservation, I found that the Scene class cannot keep the hierarchy of 3MF files containing multiple instances of composite parts. That’s the reason we flatten the graph during loading, isn’t it?
As a result, build items that reference composite objects are expanded into their components, causing the original part numbers to be lost and new ones to be added.

It would be cool to be able to replicate the original hierarchy, but I haven't found an easy way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant