ICadComponentReplaceiPart Method |
Replaces an occurrence of an iPart. The replacement may be generated from a different factory.
Namespace:
Autodesk.iLogic.Interfaces
Assembly:
Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax Sub ReplaceiPart (
componentName As Object,
newFileName As String,
replaceAll As Boolean,
rowSpec As Object,
ParamArray customInput As Object()
)
void ReplaceiPart(
Object componentName,
string newFileName,
bool replaceAll,
Object rowSpec,
params Object[] customInput
)
Parameters
- componentName
- Type: SystemObject
The name of the component occurrence to replace. - 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. - rowSpec
- Type: SystemObject
A row number or name. - customInput
- Type: SystemObject
An optional list of custom parameter values
See Also