隱藏目錄

Set variables Dialog Box

Use the Set variables dialog to define Enterprise PDM Dispatch variables that evaluate when a Dispatch action runs.

To display this dialog box:

Click Variables in the Edit Action dialog box or select Userdefined Variables > New Variable.

Use variables in your scripts to store and manipulate values. You might find it useful to store the name of the selected file or the value of a file's data card, for example. You can build variables by combining predefined variables or user-defined variables. For example, if a variable Release is set to %Number%_%Rev%.pdf, the value of Release is derived by evaluating the variables Number and Rev. For example, if Number is 4 and Rev is 2, then Release is set to 4_2.pdf.

Variables are formatted as strings with the variable name enclosed in "%" signs. For example, "%PathToSelectedFile%" evaluates to the path and filename of the currently selected file when the Dispatch action runs.

The Set variable dialog prompts you with specific fields depending upon the types of the variables you are creating. For example, if you create a new variable of type Static string, a text field labeled Value prompts you for the string value.

Variables

Lists the name and information for all user-defined variables.

Add

Click to add a new user-defined variable.

Remove

Click to remove an existing user-defined variable.

Name

Specifies the name for the user-defined variable. This variable name is then referred to by enclosing it between "%" signs, for example, %VersionValue%.

The name you specify must not duplicate predefined file variables.

Type

Lets you select the type of variable to be used. Depending on the selected type, different option fields display to further specify the type.

Value

Enter a value for the variable. Click right arrow to select predefined string functions, arithmetic functions, and variables.



提供對此主題的意見反應

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

* 必要的

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

列印主題

選擇要列印的內容範圍:

x

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

 不要再次顯示此訊息
x

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

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

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