I can't change the color of an entity

Hello
I can’t change the color of an entity made with QCAD Simple API
I did some tests (see around line 662 of the attached code) also taking inspiration from Changing entity properties - #2 by andrew
OrthogonalProjections.js (78 KB)

Try:

op.addObject(entity, false);

false: Don’t use current attributes chosen by user.

ok, thanks, it works