隱藏目錄

Using an Input Formula

An input formula lets you populate an edit box control with a string built up by values from variables linked to other controls on the data card.

To use an input formula, you create one or more list controls and an edit box control. The edit box control contains an input formula that is mapped to the variables of the list controls.

This example describes how to use an input formula to create a project name in a template card field.

To create the input formula:

  1. Create a new data card.
  2. For Card type, select Template Card.
  3. Add three list controls and link them to variables. For example:

    • City
    • Region
    • Code

  4. Add an edit box to hold the combined project name to be created by the input formula.
  5. In the Edit-box properties, under Input formula:
    1. Type a string (for example, Prj-). This static text does not change when the formula is evaluated.

      You can add static text at any point in the formula.

    2. Click to add the first list control variable (for example, City) to the formula.
    3. Build up the rest of the formula by adding additional variables (for example, Region and Code).

      To use a bigger input field, click .

  6. Save the card.
When a user completes the template card by selecting from the list controls, the project name is based on those selections because it is controlled by the input formula.

For example, if the user selects Stockholm from the City list, B from the Region list, and 112 from the Code list, the value of the Project Name edit box will be Prj-StockholmB112.



提供對此主題的意見反應

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

* 必要的

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

列印主題

選擇要列印的內容範圍:

x

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

 不要再次顯示此訊息
x

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

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

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