Hide Table of Contents
SetMultipleFilenamesPrompt Method (ISldWorks)

Sets the new filenames to open in response to the ISldWorks PromptForMultipleFileNamesNotify event.

.NET Syntax

Visual Basic (Declaration) 
Sub SetMultipleFilenamesPrompt( _
   ByVal FileName As System.Object _
) 
Visual Basic (Usage) 
Dim instance As ISldWorks
Dim FileName As System.Object
 
instance.SetMultipleFilenamesPrompt(FileName)
C# 
void SetMultipleFilenamesPrompt( 
   System.object FileName
)
C++/CLI 
void SetMultipleFilenamesPrompt( 
&   System.Object^ FileName
) 

Parameters

FileName

Array of filenames

Remarks

The filenames specified are only used if the SOLIDWORKS PromptForMultipleFileNamesNotify event returns false. This implies that you cannot specify initial filenames for SOLIDWORKS to use in the standard dialog. Instead, you must provide your own file dialog and return the filenames after the user selects them.

Guidelines for using this method when the cause argument of the SOLIDWORKS PromptForMultipleFileNamesNotify event is set to swSaveVirtualComponentExternally:

  • Length of the Filename argument array must be equal to the length of the suggestedFileNames argument array passed into ISldWorks::SetMultipleFilenamesPrompt. If there is a mismatch, all virtual components will be saved internal to the assembly with the suggested file name passed by the SOLIDWORKS PromptForMultipleFileNamesNotify event .
  • Supplying a full path and file name will save a virtual component external to the assembly using that path and file name.
  • Supplying only a file name (i.e., no path) will save the virtual component internal to the assembly with the suggested file name passed by the SOLIDWORKS PromptForMultipleFileNamesNotify event .
  • This method cannot be used to change the name of an internally saved virtual component.
  • Supplying an empty string will save the virtual component external to the assembly and in the same folder as the assembly with the suggested file name passed by the SOLIDWORKS PromptForMultipleFileNamesNotify event.
  • Supplying an invalid path and file name or insufficient access rights will save the virtual component internal to the assembly with the suggested file name passed by the SOLIDWORKS PromptForMultipleFileNamesNotify event.
  • Insufficient access rights to the path and file name will save the virtual component internal to the assembly with the suggested file name passed by the SOLIDWORKS PromptForMultipleFileNamesNotify event.
 

See Also

Availability

SOLIDWORKS 2008 SP1, Revision Number 16.0


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:   SetMultipleFilenamesPrompt Method (ISldWorks)
*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) 2015 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.