Replaces a component occurrence with a different document.
Namespace: Autodesk.iLogic.Interfaces
Assembly: Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 29.0
Syntax
VB
Sub Replace ( componentName As Object, newFileName As String, replaceAll As Boolean, Optional ignoreError As Boolean = false )
C#
void Replace( Object componentName, string newFileName, bool replaceAll, bool ignoreError = false )
Parameters
- componentName
- Type: System.Object
The name (or path) of the component occurrence. - newFileName
- Type: System.String
The replacement filename. This should be a relative path if possible. - replaceAll
- Type: System.Boolean
If this is true, all instances of the current document will be replaced. - ignoreError (Optional)
- Type: System.Boolean
If this is true, errors will be ignored durign the replace operation. The default is false.