Skrýt obsah

Advanced Scripting Options Dialog Box

After creating a task, use the Advanced Scripting Options dialog box to modify the task add-in script, SolidWorks version, or task type.

To display the dialog box:

  • When configuring a conversion task, on the Output File Details page, click Advanced Scripting Options.
  • When configuring a print task, on the Files page, click Advanced Scripting Options.
Enter script to execute in SolidWorks Script of plug-in that executes task.

To modify the script:

  • Type in the text box.
  • Place the pointer in the text box and click Insert Macro.
Reset Discards changes you make to the script.
Insert Macro Inserts a macro at the cursor location in the script.

For more information, see Inserting Macros in SolidWorks Task Add-in Scripts.

The following macros resolve to values in the user interface:

Macro Inserted in Script Resolves to Example
Source Folder Path <Path> Folder where the source file is located C:\MyVault\Drawings\
Vault Root Folder Path <VaultPath> Root folder of the vault C:\MyVault\
Task Instance GUID <TaskInstanceGuid> A globally unique identifier (GUID) that is used as the task ID.  
Source File Path <Filepath> Full path and file name of the source file. C:\MyVault\Drawings\ Part.sldprt

The following macros do not resolve to actual values. They remain as tokens in the script. You must add code that parses the values from the resolved value of other macros such as <Filepath>. Examples of how to do this are found in the default scripts for the Print and Convert tasks.

Macro Inserted in Script
Source File Name <Filename>
Source File Extension <Extension>
Configuration Name <Configuration>
SolidWorks version to use SolidWorks version used by task.

All tasks you create using the SolidWorks Task Add-in must be run on a computer that has this version of SolidWorks installed.

Task user interface type Determines configurable options for task.
You must save and then edit the task to see the configurable options, which are available as pages in the task's Properties dialog box.
Select one:
User Interface Type Configurable Options
General
  • Add-in
  • Execution Method
  • Menu Command
  • Script
  • Permissions
  • Success Notification
  • Error Notification
File Conversion General options plus:
  • Conversion Settings
  • File Card
  • Output File Details
Printing General Options plus:
  • Printer
  • Paper Size and Orientation
  • Margins
  • Files


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:   Advanced Scripting Options Dialog Box
*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ě.