목차 숨기기

Creating Variables for Dispatch Scripts

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

You can create variables for use in your Dispatch scripts and in graphical elements you create for your scripts:

  1. Access the Set variables dialog by clicking Variables in the Edit Action dialog or by clicking right arrow in Dispatch dialogs.
  2. Click Add to create a new variable.
  3. From the Name field, select the newly added variable and type a name.
  4. From the Type drop-down field, select a data type:

    Option

    Description

    Current configuration

    %CurrentConfig%

    Example: @

    Current folder path

    %CurrentFolderPath%

    Example: C:\VaultProjA\FolderA

    Current revision of selected file(s)

    %CurrentRevisionOfFile%

    Example: A

    Current version of selected file(s)

    %CurrentVersionOfFile%

    Example: 4

    Directory of selected file(s)

    %DirOfSelectedFile%

    Example: C:\VaultProjA\FolderA

    Name of current folder

    %NameOfCurrentFolder%

    Example: FolderA

    Name of current vault

    %NameOfCurrentVault%

    Example: VaultProjA

    Name of logged-in user

    %NameOfLoggedInUser%

    Example: Admin

    Name of selected file(s)

    %NameOfSelectedFile%

    Example: 89-NOAO-4200-1234.sldprt

    Name of user who created selected file(s)

    %NameOfUserCreatedFile%

    Example: Admin

    Path to selected file(s)

    %PathToSelectedFile%

    Example: C:\VaultProjA\FolderA\89-NOAO-4200-1234.sldprt

    Path to SOLIDWORKS Enterprise PDM root folder

    %RootFolderPath%

    Example: C:\VaultProjA

    Runtime variable

    A runtime variable is a temporary container to store user input. You can then use the runtime variable in your action scripts.

    Example: UserState

    Selected file(s) current workflow state

    %SelectedFileCurrentWorkflowState%

    Example: Approved

    Static string

    Sets the variable to a static string you create using the Value field.

    Example: %Number%_%Rev%.pdf

    Time when selected file(s) was created

    %TimeFileCreated%

    Example: 20090726 14:44:1

    Time when selected file(s) was modified

    %TimeFileModified%

    Example: 20090726 17:04:12

    Value of environmental variable

    Sets the variable to the value of an environmental variable you choose.

    Example: USERNAME

    Value of registry variable

    Sets the variable to the value of a registry variable you choose.

    Example: FileExtVer

    Variable value from selected file(s) datacard

    Sets the variable to the value of a datacard variable you choose.

    Example: Approved on

  5. Complete the conditional fields that display based on the selected Type:
    1. If Type is Static string - In the Value field, enter a value or click right arrow to build the value from predefined variables, string functions, or arithmetic functions.
    2. If Type is Value of environmental variable - In the Environmental variable field, type or click right arrow to select an environmental variable.
    3. If Type is Value of registry variable - In the Registry variable field, type a registry variable name.
    4. If Type is Variable value from selected file(s) datacard - In the Data card variable field, type or click right arrow to select a data card variable. Next, in the Configuration field, type the configuration.
  6. Continue to add variables (by clicking Add) or delete variables (by selecting a variable and clicking Remove).
  7. Click OK to save the variables.


이 도움말에 대한 피드백 제공

SOLIDWORKS는 도움말 정보의 개선을 위한 고객님의 제안 사항과 의견을 환영합니다. 제안하고자 하는 의견을 아래 양식에 작성하여 도움말 문서 팀에 직접 전달할 수 있습니다. 문서 팀은 제품에 관한 기술적인 지원은 하지 않습니다. 기술 지원에 관한 정보는 여기를 클릭하십시오.

* 필수 입력

 
*전자 메일:  
제목:   도움말에 대한 피드백
페이지:   Creating Variables for Dispatch Scripts
*사용자 의견:  
*   개인정보 보호정책을 읽었으며 본 정책에 따라 Dassault Systèmes에서 내 개인 정보를 사용하는 것에

인쇄 항목

인쇄할 콘텐츠 범위 선택:

x

Internet Explorer 7 이전 버전을 사용하고 있습니다. 페이지를 최적화하려면 사용 브라우저를 Internet Explorer 7 이상으로 업그레이드합니다.

 이 메시지를 다시 표시하지 않음
x

웹 도움말 콘텐츠 버전: SOLIDWORKS PDM 2014 SP05

SOLIDWORKS에서 웹 도움말 기능을 비활성화하고 로컬 도움말을 사용하려면, 도움말 > SOLIDWORKS 웹 도움말 사용을 클릭합니다.

웹 도움말 인터페이스나 검색 기능에서 발생한 오류 사항을 보고하려면, 로컬 지원 서비스 담당자에게 문의하십시오. 개별 도움말 항목에 대한 피드백을 제공하려면, 각 도움말 페이지의 "이 단원에 대한 피드백 제공" 링크를 사용하십시오.