Click or drag to resize

IGoExcelChangeSourceOfLinked Method

Replace the Excel file that is currently a source of linked parameters with another file. This is similar to the Change Source command on the context menu in the UI.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Function ChangeSourceOfLinked ( 
	partialOldName As String,
	newName As String
) As Boolean

Parameters

partialOldName
Type: SystemString
A substring of the name that is to be matched. The first file that has this string in the name will be selected for replacement. Choose a substring that will not be changed by the replacement operation (i.e. something in common to all replacement file names). To match the first linked file regardless of name, use an empty string.
newName
Type: SystemString
The path (folder and filename) to the replacement file. This can be a relative or absolute path name. Relative path names are recommended.

Return Value

Type: Boolean
True if the operation succeeded.
See Also