NX second development, big trouble help have a look at how to modify, the whole thing out in a big recently,
Args [] grip_arg_list=new Args [1].
The Tag [] obj=new Tag [2].
Grip_arg_list [0]. Type=UFConstants. UF_TYPE_TAG_T_ARRAY;
Grip_arg_list [0]. Length=2;
GCHandle IndicesHandle=GCHandle. Alloc (obj, GCHandleType. Pinned);//for a given object allocation specified type of handle
IntPtr s=IndicesHandle. AddrOfPinnedObject ();
Grip_arg_list [0]. Address=s;
IndicesHandle. Free ();
Debugging appear error:
124 line is this:
GCHandle IndicesHandle=GCHandle. Alloc (obj, GCHandleType. Pinned);
How do you change that?
CodePudding user response:
Should not need to use Alloc, try to create the object directly, converted to a pointer called a try,
CodePudding user response: