ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
nxmgr_im
pdi_external.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
13
/* */
14
15
#ifndef PDI_H_EXTERNAL
16
#define PDI_H_EXTERNAL
17
18
#ifdef __lint
19
#pragma uginclude only_in_error "pdi.h";
20
#endif
21
25
#if !WNT
26
#include <unistd.h>
27
#endif
28
43
#define PDI_W_OK 2
44
46
#define PDI_R_OK 4
47
50
#include <
common/emh_const.h
>
51
#include <nxmgr_im/libnxmgr_im_exports.h>
52
53
#define PDI_return_code_t int
54
55
#define PDI_ok 0
56
58
#define PDI_fail EMH_API_error_base
59
61
#define PDI_rpc_fail EMH_API_error_base + 1
62
64
#define PDI_null EMH_API_error_base + 2
65
67
#define PDI_invalid_tag EMH_API_error_base + 3
68
70
#define PDI_access_denied EMH_API_error_base + 4
71
73
#define PDI_object_exists EMH_API_error_base + 5
74
76
#define PDI_login_failed EMH_API_error_base + 6
77
79
#define PDI_pdm_internal EMH_API_error_base + 7
80
82
#define PDI_not_implemented EMH_API_error_base + 8
83
85
#define PDI_read_only EMH_API_error_base + 9
86
88
#define PDI_object_locked EMH_API_error_base + 10
89
91
#define PDI_not_locker EMH_API_error_base + 11
92
94
#define PDI_object_not_locked EMH_API_error_base + 12
95
97
#define PDI_call_block EMH_API_error_base + 13
98
100
#define PDI_invalid_role EMH_API_error_base + 14
101
103
#define PDI_unable_to_create_dir EMH_API_error_base + 15
104
106
#define PDI_no_export_directory EMH_API_error_base + 16
107
109
#define PDI_import_files_fail EMH_API_error_base + 17
110
112
#define PDI_cancel_export_fail EMH_API_error_base + 18
113
115
#define PDI_remove_export_dir_fail EMH_API_error_base + 19
116
118
#define PDI_copy_appdata_fail EMH_API_error_base + 20
119
121
#define PDI_null_input_string EMH_API_error_base + 21
122
124
#define PDI_user_exit_failure EMH_API_error_base + 22
125
127
#define PDI_object_deleted EMH_API_error_base + 23
128
130
#define PDI_no_clipboard EMH_API_error_base + 24
131
133
#define PDI_attr_has_no_value EMH_API_error_base + 25
134
136
#define PDI_invalid_mapping_for_object EMH_API_error_base + 26
137
139
#define PDI_modified_elsewhere EMH_API_error_base + 27
140
142
#define PDI_not_licensed EMH_API_error_base + 28
143
147
#define PDI_invalid_date_format EMH_API_error_base + 29
148
150
#define PDI_object_already_added EMH_API_error_base + 30
151
155
#define PDI_rdbms_error EMH_API_error_base + 31
156
157
#define PDI_foreign_object EMH_API_error_base + 32
158
162
#define PDI_more_than_one_objects EMH_API_error_base + 33
163
167
#define PDI_invalid_pref_scope EMH_API_error_base + 34
168
173
#define PDI_remote_item_not_co EMH_API_error_base + 35
174
179
#define PDI_not_remote EMH_API_error_base + 36
180
182
#define PDI_server_disconnected EMH_API_error_base + 37
183
188
#define PDI_item_already_registered EMH_API_error_base + 38
189
191
#define PDI_unused_error EMH_API_error_base + 39
192
193
203
#define PDI_tc_error_base EMH_API_error_base + 1000
204
206
#define PDI_im_no_nx_view_type PDI_tc_error_base + 1
207
209
#define PDI_volume_full PDI_tc_error_base + 2
210
212
#define PDI_tcfs_error PDI_tc_error_base + 3
213
218
#define PDI_class_t int
219
#define PDI_class_p_t int*
220
221
#define PDI_none_class 0
222
#define PDI_part_class 1
223
#define PDI_partrev_class 2
224
#define PDI_rep_class 3
225
#define PDI_reprev_class 4
226
#define PDI_appdata_class 5
227
#define PDI_appver_class 6
228
#define PDI_container_class 7
229
#define PDI_component_class 8
230
#define PDI_attribute_class 9
231
#define PDI_apptype_class 10
232
#define PDI_reltype_class 11
233
#define PDI_parttype_class 12
234
#define PDI_attr_mapping_class 13
235
#define PDI_lov_class 14
236
#define PDI_opaque_object_class 15
237
#define PDI_unused_class 16
238
#define PDI_CLASS_COUNT 17
239
245
#define PDI_appver_format_t int
246
#define PDI_appver_format_p_t int*
247
248
#define PDI_none_format 0
249
#define PDI_ascii_format 1
250
#define PDI_binary_format 2
251
#define PDI_unused_format 3
252
#define PDI_APPVER_FORMAT_COUNT 4
253
255
#ifdef __cplusplus
256
extern
"C"
{
257
#endif
258
262
extern
NXMGR_IM_API
char
*
PDI_format_name
(
263
int
format
264
);
265
266
#ifdef __cplusplus
267
}
268
#endif
269
274
#define PDI_machine_type_t int
275
276
#define PDI_none_machine_type 0
277
#define PDI_unix 1
278
281
#define PDI_wnt 3
282
#define PDI_unused_machine_type 4
283
#define PDI_MACHINE_TYPE_COUNT 5
284
290
#define PDI_transport_t int
291
292
#define PDI_none_transport 0
293
#define PDI_sys5_msg 1
294
#define PDI_tcpip 2
295
#define PDI_sockets 3
296
#define PDI_tc_ss 4
297
300
#define PDI_unused_transport 6
301
#define PDI_TRANSPORT_COUNT 7
302
310
#define PDI_lock_status_t int
311
312
#define PDI_not_locked 0
313
#define PDI_locked_by_caller 1
314
#define PDI_locked_by_other 2
315
#define PDI_locked_and_exported 3
316
#define PDI_checked_out 4
317
325
#define PDI_partno_validity_t int
326
327
#define PDI_partno_valid 0
328
#define PDI_partno_invalid 1
329
#define PDI_partno_modified 2
330
334
#define PDI_partno_override 3
335
341
#define PDI_operation_ok 0
342
#define PDI_operation_failed 1
343
344
#define PDI_nx_load_operation "Unigraphics Part Load"
345
#define PDI_nx_load_operation_NX3 "Part Load"
346
352
#define PDI_DISPLAYED_PART_ROLE ( 1 << 0 )
353
#define PDI_PROD_ASSY_ROLE ( 1 << 1 )
354
360
#define PDI_SEARCH_FIND_MORE 0
361
#define PDI_SEARCH_FIND_ALL -1
362
363
#define PDI_SEARCH_CONTEXT_ALL 0
364
#define PDI_SEARCH_CONTEXT_INFO 1
365
370
typedef
enum
371
{
372
PDI_LOV_unknown
,
373
PDI_LOV_exhaustive
,
374
PDI_LOV_suggested
,
375
PDI_LOV_bounded
376
}
PDI_LOV_usage_t
;
377
381
typedef
enum
382
{
383
PDI_int_value
,
384
PDI_double_value
,
385
PDI_string_value
,
386
PDI_date_value
,
387
PDI_tag_value
,
388
PDI_logical_value
,
389
PDI_unknown_value
,
390
PDI_unsupported_value
,
391
PDI_strings_value
392
}
PDI_value_t
;
393
402
#define PDI_masspr_accuracy_defined (1 << 0)
403
405
#define PDI_masspr_mass_defined (1 << 1)
406
408
#define PDI_masspr_volume_defined (1 << 2)
409
411
#define PDI_masspr_density_defined (1 << 3)
412
414
#define PDI_masspr_area_defined (1 << 4)
415
417
#define PDI_masspr_com_defined (1 << 5)
418
423
#define PDI_masspr_inertia_defined (1 << 6)
424
426
#define PDI_masspr_min_mass_defined (1 << 7)
427
429
#define PDI_masspr_max_mass_defined (1 << 8)
430
438
#define PDI_masspr_accuracy_index 0
439
#define PDI_masspr_mass_index 1
440
#define PDI_masspr_mass_err_index 2
441
#define PDI_masspr_volume_index 3
442
#define PDI_masspr_volume_err_index 4
443
#define PDI_masspr_area_index 5
444
#define PDI_masspr_area_err_index 6
445
#define PDI_masspr_density_index 7
446
#define PDI_masspr_com_x_index 8
447
#define PDI_masspr_com_y_index 9
448
#define PDI_masspr_com_z_index 10
449
#define PDI_masspr_com_err_index 11
450
#define PDI_masspr_moi_xx_index 12
451
#define PDI_masspr_moi_yy_index 13
452
#define PDI_masspr_moi_zz_index 14
453
#define PDI_masspr_poi_xy_index 15
454
#define PDI_masspr_poi_xz_index 16
455
#define PDI_masspr_poi_yz_index 17
456
#define PDI_masspr_inertia_err_index 18
457
#define PDI_masspr_min_mass_index 19
458
#define PDI_masspr_max_mass_index 20
459
460
#define PDI_MASSPR_ARRAY_SIZE 21
461
470
typedef
PDI_return_code_t
(*
PDI_error_handler_t
)(
471
const
char
* function_name,
472
const
PDI_return_code_t
code
473
);
474
475
#ifdef __cplusplus
476
extern
"C"
{
477
#endif
478
479
extern
NXMGR_IM_API
void
PDI_set_error_handler
(
480
PDI_error_handler_t
handler
481
);
482
483
extern
NXMGR_IM_API
void
PDI_allow_no_errors
(
void
);
484
485
extern
NXMGR_IM_API
void
PDI_allow_selected_errors
(
486
const
int
error_count,
487
const
PDI_return_code_t
errors[]
488
);
489
490
extern
NXMGR_IM_API
void
PDI_allow_all_errors
(
void
);
491
499
typedef
void (*
PDI_input_callback_proc
)(
500
void
*,
501
int
*,
502
void
**
503
);
504
505
typedef
void
* (*PDI_add_input_func_t)(
506
void
*,
507
int,
508
void
*,
509
PDI_input_callback_proc
,
510
void
*
511
);
512
513
typedef
void (*
PDI_remove_input_func_t
)(
514
void
*
515
);
516
517
extern
NXMGR_IM_API
PDI_return_code_t
PDI_init_server
(
518
char
* process_id,
519
void
* ctxt,
520
PDI_transport_t
transport,
521
char
* ipcdata,
522
PDI_add_input_func_t
AppAddInput,
523
PDI_remove_input_func_t
RemoveInput
524
);
525
526
extern
NXMGR_IM_API
PDI_return_code_t
PDI_server_shutdown
(
void
);
527
528
extern
NXMGR_IM_API
PDI_return_code_t
PDI_init_client
(
529
char
* process_id
530
);
531
532
extern
NXMGR_IM_API
void
PDI_version
(
533
char
** letters,
534
int
* major_number,
535
int
* minor_number
536
);
537
542
#ifdef __cplusplus
543
}
544
#endif
545
547
#include <
nxmgr_im/iman_pdi_external.h
>
548
549
#include <nxmgr_im/libnxmgr_im_undef.h>
550
#endif