Good morning.
I use an autocad addon that to perform some features disables all the snap modes to object.
I would like to know if it was possible to create a shortcut to reactivate them without using the menu and activate them one by one.
Yes.
you must set the osmode variable with a number corresponding to the sum of the osnap you want
the command is (from keyboard) osmode followed by the number I speak to you
to know which number to insert, look at the guide that tells you every osnap to what it corresponds (e.g. end=1 mid=2, cen=4, per=8
you want to reactivate an end+cen, the number will be 5 (4+1) or for+mid+cen will be 14 (8+4+2)
of course this macro (the osmode command followed by the number) can assign it to a button
for the correct values of osnap, look at the guide.