Catia macro problem

Hi all

Here's my problem:

In the Drawing mode, I would like to make a macro to be able to  select crosses of a defined color and then dimension them using the "coordinate dimensioning" tool.

I use the "Macro Recording" tool, it manages to select my crosses well but does not take into account the dimensioning.

Do you know why ?

Thank you for your answers 

Hello, I'm not going to help you much because it's not my field.

But I've always heard that the macro recorder doesn't work in the Drafting workshop.

You'll have to write it by hand.