Inserts a macro feature in this model.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function IInsertMacroFeature3( _
ByVal BaseName As String, _
ByVal ProgId As String, _
ByRef MacroMethods As String, _
ByVal ParamCount As Integer, _
ByRef ParamNames As String, _
ByRef ParamTypes As Integer, _
ByRef ParamValues As String, _
ByVal DimCount As Integer, _
ByRef DimTypes As Integer, _
ByRef DimCountValues As Double, _
ByVal BodyCount As Integer, _
ByRef EditBodies As Body2, _
ByVal IconCount As Integer, _
ByRef IconFiles As String, _
ByVal Options As Integer _
) As Feature |
Visual Basic (Usage) | |
---|
Dim instance As IFeatureManager
Dim BaseName As String
Dim ProgId As String
Dim MacroMethods As String
Dim ParamCount As Integer
Dim ParamNames As String
Dim ParamTypes As Integer
Dim ParamValues As String
Dim DimCount As Integer
Dim DimTypes As Integer
Dim DimCountValues As Double
Dim BodyCount As Integer
Dim EditBodies As Body2
Dim IconCount As Integer
Dim IconFiles As String
Dim Options As Integer
Dim value As Feature
value = instance.IInsertMacroFeature3(BaseName, ProgId, MacroMethods, ParamCount, ParamNames, ParamTypes, ParamValues, DimCount, DimTypes, DimCountValues, BodyCount, EditBodies, IconCount, IconFiles, Options)
|
C# | |
---|
Feature IInsertMacroFeature3(
string BaseName,
string ProgId,
ref string MacroMethods,
int ParamCount,
ref string ParamNames,
ref int ParamTypes,
ref string ParamValues,
int DimCount,
ref int DimTypes,
ref double DimCountValues,
int BodyCount,
ref Body2 EditBodies,
int IconCount,
ref string IconFiles,
int Options
) |
C++/CLI | |
---|
Feature^ IInsertMacroFeature3(
& String^ BaseName,
& String^ ProgId,
& String^% MacroMethods,
& int ParamCount,
& String^% ParamNames,
& int% ParamTypes,
& String^% ParamValues,
& int DimCount,
& int% DimTypes,
& double% DimCountValues,
& int BodyCount,
& Body2^% EditBodies,
& int IconCount,
& String^% IconFiles,
& int Options
) |
Parameters
- BaseName
- Name of the base feature (see Remarks)
- ProgId
- Indicates whether to use COM or VBA callback methods (see Remarks)
- MacroMethods
- Array of strings of size 9 (see Remarks)
- ParamCount
- Number of parameters
- ParamNames
- Array of strings of the parameters of size ParamCount
- ParamTypes
- Array of the types of parameters of size paramCount as defined by swMacroFeatureParamType_e
- ParamValues
- Array of strings of the values of parameters of size ParamCount
- DimCount
- Number of dimensions
- DimTypes
- Array of the types of dimensions as defined by swDimensionType_e (see Remarks)
- DimCountValues
- Array of doubles of the values of dimensions of size DimCount
- BodyCount
- Number of bodies to modify in the macro feature
- EditBodies
- Array of IBody2 objects to modify in the macro feature
- IconCount
- Number of icons
- IconFiles
- Array of 3 strings (see Remarks)
- Options
- Placement of the macro feature in the FeatureManager design tree as defined by swMacroFeatureOptions_e (see Remarks)
Return Value
Pointer to the
IFeature object
Remarks
See Also
Availability
SolidWorks 2007 FCS, Revision Number 15.0