I tried your option but didn't work.
1. Will your technique work on STEP/IGES files?
2. I need to export selected dimension from drawing to excel.
when you import STEP/IGES file, you will get dumb model containing no dimensions. Therefore you can't use Natalie's procedure - it can be applied on native Creo models.
Maybe you can use Search/Find command.