点击或拖拽改变大小

FeatureManagerExtensionInsertMacroFeatureTFeature 方法

插入宏特征扩展方法

命名空间:  Du.SolidWorks.Extension
程序集:  Du.SolidWorks (在 Du.SolidWorks.dll 中) 版本:0.1.1.0 (0.1.1)
语法
public static Feature InsertMacroFeature<TFeature>(
	this IFeatureManager featMgr,
	string featureName,
	swMacroFeatureOptions_e opts,
	Object data,
	IBody2[] editBodies
)

参数

featMgr
类型:IFeatureManager

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <param name="featMgr"/> 文档]

featureName
类型:SystemString

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <param name="featureName"/> 文档]

opts
类型:swMacroFeatureOptions_e

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <param name="opts"/> 文档]

data
类型:SystemObject

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <param name="data"/> 文档]

editBodies
类型:IBody2

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <param name="editBodies"/> 文档]

类型参数

TFeature

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <typeparam name="TFeature"/> 文档]

返回值

类型:Feature

[缺少 "M:Du.SolidWorks.Extension.FeatureManagerExtension.InsertMacroFeature``1(SolidWorks.Interop.sldworks.IFeatureManager,System.String,SolidWorks.Interop.swconst.swMacroFeatureOptions_e,System.Object,SolidWorks.Interop.sldworks.IBody2[])" 的 <returns> 文档]

备注

在 Visual Basic 和 C# 中,这个方法可以当成为类型 IFeatureManager 的实例方法来调用。在采用实例方法语法调用这个方法时,请省略第一个参数。请参考 扩展方法 (Visual Basic)扩展方法 (C# 编程指南) 获取更多信息。
参见