Solidworks API help has example macros for 'Show All Components' and 'Only Show Selected Components' but on copying and pasting these into a macro they don't compile (something about the function statements). There's probably something simple stopping it from working, could anyone more familiar...