|
ITK Function Reference
(V10000.1.0.60_20160308.00) |
#include <hrn.h>
Data Fields | |
| char * | length_type |
| double | length_value |
Structures in HRN
The occurrence specific attribute values for bomlines are set and returned using structures. The diferent structure and specific element access for these structures as given below.
Note:
All char* and char** type attributes in the structure are allocated memory for "get" methods of ITK. This memory allocated for all returning values of char* and char** need to be explicitly freed using SM_free.
All structures to be passed as input should be initialized. For initializing any int, double or charecter to a null value, the following can be used:
HRN_INT_NULL - This definition has a value as "-9999". This can be used to initialize an int value in the structure to null.
HRN_DOUBLE_NULL - This definition has a value as "-9999.99". This can be used to initialize a double value in the structure to null.
HRN_STRING_NULL - This definition has a value as "NULL". This can be used to initialize a charecter value in the structure to null.
Certain harness part objects can have occurrence spscific attributes specified on them. These are deifned in the preference HRN_part_data_relation_primary. To access occurrence specific values for any of the bomlines of type or subtype specified in the preference, use structure HRN_part_occ_data_t:
| structure_name.id | Occurrence specific ID. | char *. |
| structure_name.alias_count | Number of alias Ids specified. | int |
| structure_name.alias_ids | Alias Ids specified for the bomline. | char ** |
In addition to the part occurrence data (id, alias_count, alias_ids), the HRN_ConHousing and its subtype have the following ocurrence specific attributes specified using structure HRN_connector_occ_data_t:
| structure_name.usage | Usage defined for the bomline | char * |
In addition to the part occurrence data (id, alias_count, alias_ids), the HRN_WireProtect and its subtype have the following ocurrence specific attributes specified in structure HRN_wire_protect_occ_data_t:
| structure_name.protect_length | protection length value on the bomline | double |
BOMLines of type HRN_Cavity (or subtype) can have the following occurrence specific attributes specified using structure HRN_cavity_occ_data_t:
| structure_name.id | Occurrence specific ID. | char *. |
| structure_name.position_on_wire | Position on wire specified on the line tag | double |
BOMLines of type HRN_GeneralWire, HRN_Core (or subtype) can have the following occurrence specific attributes specified using structure HRN_general_wire_occ_data_t:
| structure_name.wire_number | Wire number for the wire | char * |
| structure_name.multiplier | Multiplier value for the line tag | char * |
| structure_name.offset | Offset specified for the line tag | char * |
| structure_name.seperation_code | Seperation code specified for the line tag | char * |
The Protection area defined on the wire protection type line have the following occurrence specific attributes specified in structure HRN_protection_area_data_t:
| structure_name.end_location | Occurrence specific ID. | double |
| structure_name.start_location | Number of alias Ids specified. | double |
| structure_name.gradient | Alias Ids specified for the bomline. | double |
| structure_name.taping_direction | Alias Ids specified for the bomline. | char * |
The Fixing Assignment defined on the line type of Fixing/Accessory (or their subtypes) have the following fixing assignment attributes specified in structure HRN_fixing_assignment_data_t:
| structure_name.location_value | The location value for the line tag where the segment is specified | double |
| structure_name.orientation_value | The orientation value to be specified on the line tag | double[3] |
Certain harness types and subtypes , as specified in the preference HRN_wire_length_data_relation_primary, can have wire length information (length_type and length_value) specified on them. To retrieve all the wire length information associated to a bomline, use the structure HRN_wire_length_data_t:
| structure_name.length_type | The length type to be specified | char * |
| structure_name.length_value | The length value for the perticular length type on the bomline | double |
The item objects of type HRN_GeneralWire, HRN_Core and their subtypes can have wire color information associated on the item type. To retrieve all wire color information on a perticular item object tag use the structure HRN_wire_color_data_t:
| structure_name.color_type | The color type to be specified | char * |
| structure_name.color_value | The color value for the perticular color type on the object tag | char * |