UG二次开发--装配--阵列请问UF_ASSEM_create_mc_array (UF_ASSEM_mc_array_data_p_t array_data, tag_t * array );函数UF_ASSEM_mc_array_data_p_t怎么填充呢?(请举例)

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 16:18:59

UG二次开发--装配--阵列请问UF_ASSEM_create_mc_array (UF_ASSEM_mc_array_data_p_t array_data, tag_t * array );函数UF_ASSEM_mc_array_data_p_t怎么填充呢?(请举例)
UG二次开发--装配--阵列
请问UF_ASSEM_create_mc_array (UF_ASSEM_mc_array_data_p_t array_data, tag_t * array );函数UF_ASSEM_mc_array_data_p_t怎么填充呢?(请举例)

UG二次开发--装配--阵列请问UF_ASSEM_create_mc_array (UF_ASSEM_mc_array_data_p_t array_data, tag_t * array );函数UF_ASSEM_mc_array_data_p_t怎么填充呢?(请举例)
Data Members
array_subtype
int
A flag indicating which type of array this is.
It will either be UF_ASSEM_linear_array or
UF_ASSEM_circular_array
.
master_component
tag_t
The tag of the master component for this
array
template_component
tag_t
The tag of the template component for this
array.
dimensions [ UF_ASSEM_max_dim_count ]
tag_t
An array of expression tags
which
determine the size of the array. For
linear arrays, the first element is the
number of components in the X direction, and
the second element is the
number of
components in the Y direction. For one
dimensional linear
arrays, the second
element will be NULL. For circular arrays,
the second
element will be NULL.
axis_definitions [
UF_ASSEM_max_dim_count ]
tag_t
The solid entities
(faces, datums, etc)
which determine the
direction of the array. For linear arrays,
the first
element defines the X direction,
and the second the Y direction. For one
dimensional linear arrays, the second element
will be NULL. For circular
arrays, the first
element is the central axis, and the second
is NULL.
If these solid objects are in
component part files, you should pass in
their occurrences in the assembly that
contains the array.
offsets [ UF_ASSEM_max_dim_count ]
tag_t
An array of expression tags
which
determine the spacing between array
elements. For linear arrays, the first
element is the X offset, and the second is
the Y offset. For one
dimensional linear
arrays, the second element will be NULL.
For circular
arrays, the first element is
the angle between components, and the
second is NULL.
array_name
char *
The name of the array object. When this value
is returned from an enquiry function, it is
dynamically allocated, and
must be freed with
UF_free.