Share

ICadComponent.ReplaceiPart 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: 29.0

Syntax

VB

Sub ReplaceiPart ( 
	componentName As Object,
	newFileName As String,
	replaceAll As Boolean,
	rowSpec As Object,
	ParamArray customInput As Object()
)

C#

void ReplaceiPart(
	Object componentName,
	string newFileName,
	bool replaceAll,
	Object rowSpec,
	params Object[] customInput
)

Parameters

componentName
Type: System.Object
The name of the component occurrence to replace.
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.
rowSpec
Type: System.Object
A row number or name.
customInput
Type:  System.Object[]
An optional list of custom parameter values

See Also

Reference

Was this information helpful?