ITK Function Reference

(V10000.1.0.60_20160308.00)
part.h
Go to the documentation of this file.
1 // @<COPYRIGHT_START>@
2 // =====================================================
3 // Copyright (c) 2013 Siemens PLM. All Rights Reserved.
4 // =====================================================
5 // @<COPYRIGHT_END>@
6 
7 
16 #ifndef PART_H
17 #define PART_H
18 
19 #include <unidefs.h>
20 #include <tccore/libtccore_exports.h>
21 
28 #ifdef __cplusplus
29  extern "C"{
30 #endif
31 
45 extern TCCORE_API int PART_create_part (
46  const char *part_number,
48  const char *part_desc,
49  const tag_t uom_tag,
51  const char *part_name,
52  const char *part_type_name,
53  const char *rev_id,
56  const logical is_design_reqd,
58  const int source,
61  tag_t *part,
62  tag_t *part_rev
63  );
64 
79 extern TCCORE_API int PART_create_part2(
80  const char* item_type,
81  int num_attributes,
82  char ** attribute_names,
83  char ** attribute_values,
84  const char* revision_id,
85  const logical is_design_reqd,
87  const int source,
90  tag_t* part,
91  tag_t* part_revision
92  );
93 
94 
106 extern TCCORE_API int PART_rev_associate_design_rev(
107  tag_t part_rev,
108  tag_t design_rev,
109  tag_t *rel_tag
110  );
111 
122 extern TCCORE_API int PART_rev_ask_associated_design_revs(
123  tag_t part_rev,
124  int *design_revs_count,
125  tag_t** design_revs
126  );
127 
143 extern TCCORE_API int PART_rev_set_primary_representation(
144  tag_t part_rev,
145  tag_t design_rev
146  );
162 extern TCCORE_API int PART_rev_ask_primary_representation(
163  tag_t part_rev,
164  tag_t* primary_design_rev
165  );
166 
169 #ifdef __cplusplus
170 }
171 #endif
172 
173 #include <tccore/libtccore_undef.h>
174 #endif