Hide Table of Contents

Programming Tasks

In SOLIDWORKS Enterprise 2009 and earlier, add-ins work only on single client machines:

  • A change-state hook calls the add-in on the machine where the change state command is executed.

        - or -

  • A menu command executes the add-in on the computer where the menu command is selected.

Although this is often desirable, there are times when you want to execute the add-in on different machines. SOLIDWORKS Enterprise PDM 2010 and later allow you to program tasks to execute add-ins on other machines.

A task consists of:

  • Add-in to execute.
  • Card, if any, to show when the task is launched.
  • User credentials to use to execute the add-in.
  • Computers on which to execute the add-in.
  • Optional scheduling of the add-in.
  • Credentials of users who have permission to run the add-in.
  • Error and success notifications.

You can read more about the task execution system in the SOLIDWORKS Enterprise PDM Help.

To program your own task:

  1. Write an add-in DLL that supports task execution.
  2. Add the add-in to the vault using the Administration tool.
  3. Enable execution of the add-in on one or more servers by selecting the Task Host Configuration command from the context-sensitive menu on the SOLIDWORKS Enterprise PDM icon in the task bar navigation area (system tray).
  4. Right-click the tasks node in the Administration tool and select New Task from the menu.
  5. Select your add-in in the task wizard.
  6. Select other options in the task wizard.

The task is executed in one of the following ways:

  • A task definition spawns task instances according to a defined schedule.
  • A workflow change state action executes the task.
  • Start the Administration tool, expland Tasks, double-click Task List, and click Add Task.
  • Right-click a file vault view and select the task on the context-sensitive menu.

Using the Standard Task Add-in

You do not need to program your own task add-in if you only need to open files in SOLIDWORKS and execute scripts on them. To do that, use the standard task add-in that is shipped with SOLIDWORKS Enterprise PDM.

Code Samples 

Interfaces

Structures and Constants



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Programming Tasks
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2015 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.