Is there a way to run a specific dispatch through a button on a folder data card?
I know buttons can run add-ins, but can I point it to a specific dispatch in the dispatch add-in?
If yes, what would be the syntax?
If no, is there a way to go around this?
The easiest method is to use a dedicated transition in a workflow.
If you would like to use the button, you need to create an addin with an hook dedicated to card button.
AddHook with EdmCmd_CardButton.
2015 SolidWorks API Help - AddHook Method (IEdmCmdMgr5)
After, in the OnCmd function, you can run your function if the button is yours.
Retrieving data ...