Forum Discussion
Let me rewrite,
I have an XML file that contains Part properties and their BOM structure. The XML follows a bottom-up approach, where all child parts are defined first, followed by their parent assemblies.
When processing this data using the Aras IOM object model, it takes approximately 16–17 minutes to create an assembly consisting of 111 parts in Aras Innovator.
The structure is as follows:
1. Part
Part properties
STEP (STP) files
2. Assembly Part
Part properties
STEP (STP) file
PDF file
3. BOM
BOM creation involves adding or updating relationships between the assembly and its child parts
The processing is currently done sequentially to allow error logging if any issue occurs.
Could you please advise on how to improve performance when processing large assemblies like this?
Thank in advance.
- little_legend1 month agoCreator II
Hello,
You could try to combine the queries which should create/update the data. Even if you start from the children, it would be possible to combine the queries. So at the end you will have one large query, which will be executed once.
I don't know how familiar you are with the API, but you can use addRelationship/createRelationship, createRelatedItem, setRelatedItem to build up the query, and especially the different relationships. There should be enough information here in the forum, or if you try to search directly in the API documentation.
Let me know if you have any questions or concerns.
Regards