Home Search

DriveWorks Pro 22
PDMPro: Update File Data Card

Send Feedback

PDMPro: Update File Data Card

This Specification Flow Task will check a file out if it's available and update the data card.

Note: Ensure the SolidWorks PDM Plugin Settings is set up and enabled.

Properties

When this task is added, the properties are:

Property NameDescription
Source File PathThe full path of the file whose data will be updated.
Field NamesPipebar (|) delimited string of the field names.
Field ValuesPipebar (|) delimited string of the new field values.
Constant Name(Optional) The name of the Constant into which the result should be driven.

Examples

Property NameExample RuleExample ResultMeaning
Source File Path"C:\VaultName\VaultFolder\MyFolder\MyPart.sldprt"C:\VaultName\VaultFolder\MyFolderThis is the file path to the file whose data card will be updated.
Field Names"Project|SpecificationNumber|Customer"Project|SpecificationNumber|CustomerThese are the field names to update.
Field ValuesDWProjectName &"|"& DWSpecificationID &"|"& CustomerReturnMyProject|0075|DriveWorksThese are the values the fields are updated with.
Constant NameDWConstantUpdateFileDWConstantUpdateFileThe result will be written to this Constant.
When a Field Name is given that does not exist on the data card an error string will be returned within the array.

This can be handled by using an error function (such as IfErrorString.

Using the Task in a Specification Macro

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs

  • Result

    A table containing the results of the data update.

Status Outputs

This task supports Status Outputs. They can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • The file was available to have its values updated.

Success with Warnings

  • N/A - should never be fulfilled.

Failure (one of the following occurred)

  • Checked out elsewhere
  • Couldn't be checked out
  • Not in vault
  • Invalid/empty file name
  • Not logged in
  • Unrecognized file type