Hide Table of Contents

Creating a New Task

If you use the Enterprise PDM API to create a task add-in, you add the task to the Tasks node by creating a new task.

When you create the task, its Properties dialog box acts as a wizard, prompting you for task information. The task type you choose determines additional options you can configure after you save the new task, such as conversion options or printer settings.

The options described here are based on the SWTaskAddIn add-in that is provided by SOLIDWORKS Enterprise PDM.

To create a new task:

  1. Right-click Tasks and click New Task.
  2. On the Add-in screen of the task's Properties dialog box:
    1. Type the task name.
    2. For Add-in, select the task add-in you installed using the Add-in node.

      When you select the add-in, additional options are displayed in the left pane.

    3. If you created a card for the task, select it from Input card.
    4. If you want a specific user to execute the task, select the user name and password.

      The default is to allow the currently logged-in user to execute the task.

    5. Optionally, configure the retry behavior if the task fails.
    6. Click Next.
  3. On the Execution Method page:
    1. Select how a computer is selected to execute the task when it is initiated.
    2. Select the computers that can be used for the task.

      For a computer to be available for selection, it must be enabled for task execution. See Permitting Task Execution.

      If you do not see a recently added computer, click Refresh List.

    3. Click Next.
  4. On the Menu Command page, if you want the task to appear in the File Explorer right-click menu:
    1. Select Display a menu command in the File Explorer for this task.
    2. Type the command name.
    3. Type the text to display in the File Explorer window status bar.
  5. On the Script page:
    1. View the task add-in script and, if needed, select a macro to insert such as the source file name and extension.

      See Inserting Macros in SOLIDWORKS Task Add-in Scripts.

    2. Select the SOLIDWORKS version to use.
    3. Select the Task user interface type, which controls the configurable options that are available after you save the task.
    4. Click Next.

    After you save the task, you can edit this information using the Advanced Scripting Options dialog box, accessed from the Files page of the task's Properties dialog box.

  6. On the Permissions page, select the users and groups with permission to start the task, and click Next.
  7. On the Success Notification page:
    1. Select the users and groups to be notified if the task succeeds.
    2. Type the subject and text of the success notification.
    3. Click Next.
  8. On the Error Notification page:
    1. Select the users and groups to be notified if the task fails.
    2. Type the subject and text of the failure notification.
    3. Specify the number of times to resend the message if the notification fails and the time between resends.
    4. Click OK.

    The new task appears in the Tasks node.



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:   Creating a New Task
*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: SOLIDWORKS PDM 2014 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.