110,539
社区成员
发帖
与我相关
我的任务
分享
using NXOpen;
public static int Main(string[] args)Args[] grip_arg_list = new Args[1];
grip_arg_list[0].address = init;
grip_arg_list[0].length = 0;
grip_arg_list[0].type = UFConstants.UF_TYPE_CHAR;
Args grip_arg_list;
grip_arg_list.address = init;
grip_arg_list.length = 0;
grip_arg_list.type = UFConstants.UF_TYPE_CHAR;
extern UFUNEXPORT int UF_call_grip (
char *grip_executable, /* <I>
Name of GRIP program to execute (file name
or full path name).
*/
int count, /* <I>
Count of arguments to pass to GRIP executable
*/
UF_args_p_t UFARGS /* <I,len:count>
An array of structures where each element in
the array is a structure that contains an
arguments type, size, and address. Note that
if an argument is type UF_TYPE_CHAR, the array
must be initialized prior to the UF_call_grip
call.
*/
);
struct UF_args_s
{ int type; /* one of the types, UF_TYPE_DOUBLE,
UF_TYPE_DOUBLE_ARRAY, UF_TYPE_TAG_T,
UF_TYPE_TAG_T_ARRAY, UF_TYPE_CHAR or
UF_TYPE_CHAR_ARRAY. */
int length; /* the number of elements in an array, for
types UF_TYPE_DOUBLE_ARRAY,
UF_TYPE_TAG_T_ARRAY or UF_TYPE_CHAR_ARRAY. */
void *address; /* A pointer to an array of the given
type and length. Note that for an array
of UF_TYPE_CHAR, if the argument list
is built by the Open program, it must
initialize this array whether it is input or
output. An output array can be initialized
by setting the first byte to '\0'. */
};
typedef struct UF_args_s UF_args_t, *UF_args_p_t;