I wonder if I am not in the 1% remaining cases 🐵
I had checked the first link you give, but the final step give you the model of the view, not the part selected (If I select a part in an assembly in a drawing view)
I am working on another workflow than the one expected but less convenient (I will ask the user to select the view, open the model, if the model is an assembly start the command for the pick with part only and then open that file and do what I have to do with the part selected, then close back both documents)
workflow expected was to select directly the part in the drawing view, open it and do what I have to do with the part and then close a single document.
Perhaps I would need the "right click open" using similar command:
Dim Cm As CommandManager
Set Cm = ThisApplication.CommandManager
Call Cm.PostPrivateEvent(PrivateEventTypeEnum.kFileNameEvent, sFileFullPath)
Dim oCtrlDef As ButtonDefinition
Set oCtrlDef = ThisApplication.CommandManager.ControlDefinitions.Item("GeomToDXFCommand")
Call oCtrlDef.Execute