An existing tool in SOLIDWORKS installation folder (SOLIDWORKS\Toolbox\data utilities) called sldsetdocprop.exe can turn off the toolbox flag on a toolbox part making a regular part document.
I wonder if there is an API call that can do this? If not, can this be automated in any other way ?
I know I can do this with Microsoft.UIAutomation but I’m not too keen on that doing if there is an easier way…
(Image Credit: Go Engineer)