in my opinion the ComponentName in incomplete,
You should use the API GetNameForSelection Method (IFeature)
to retrieve the full name of the feature in assembly.
Thank you very much for your reply. I don't think I am understanding how to use that method. I tried adding the lines:
Dim featType As String: Dim featName As String
If simplePart.selectionmanager.getselectedobjectcount = 1 Then
'get the feature definition using .getdefinition
Set feature = simplePart.selectionmanager.getselectedobject6(1, -1)
featName = feature.GetNameForSelection(featType)
but getselectedobjectcount is always zero, so the program never gets this far.
I agree that I must be addressing the feature incorrectly. Do you know what format the full component name should be in. The program currently uses the format feature@componentName.sldpart
Thank you again,