Continuing the discussion from Are Directly Opened Component Files Exploded?:
This short Ruby code simply displays a notification when the opened model is a DC meant to be imported.
It is for SketchUp 2015 or later.
detect-dc.rb (789 Bytes)
The source.