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