iCAx开思工具箱

标题: UF_ASSEM_add_to_assembly()怎么用? [打印本页]

作者: zhanghxing    时间: 2004-3-26 16:46
标题: UF_ASSEM_add_to_assembly()怎么用?

参数有哪些?
谢谢了、着急!
作者: liberty000    时间: 2004-3-29 09:29
看Documantation啊,里面讲的很清楚。
作者: Patton    时间: 2004-3-29 09:44
是啊!
作者: goodluckwu    时间: 2004-3-29 12:55
我看了帮助文档,没找到你说的函数,只有这个,看看是不是你要的
  
UF_ASSEM_add_part_to_assembly
  
Adds an instance of a part to a parent part. If the part is not loaded,
it is loaded into the current session. The instance is added to the parts
list according to the setting of the parts_list switch (see
UF_ASSEM_ask_assem_options and UF_ASSEM_options_s). The user allocated
structure error_status is filled with the names and associated error codes
of the loaded parts. The allocated arrays must be freed with UF_free and
UF_free_string_array.
  
If refset_name is a NULL pointer or a zero-length string, the entire part is
used. If instance_name is a NULL pointer or a zero-length string, the instance
is unnamed.
  
See Also
The following table of parameter values for this function is
based on the automobile example
See table
  
extern int UF_ASSEM_add_part_to_assembly (
tag_t parent_part,  
const char * part,  
const char * refset_name,  
const char * instance_name,  
double origin[ 3 ],  
double csys_matrix[ 6 ],  
int layer,  
tag_t * instance,  
UF_PART_load_status_t * error_status );
  
tag_t  parent_part Input tag of part to add instance to  
const char *  part Input name of part to instance. The part name can
include a directory path. This can not
exceed UF_CFI_MAX_PATH_NAME_LEN characters.  
const char *  refset_name Input Name of reference set to use from component
parts. The refset_name cannot exceed 30
characters, cannot include a directory path,
and should not have a file extension.  
const char *  instance_name Input Name of new instance The instance_name cannot
exceed 30 characters, cannot include a
directory path, and should not have a file
extension.  
double  origin[ 3 ] Input Position in <parent_part> where the instance
is to be created  
double  csys_matrix[ 6 ] Input Orientation of the instance  
int  layer Input -1 Means use the original layers.
0 Means use the work layer
1-255 Means use the specified layer.  
tag_t *  instance Output Tag of the new instance in the work part  
UF_PART_load_status_t *  error_status Output to be freed User allocted structure consisting of
names and associated error codes. The
allocated arrays must be freed with
UF_free_string_array and UF_free.
See the description of the
UF_PART_load_status_t structure for
details on freeing this structure.  
  
Environment
Internal and External




欢迎光临 iCAx开思工具箱 (https://t.icax.org/) Powered by Discuz! X3.3