Gets the number of components in the specified configuration.
.NET Syntax
Visual Basic (Declaration) | |
---|
ReadOnly Property ComponentCount( _
ByVal Config As String _
) As Integer |
Visual Basic (Usage) | |
---|
Dim instance As IEModelViewControl
Dim Config As String
Dim value As Integer
value = instance.ComponentCount(Config)
|
C# | |
---|
int ComponentCount(
string Config
) {get;} |
C++/CLI | |
---|
property int ComponentCount {
int get(String^ Config);
} |
Parameters
- Config
- Name of the configuration for which to get the number of components or an empty string ("") or an asterisk ("*") (see Remarks)
Return Value
Number of components in Config
Example
Visual Basic code snippet that shows how to get the names of the components in a top-level assembly configuration named Level1_Config2:
count = Document.EModelViewControl.ComponentCount("Level1_Config2")
for index = 0 to count
componentName = Document.EModelViewControl.ComponentName("Level1_Config2", index)
Debug.Print "Component name: " & componentName
next
Remarks
See Also
Availability
SolidWorks eDrawings API 2005 SP0