Okay I just could not let go of this and just scrapped the whoile thing and started from scratch... oif course things worked fine now?!!
anyway here is the working solution.... and this thread can be closed!
====================
option explicit
sub main()
dim currentDiagram as EA.Diagram
set currentDiagram = Repository.GetCurrentDiagram
dim currentConnector as EA.Connector
set currentConnector = currentDiagram.SelectedConnector
on error resume next
if currentConnector is nothing or currentConnector.Stereotype <> "sbvrWording" or currentConnector.MiscData(0) = "" then 'PDATA# is (#-1)
' No item selected in thediagram, or the item selected was not expected
MsgBox( "This script requires a sbvrWording connector be selected in the current diagram." & chr(10) & _
"Please try again." )
on error goto 0 'Turn Error checking back on
else
on error goto 0 'Turn Error checking back on
msgbox "Connector Name, ID, and GUID: " & currentConnector.Name & ", " & currentConnector.ConnectorID & ", " & currentConnector.ConnectorGUID ,vbOKOnly
dim sourceElement as EA.Element
set sourceElement = Repository.GetElementByID(currentConnector.SupplierID)
'set elementSelected = Repository.GetTreeSelectedObject
msgbox "Source Element Name, ID, and GUID: " & sourceElement.Name & ", " & sourceElement.ElementID & ", " & sourceElement.ElementGUID ,vbOKOnly
dim clientElement as EA.Element
set clientElement = Repository.GetElementByID(currentConnector.ClientID)
'set elementSelected = Repository.GetTreeSelectedObject
msgbox "Client Element Name, ID, and GUID: " & clientElement.Name & ", " & clientElement.ElementID & ", " & clientElement.ElementGUID ,vbOKOnly
dim assocc_classElement as EA.Element
set assocc_classElement = Repository.GetElementByID(currentConnector.MiscData(0))
'set elementSelected = Repository.GetTreeSelectedObject
msgbox "Assoc. Class Element Name, ID, and GUID: " & assocc_classElement.Name & ", " & assocc_classElement.ElementID & ", " & assocc_classElement.ElementGUID ,vbOKOnly
set sourceElement = nothing
set clientElement = nothing
set assocc_classElement = nothing
end if
set currentConnector = nothing
set currentDiagram = nothing
end sub
main
====================