Soooo we made a small (but objectionable) typo in one of our drawing template. We probably will not go after each and every drawings to specifically correct this typo, but I figured that we should take advantage of any update to get that typo fixed.
Because this is part of the template, manually editing the template is very tedious.
I was wondering if I would be possible to write a Macro that would facilitate the process.
The typo is within the 6th Block. It is sometimes called Block6-1 etc... especially if there are several pages, or if pages were added and removed. There is no saying how many of these much be edited per file, but the typo is the same in everyone of them (The typo is: 'To be controled' -> 'To be controlled').
I did manage to get it to change it for a given Block, but iterating over all Block6-* has proven difficult. Sometimes Block6, Block6-4, Block6-5 are the block needing updating, which complicates looping for all values. But they all start with Block6.
Would anyone have any suggestion on how to iterate over all Blocks, check if they fit the Block6 or Block6-* name format and then change their content accordingly?
TIA!
SolidworksApi/macros