Archicad needs a programming language besides the API.
Call it VB call its XX , it surely needs it.
If it can be implemented as an extension of GDL it would be better ( i fear that it cannot since GDL is platform independant but i cannot imagine a proper GDL without user interaction [pick points get values fileI/O]