Skrýt obsah

Using a Serial Number as a Default Value

This example shows how to use a serial number to create a default value for a part number variable.

See Assigning Default Values.

To use a serial number as a default value:

  1. In the Administration tool, right-click Serial Numbers and select New Serial Number.
  2. In the Serial Number Editor:
    1. For Name, type PartNumber.
    2. For Type, select Serial number from string.
    3. For Format string, type any static text, such as PN, and select a counter value.
    4. Click OK.
  3. Double-click Cards.
  4. In the Card Editor, select Edit > Variables.
  5. In the Edit Variables dialog box, under Selected variable, type the variable name Part Number.
  6. Under Selected Attributes:
    1. For Block name, select CustomProperty.
    2. For Attribute name, type Part Number.
    3. For file extensions, select the file types to use the part number variable.
  7. Click OK.
  8. Open the data card that is associated with the file types.
  9. Add a control that uses a variable.
  10. In the control's property pane:
    1. Under Value, for Variable name select Part Number.
    2. Under Default value, select Serial Number.
    3. To ensure that a serial number is always generated, select Default overwrites.
  11. Click Save or select File > Save.
When a user adds a new file of the type associated with the data card, the Part Number variable is updated with the next available serial number.

The file's mapped property is also updated with the default value.

If you do not select Default overwrites and the variable is mapped to a file property with an existing value, the existing value is used. To generate a serial number for such files, right-click the control in the data card and select Generate next serial number. The variable and file property are updated.


Vyjádřete svůj názor na toto téma

SOLIDWORKS uvítá vaše názory ohledně prezentace, přesnosti a obsahu dokumentace. Pomocí níže uvedeného formuláře zašlete komentáře a doporučení k tomuto tématu přímo dokumentačnímu týmu. Dokumentační tým nebude odpovídat na otázky související s technickou podporou. Klepnutím zde získáte informace o technické podpoře.

* Povinné

 
*Email:  
Předmět:   Váš názor na témata nápovědy
Stránka:   Using a Serial Number as a Default Value
*Komentář:  
*   Prohlašuji, že jsem si přečetl/a a souhlasím se zásadami ochrany osobních údajů, podle kterých bude společnost Dassault Systèmes zpracovávat moje osobní údaje

Tisk tématu

Zvolte rozsah, který se má tisknout:

x

Zjistili jsme, že používáte starší verzi prohlížeče než je Internet Explorer 7. Pro optimální zobrazení vám doporučujeme, aby jste upgradovali na Internet Explorer 7 nebo novější.

 Příště tuto zprávu nezobrazovat
x

Verze nápovědy na webu: SOLIDWORKS PDM 2012 SP05

Chcete-li vypnout webovou nápovědu v rámci SOLIDWORKS a raději používat místní nápovědu, klikněte na Nápověda > Použít SOLIDWORKS nápovědu na webu.

Problémy s uživatelským rozhraním a vyhledáváním v nápovědě na webu nahlaste zástupci místní technické podpory. Zašlete váš názor na individuální témata nápovědy prostřednictvím odkazu “Váš názor na toto téma” na každé straně.