Macro for calc all components count in assembly

Hi all

This macro for calc quantity all component count (in all assembly and subassembly of current assembly) and write count value in User defined Custom Property part or assembly.

User can export list in Notepad or Excel

Components Count EN v0.8.zip (118.6 KB)

2 Likes

Hi, Jtok.
This macro has a strange behavior. Every time I use it, a message appears asking me to save the macro as edited. Any ideas?

Maybe you open vba macroeditor and change something when work with this macro?

And name of macro “Component_count_EN.swp”, not “Component_count.swp“

This may happen once when the macro replaces the referenced libraries with the correct SW version in the references.

Anyway, macro do not modify self.

Does this macro works differently than what @josh had made several years ago? https://forum.solidworks.com/thread/50568

Nope… It’s @artem 's code.

Josh, you right