Adding Inport dynamically?

On 12/02/2013 at 11:35, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   12-14 
Platform:   Windows  ; Mac  ;  Mac OSX  ; 
Language(s) :     C++  ;


I would like to add additional inports on demand to my xpresso node's description (from within GetDDescription).
I use SetParameter() to do this. It works (I set the DESC_INPORT flag) and appears in the AM correctly, however, it is not recognized by C4D as an inport (at least it is not in the popup list of inports of my node).

Anybody an idea why this happens or what is the correct way of adding an inport dynamically?