Macro to clean all virtual custome properties in an assembly

Hi everyone,
I’m looking for a macro in Solidworks VBA which will run the following actions :

  • scan all child of an already opened assembly
  • if the child filename has the character “^” , open this file
  • delete all custom properties of this file
  • save and close the file
  • go to the next child in the assembly.
    If the child file is an assembly, a new loop should start on his own childs.

Thanks in advance for any proposition.

Is this post related to https://www.cadoverflow.com/t/clean-all-properties-from-a-virtual/617?u=alexandre ?

Every component turned to virtual one gets the “^” character.

1 Like

Yep , my other post was to ask if there was a Solidworks native solution to clean the properties automatically without going through a macro that has to be run manually !
Thanks for your answer on the other post though :slight_smile: