Hide Table of Contents
PDM Pro API Web Service
Getapi/{vaultName}/files/{fileId}/{version}/datacard?folderId={folderId}
PDM Pro API Web Service > Data Card Resource Group : api/{vaultName}/files/{fileId}/{version}/datacard?folderId={folderId} (Get)
Description
Get file data card

 

Gets the data card for the specified file, file version, and vault.

Parameters
NameDescriptionData Type
(URI parameter) Vault name (required)string
(URI parameter) File ID (required)integer
(URI parameter) File version (required)integer
(URI parameter) Folder ID (default is 0)integer

(Response) Array of IDs of variables with write-all configurations

 

Member of DataCard model

Collection of integer

(Response) Array of ConfigInfo_DataCards; each ConfigInfo_DataCard consists of:

Models (Array of VariableInfo_DataCards; each VariableInfo_DataCard consists of:

   ReadOnly (boolean)

   Multiline (boolean)

   VarId (integer)

   VarName (string)

   VarValue (string)

   VarType (one of:

       VarTypeNone = 0

       VarTypeText = 1

       VarTypeInt = 2

       VarTypeFloat = 3

       VarTypeBool = 4

       VarTypeDate = 5

   )

   Mandatory (boolean)

   VersionFree (boolean)

)

ConfigurationName (string)

Configuration Id (integer)

 

 

Member of DataCard model

Collection of ConfigInfo_DataCard

(Response) Array of VariableExtraInfos; each VariableExtraInfo consists of:

   Variable Id (integer)

   VariableValueOptions (array of optional string values)

 

 

Member of DataCard model

 

Collection of VariableExtraInfo
Response (application/json, text/json)

Sample Data

{
  "VariablesWithWriteAllConfigs": [
    1,
    2
  ],
  "ConfigVarInfo": [
    {
      "Models": [
        {
          "ReadOnly": true,
          "Multiline": true,
          "VarId": 3,
          "VarName": "sample string 4",
          "VarValue": "sample string 5",
          "VarType": 0,
          "Mandatory": true,
          "VersionFree": true
        },
        {
          "ReadOnly": true,
          "Multiline": true,
          "VarId": 3,
          "VarName": "sample string 4",
          "VarValue": "sample string 5",
          "VarType": 0,
          "Mandatory": true,
          "VersionFree": true
        }
      ],
      "ConfigurationName": "sample string 1",
      "ConfigurationId": 2
    },
    {
      "Models": [
        {
          "ReadOnly": true,
          "Multiline": true,
          "VarId": 3,
          "VarName": "sample string 4",
          "VarValue": "sample string 5",
          "VarType": 0,
          "Mandatory": true,
          "VersionFree": true
        },
        {
          "ReadOnly": true,
          "Multiline": true,
          "VarId": 3,
          "VarName": "sample string 4",
          "VarValue": "sample string 5",
          "VarType": 0,
          "Mandatory": true,
          "VersionFree": true
        }
      ],
      "ConfigurationName": "sample string 1",
      "ConfigurationId": 2
    }
  ],
  "CardVariableInfo": [
    {
      "VariableId": 1,
      "VariableValueOptions": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "VariableId": 1,
      "VariableValueOptions": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ]
}
Response (application/xml, text/xml)

Sample Data

<DataCard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SWPDM.Models">
  <CardVariableInfo>
    <VariableExtraInfo>
      <VariableId>1</VariableId>
      <VariableValueOptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </VariableValueOptions>
    </VariableExtraInfo>
    <VariableExtraInfo>
      <VariableId>1</VariableId>
      <VariableValueOptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </VariableValueOptions>
    </VariableExtraInfo>
  </CardVariableInfo>
  <ConfigVarInfo>
    <ConfigInfo_DataCard>
      <ConfigurationId>2</ConfigurationId>
      <ConfigurationName>sample string 1</ConfigurationName>
      <Models>
        <VariableInfo_DataCard>
          <Mandatory>true</Mandatory>
          <VarId>3</VarId>
          <VarName>sample string 4</VarName>
          <VarType>VarTypeNone</VarType>
          <VarValue>sample string 5</VarValue>
          <VersionFree>true</VersionFree>
          <Multiline>true</Multiline>
          <ReadOnly>true</ReadOnly>
        </VariableInfo_DataCard>
        <VariableInfo_DataCard>
          <Mandatory>true</Mandatory>
          <VarId>3</VarId>
          <VarName>sample string 4</VarName>
          <VarType>VarTypeNone</VarType>
          <VarValue>sample string 5</VarValue>
          <VersionFree>true</VersionFree>
          <Multiline>true</Multiline>
          <ReadOnly>true</ReadOnly>
        </VariableInfo_DataCard>
      </Models>
    </ConfigInfo_DataCard>
    <ConfigInfo_DataCard>
      <ConfigurationId>2</ConfigurationId>
      <ConfigurationName>sample string 1</ConfigurationName>
      <Models>
        <VariableInfo_DataCard>
          <Mandatory>true</Mandatory>
          <VarId>3</VarId>
          <VarName>sample string 4</VarName>
          <VarType>VarTypeNone</VarType>
          <VarValue>sample string 5</VarValue>
          <VersionFree>true</VersionFree>
          <Multiline>true</Multiline>
          <ReadOnly>true</ReadOnly>
        </VariableInfo_DataCard>
        <VariableInfo_DataCard>
          <Mandatory>true</Mandatory>
          <VarId>3</VarId>
          <VarName>sample string 4</VarName>
          <VarType>VarTypeNone</VarType>
          <VarValue>sample string 5</VarValue>
          <VersionFree>true</VersionFree>
          <Multiline>true</Multiline>
          <ReadOnly>true</ReadOnly>
        </VariableInfo_DataCard>
      </Models>
    </ConfigInfo_DataCard>
  </ConfigVarInfo>
  <VariablesWithWriteAllConfigs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </VariablesWithWriteAllConfigs>
</DataCard>
Example
See Also


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   api/{vaultName}/files/{fileId}/{version}/datacard?folderId={folderId} (Get)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2022 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.