=_name returns the original component definition name, there is no instance name, I believe its part of a different definition set, you can see it when inspecting "drawing elements"
Capture.jpg
there is no DC way of getting the instance name, only viewing it in both the option dialog title and the attribute dialog header provided the name attribute is not used.
Capture 2.JPG
however you could use a script
sel = Sketchup.active_model.selection
sel.grep(Sketchup;;ComponentInstance).each do |s|
s.set_attribute "dynamic_attributes","aname",s.name
$dc_observers.get_latest_class.redraw_with_undo(s)
end
I use toolbar editor to store and run such scripts. In that you can create a button and assign the script.
You then include "aname" or an attribute of your choosing an create other formula / relationships for your data, reports....