Hi-
I am trying to write a stand-alone application (ASP .NET service) that uses data to fill in a template and execute it.
I have found the Run and RunEx examples but they show the template card and need someone to click to execute. Is there a way to do this without showing the card or some other way to accomplish the purpose of doing what a template does without user interaction?
Thanks,
Tom.
SolidworksApi macros
Hi Tom,
Run and RunEx launch templates as if a user did the same action. If the template has a card, it will display as you've seen already. The alternative would be to use the Windows and PDM API to copy new files and create folders without using a template.
Mike
Hi Michael-
I was afraid of that. It takes control away from the engineers who would be maintaining the templates.
Would it be possible to programmatically read out a template's Files and Folders settings in order to execute the corresponding API functions to accomplish the same result as executing the template?
Tom.
Unfortunately not. There aren't API calls to access the configuration of the template itself for file and folder paths.
Mike