隱藏目錄

Using Serial Numbers to Automatically Name Files

You can create new files and automatically name them using serial numbers.

This example describes the use of a serial number to name new part files.

To use a serial number to automatically name a file:

  1. Create the following serial number:

    Name Type Partnumber.
    Type Select Serial number from string.
    Format string
    • Static text: Type P-.
    • Dynamic text : Select Counter Value > 00001.
    Next counter value Type 1000.

  2. Create a Templates folder in the vault.
  3. Add an empty .sldprt file to the folder and check it in.

    You will use this file as the template source file.

  4. Right-click Templates and click New Template.

    See Creating Templates.

  5. On the template wizard Template Name page, name the template Create new part.
  6. On the template wizard Files and Folders page, click Template Variables.
  7. In the Organize Template Variables dialog box, create the following template variable:

    Name Type partnumber.
    Type Select Serial number.
    Serial number Select Partnumber (created in step 1).

  8. Click New File .
  9. In the Select Template dialog box, navigate to the location of the .sldprt file, select it, and click Open.
  10. In the New File dialog box, select the file name (without the extension), click , and select the template variable partnumber that you created in step 7.

    The template variable, which uses the serial number created in step 1, replaces the file name. The new file name reads %partnumber%.sldprt.

  11. Complete the template wizard. On the template wizard Users and Groups page, assign the template to the user you are currently logged in as.
  12. To test the new part template, browse into the vault, right-click, and select New > Create new part.

    A new part file is created, using the serial number as the file name.



提供對此主題的意見反應

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

* 必要的

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

列印主題

選擇要列印的內容範圍:

x

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

 不要再次顯示此訊息
x

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

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

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