Ok, so I feel dumb asking, but I'm starting with the example code here <http://help.solidworks.com/2010/English/api/sldworksapi/show_all_components_example_vb.htm> and when I copy/paste that into the Macro Editor in SW2010 it doesn't run. It give's me red text and compile errors when it gets to:
Sub SetCompVisib _
( _
swComp As SldWorks.Component2, _
sPadStr As String _
)
What am I doing wrong here? To be honest, I'm just now taking the time to start playing with the guts of macros rather than just asking "hey, anyone know where I can find one that does [something]". Thanks in advance.
SolidworksApi macros