Gets the specified component in the specified configuration.
.NET Syntax
Visual Basic (Declaration) | |
---|
ReadOnly Property ComponentName( _
ByVal Config As String, _
ByVal index As Integer _
) As String |
Visual Basic (Usage) | |
---|
Dim instance As IEModelViewControl
Dim Config As String
Dim index As Integer
Dim value As String
value = instance.ComponentName(Config, index)
|
C# | |
---|
string ComponentName(
string Config,
int index
) {get;} |
C++/CLI | |
---|
property String^ ComponentName {
String^ get(String^ Config, int index);
} |
Parameters
- Config
- Name of the configuration in which the component exists or an empty string ("") or an asterisk ("*") (see Remarks)
- index
Index number of the component to get
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