I’m using the attached BOM Sorting macro to sort the BOMs in my drawing. The macro works perfectly for smaller sized BOMs but give inconsistent results when using with a BOM of large assembly (100 + rows). Anyone has faced similar issues? If yes where you able to find any solution or workaround?
Unfortunately I can not share the files.
Thank you in advance for any help.
BOM SORTING.swp
What a coincidence, I ran into the exact same problem last week. I have also written a macro to sort the parts list, and also with me the sorting results were partly not correct.
However, for me it was not dependent on the number of lines in the BOM, but on the type of BOM used.
With the type “only parts” it worked correctly. With the type “top level only” the sorting was not usable.
My VAR gave me great support in solving the problem.
He found out that a missing setting in my templates triggered the problem.
I used the following command in the macro to set the missing setting in the template:
Manually sorting is working prefect every time with same settings. And this macro works perfect on small top level BOMs but give incorrect results when used on a large assembly BOM.
I’ve tried changing literal to numeric but macro still doesn’t work.