Skrýt obsah

Example

For example:

<?xml version="1.0"?>
<xml>
  <transactions>
    <transaction 
      date="1196854268"
      type="wf_import_document_attributes"
      vaultname="2008 file vault">
      <document 
        aliasset=""
        pdmweid="0"
        idattribute="Number"
        id="89-NOAO-4200-1236"
        idcfgname="">
        <configuration name="">
          <attribute name="Cost" value="0.44"/>
          <attribute name="ArticleID" value="A-012-BB"/>
        </configuration>
      </document>
    </transaction>
  </transactions> 
</xml>

where:

XML Element XML Attribute Description
<?XML version="1.0"?>   The file must start with this element.
<XML>   This element wraps the transactions element.
<transactions>   The file contains only one transactions element.
<transaction …>   The file can contain multiple transaction elements.
  date The number of seconds elapsed since 12:00 AM January 1st 1970. Must be an integer greater than 0.
type Indicates that the transaction contains data to import into files or items in the vault.
  Vaultname Name of the vault this transaction relates to. The import rule processes transactions with a matching vault name.
  Aliasset The alias set to use to look up child attribute nodes. The attribute names in the XML file are matched with the alias-mapped variable.

For example, an alias set containing the variable X2Number with an attribute NR in the XML file is configured to match the data card variable Number.

An empty value matches the data card variables with the attribute names in the XML file.

<document …>   Contains criteria for matching the import values with a file or item in the vault. It matches the unique internal ID of a file or item, or a variable value.
  Pdmweid Matches the transaction with the internal DocumentID from the Documents table of a file or item in the vault database.

When you use this attribute, [id], [idattribute], and [idcfgname] are ignored. To use another matching technique, set the value to 0 or omit this attribute.

  Idattribute The data card variable or alias to use to match a file or item in the vault.
  Id Variable value to use when searching for files or items. Searches for the value using the variable name, idattribute, and the optional configuration, Idcfgname, in the VariableValue database table .

If multiple files or items match, values are imported for all but are written only to those that pass the import transition action.

  Idcfgname Name of the configuration, if any, to which to match the variable value. If this attribute has no value, all configurations of a file are considered for matching.
<configuration …> name Configuration of the file data card to update with the attribute values. If this attribute has no value, all configurations are updated.

Create multiple configuration elements to import different values to different configurations.

<attribute …> name Name of the data card variable to update, in the form VariableAlias.Alias or Variable.VariableName.
  value Value to use when setting the specified variable. Cannot exceed 1024 characters.


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:   Example
*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ě.