There is a unique dev-kit for every version of ARCHICAD. To make an add-on work with a specific version of ARCHICAD, you must use the correct dev-kit. If you use the AC22 dev-kit, for example, the add-on will only work with AC22 (not 21 or 23).
Ralph Wessel BArch
Active Thread Ltd