Hide Table of Contents
SetFileNameSerNo Method (IEdmFolder12)

For internal use only; do not use.

Syntax

Visual Basic (Declaration) 
Sub SetFileNameSerNo( _
   ByVal oSerialNumberName As System.Object _
) 
C# 
void SetFileNameSerNo( 
   System.object oSerialNumberName
)
C++/CLI 
void SetFileNameSerNo( 
&   System.Object^ oSerialNumberName
) 

Parameters

oSerialNumberName
  • File name without extension or path

    - or -

  • ID of the file's serial number generator

Remarks

This method specifies that when adding a file to the vault, its data card is created with a name that is either the added file's serial number or the file's name.

By default, file data cards are created with serial number names. To direct that when a file is added to the vault, its data card is created with a file name instead of a serial number name, call this method before calling IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles, specifying oSerialNumberName with the added file's name.

If you don't call this method before calling IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles, the added file and its data card are created with different serial number names. To synchronize the serial number names:

  1. Use IEdmSerNoGen7 to generate/get the added file's serial number.
  2. Call this method, specifying oSerialNumberName with the added file's serial number generator ID.
  3. Repeat steps 1 and 2 for each file added to the vault.
  4. Call IEdmFolder8::AddFile2 or IEdmFolder6::AddFiles to add the new file(s) to the vault.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: One of the arguments is invalid.
 

See Also

Availability

SOLIDWORKS PDM Professional 2019


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:   SetFileNameSerNo Method (IEdmFolder12)
*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) 2019 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.