隱藏目錄

Example: Creating a Project Template Using a Template Card

In this example, you use a template card to specify the customer name and project name for a new project.

To create a project template using a template card:

  1. In the Card Editor, select File > New.
  2. In the Card properties pane, for Card Type, select Template Card.
  3. Add a combo box control with customer names.
  4. Add an edit box control for the project name.
  5. Link the controls to new or existing variables.

    To make sure an card field cannot be left blank by a user, click Variables. In the Edit Variables dialog box, beside the variable name, click Mandatory values.

  6. Click File > Save As to save the card as a new template card.
  7. Right-click Templates and select New Template.
  8. To name the template, for Menu string, type Create Project.
  9. In the left pane, click Template Cards.
  10. Click Add Card and select the new template card.
  11. To map the template input fields to template variables, click Template Variable.
  12. In the Organize Template Variables dialog box, click New.
  13. Under Selected Variable:
    1. Type a name (for example, Customer).

      For clarity, the name can match the card variable name, but it does not have to.

    2. For Type, select any type.

      The recommended type is Format string.

  14. Repeat steps 12 and 13 to create a second template variable (for example, Project).
  15. Click OK.
  16. Under Variables to copy for selected card, select a Card Variable to copy the value from and use the Template Variable list to select a template variable to copy the value to.

    For example, for the template card variable Customer name select the template variable Customer.

  17. Click Next.
  18. On the Files and Folders screen of the Template wizard, define the folders to be created for the project template structure.

    For example, click to set the template to create new folders under a template root folder called Projects. Click to add a first level subfolder and assign the name from the template variable Customer (that is, %Customer%). Click again to add a second level subfolder and assign the name from the template variable Project (%Project%).

  19. If you have a folder card, right-click a folder and select Properties to use the template card values to update the card in the folders created by the template.
  20. In the folder's Properties dialog box, on the Copy Variables tab, select a template variable and the folder card variable that should be updated.
  21. Click Next.
  22. On the Icon screen, select an icon to represent the template and click Next.
  23. On the Users and Groups screen , assign the template to users and groups. Be sure to include the user you are logged in as.
  24. Click Finish.
  25. To test the template, in Windows Explorer, right-click in the Project directory you specified in step 18 and select New > Create Project .

    The template card assigned to the template is displayed to let you specify the customer name and project name that should be used in creating the project structure.

    When the project template is finished, a new project folder structure has been created and the folder card has been updated, using the information from the template card.



提供對此主題的意見反應

SOLIDWORKS 歡迎您提供有關於文件呈現方式、正確性、及完整性的意見反應。請使用下方的表格直接將您對此主題的意見與建議傳送給我們的文件團隊。文件團隊並無法回答關於技術支援的問題。按一下此處來獲得關於技術支援的資訊

* 必要的

 
*電子郵件:  
主旨:   說明主題的意見反應
頁面:   Example: Creating a Project Template Using a Template Card
*意見:  
*   我承認已閱讀且僅此接受隱私權政策,Dassault Systèmes 將遵循此政策之規定使用我的個人資料

列印主題

選擇要列印的內容範圍:

x

偵測到您使用的瀏覽器版本是舊於 Internet Explorer 7。要獲得最佳的顯示,建議您升級瀏覽器到 Internet Explorer 7 或更新的版本。

 不要再次顯示此訊息
x

Web 式說明內容版本:SOLIDWORKS PDM 2014 SP05

要從 SOLIDWORKS 中停用 Web 式的說明並改用本機說明,請按一下說明 > 使用 SOLIDWORKS Web 式說明

要報告在 Web 式說明介面及搜尋中遇到的問題,請聯絡您當地的技術支援代表。要針對個別說明主題提供意見反應,請使用個別主題頁面中的「提供對此主題的意見反應」連結。