Hide Table of Contents
ModifyItemsNameAndPath Method (IAdvancedSaveAsOptions)

Modifies the specified reference components with the specified names and paths.

.NET Syntax

Visual Basic (Declaration) 
Function ModifyItemsNameAndPath( _
   ByVal IdsList As System.Object, _
   ByVal NamesList As System.Object, _
   ByVal PathsList As System.Object _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IAdvancedSaveAsOptions
Dim IdsList As System.Object
Dim NamesList As System.Object
Dim PathsList As System.Object
Dim value As System.Integer
 
value = instance.ModifyItemsNameAndPath(IdsList, NamesList, PathsList)
C# 
System.int ModifyItemsNameAndPath( 
   System.object IdsList,
   System.object NamesList,
   System.object PathsList
)
C++/CLI 
System.int ModifyItemsNameAndPath( 
&   System.Object^ IdsList,
&   System.Object^ NamesList,
&   System.Object^ PathsList
) 

Parameters

IdsList
Array of reference component IDs (see Remarks)
NamesList
Array of new reference component names
PathsList
Array of new reference component paths

Return Value

Return code as defined in swSaveItemsPathError_e

Example

See the IAdvancedSaveAsOptions example.

Remarks

Before calling this method call:

  1. IAdvancedSaveAsOptions::SetPrefixSuffixToAll
  2. IAdvancedSaveAsOptions::GetItemsNameAndPath to populate IDsList.

IdsList, NamesList, and PathsList are the same array size and map one to one. Use Nothing or null to specify no change to an individual reference in each array.

If you use this method to change the name or path of the top-level document, then it overrides the name or path passed in the Name parameter of IModelDocExtension::SaveAs3.

 

See Also

Availability

SOLIDWORKS 2020 SP02, Revision Number 28.2


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:   ModifyItemsNameAndPath Method (IAdvancedSaveAsOptions)
*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) 2024 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.