Click or drag to resize

FeatureManagerExInsertComFeatureTMacroFeature, TParams Method (IFeatureManager, TParams)

Inserts new macro feature

Namespace:  SolidWorks.Interop.sldworks
Assembly:  CodeStack.SwEx.MacroFeature (in CodeStack.SwEx.MacroFeature.dll) Version: (
public static IFeature InsertComFeature<TMacroFeature, TParams>(
	this IFeatureManager featMgr,
	TParams parameters
where TMacroFeature : MacroFeatureEx<TParams>
where TParams : class, new()


Type: IFeatureManager
Pointer to feature manager
Type: TParams
Parameters to serialize to macro feature

Type Parameters

Definition of COM macro feature
Type of parameters to serialize to macro feature

Return Value

Type: IFeature
Newly created 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