Add new Modifier to a Node in C#


#1

There are two Modifiers on the Node ,I want to add a new modifier on bottom of the Node.

IIDerivedObject dobj = g.CreateDerivedObject(node.ObjectRef);
int num = ddobj.NumModifiers;
....
IModifier mod = (IModifier)objMod;
dobj.AddModifier(mod, null, num);

The interesting thing is that the “num” is always zero, why?


#2

I’ve solved it.