I feel like this should be a simple macro but for me it has been difficult.
I want a macro to uncheck the Secondary Configuration Name and Tertiary Display State name settings within an assembly. I am not trying to change anything regarding the individual components within the assembly.
Here is how I do this manually:
- Open Solidworks assembly.
- Right click the top level assembly in the component tree and select 'Component Name and Description...'.
- Within the 'Component Name and Description' pop up window unselect the (secondary) 'Configuration Name'.
- Within the 'Component Name and Description' pop up window unselect the (tertiary) 'Display State Name'.
- Click the 'OK' button to close the pop up window.
I tried using 'Record macro' but the macro didn't have the uncheck code in it. I guess it couldn't record that?
I tried using Gemini, ChatGPT and Co-pilot AI prompts to auto-generate the code about 50 times each but there would always be an error of various types preventing the code from running. I do not know how to correct the code but I would ask AI to correct the code by describing the error and that didn't work either.
I've searched Google and the Solidworks forum but I'm not finding anything similar.
Can anyone help me with this?