| FeatureManagerExReplaceComFeatureTMacroFeature, TParams Method (IFeatureManager, IFeature, TParams) |
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: 0.5.3.0 (0.5.3.0)
Syntax public static IFeature ReplaceComFeature<TMacroFeature, TParams>(
this IFeatureManager featMgr,
IFeature feat,
TParams parameters
)
where TMacroFeature : MacroFeatureEx<TParams>
where TParams : class, new()
<ExtensionAttribute>
Public Shared Function ReplaceComFeature(Of TMacroFeature As MacroFeatureEx(Of TParams), TParams As {Class, New}) (
featMgr As IFeatureManager,
feat As IFeature,
parameters As TParams
) As IFeature
public:
[ExtensionAttribute]
generic<typename TMacroFeature, typename TParams>
where TMacroFeature : MacroFeatureEx<TParams>
where TParams : ref class, gcnew()
static IFeature^ ReplaceComFeature(
IFeatureManager^ featMgr,
IFeature^ feat,
TParams parameters
)
Parameters
- featMgr
- Type: IFeatureManager
Pointer to feature manager - feat
- Type: IFeature
Pointer to feature to replace - parameters
- Type: TParams
Parameters to assign to replaced feature
Type Parameters
- TMacroFeature
- Type of macro feature
- TParams
- Type of parameters
Return Value
Type:
IFeatureNe 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