Use the Set variables dialog to define SOLIDWORKS 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:
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%
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%
Path to selected file(s)
%PathToSelectedFile%
Example: C:\VaultProjA\FolderA\89-NOAO-4200-1234.sldprt
Path to SOLIDWORKS 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
Contents
In creating variables, use string and arithmetic functions to configure their values. You can add these functions by clicking next to Value fields in dialog boxes.
Bu başlık hakkında geribildirimde bulunun
SOLIDWORKS; dokümantasyonun sunumu, doğruluğu ve bütünlüğü hakkında geribildiriminizi almaktan memnuniyet duyar. Bu başlık ile ilgili yorum ve önerilerinizi, aşağıdaki formu kullanarak doğrudan dokümantasyon takımımıza yollayın. Dokümantasyon takımı teknik destek sorularına yanıt veremez. Teknik destek ile ilgili bilgiler için buraya tıklayın.
* Gerekli
Yorumlarınız için teşekkürler. Geribildiriminiz ile ilgili sorularımız olursa sizinle temasa geçeceğiz.
Saygılarımızla,SOLIDWORKS Dokümantasyon Takımı
Yazdırma Başlığı
Yazdırılacak içeriğin kapsamını seçin:
Internet Explorer 7'den daha eski bir tarayıcı sürümünü kullandığınızı tespit ettik. Optimize edilmiş görünüm için tarayıcınızı Internet Explorer 7 veya daha yenisine yükseltmenizi öneririz.
Web Yardım İçerik Sürümü: SOLIDWORKS PDM 2016 SP05 SOLIDWORKS içindeki Web yardımını devre dışı bırakmak ve onun yerine yerel yardımı kullanmak için Yardım > SOLIDWORKS Web Yardımını Kullan öğelerine tıklayın. Web yardımı arabirimi ve araması ile ilgili karşılaştığınız sorunları lütfen yerel destek temsilcinize bildirin. Yardım başlıkları hakkında ayrı ayrı geri bildirimde bulunmak için ilgili başlığın sayfasından "Bu başlık hakkında geribildirim" bağlantısına tıklayın.