Click or drag to resize

FeatureManagerExReplaceComFeatureTMacroFeature Method (IFeatureManager, IFeature)

Replaces existing macro feature with a new one preserving the parameters

Namespace:  SolidWorks.Interop.sldworks
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: (
public static IFeature ReplaceComFeature<TMacroFeature>(
	this IFeatureManager featMgr,
	IFeature feat
where TMacroFeature : MacroFeatureEx


Type: IFeatureManager
Pointer to feature manager
Type: IFeature
Pointer to feature to replace

Type Parameters

Type of macro feature

Return Value

Type: IFeature
Ne replaced feature

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IFeatureManager. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also