Gets the specified top-level assembly component.
.NET Syntax
| Visual Basic (Declaration) | |
|---|
Function GetComponentByName( _
ByVal CompName As System.String _
) As Component2 |
| Visual Basic (Usage) | |
|---|
Dim instance As IAssemblyDoc
Dim CompName As System.String
Dim value As Component2
value = instance.GetComponentByName(CompName) |
| C# | |
|---|
Component2 GetComponentByName(
System.string CompName
) |
| C++/CLI | |
|---|
Component2^ GetComponentByName(
& System.String^ CompName
) |
Parameters
- CompName
- Name of the top-level assembly component to get
Return Value
Component
Example
See Also
Availability
SolidWorks 2009 FCS, Revision Number 17.0