UF_FLTR_ask_box_of_assy (查看源代码)
 
定义在: uf_fltr.h
 
概述
Returns the bounding box information for an assembly and all of the
components in it, or for a particular component. The edges of the box
are parallel to the axis of the absolute coordinate system.

环境
内部和外部

历史
This function was originally released in V13.0.4.
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_ask_box_of_assy
(
tag_t assy,
double centroid [ 3 ] ,
double corner [ 3 ] ,
double orientation [ 9 ]
)
tag_t (tag_t类型)assyInput(输入)Tag of the assembly, component, or subassembly to box.
double (实数型)centroid [ 3 ] Output(输出)Center of box
double (实数型)corner [ 3 ] Output(输出)Corner vector (points to most positive box corner)
double (实数型)orientation [ 9 ] Output(输出)Orientation of box with respect to absolute
coordinate system.

 


 
UF_FLTR_ask_box_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Outputs the parameters of the box zone specified by a tag.

The corner value represents an offset position which can be
subtracted from the centroid position to give the minimum corner,
or added to the centroid position to give the maximum corner.
The corner value is always positive in value.

Say the bounding box has a minimum corner of 0,0,0 and
maximum corner of 100,100,100. The centroid is at
((0,0,0)+(100,100,100))/2 = (50,50,50) whilst the
corner calculation is ((100,100,100)-(0,0,0))/2 = (50,50,50).

环境
内部和外部

参见
See the example for UF_FLTR_create_box_zone
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_ask_box_zone
(
tag_t box_zone,
char* name,
double centroid [ 3 ] ,
double corner [ 3 ] ,
double matrix [ 9 ]
)
tag_t (tag_t类型)box_zoneInput(输入)Tag of zone being queried
char*nameInput(输入)Name of zone being queried (30 chars max)
double (实数型)centroid [ 3 ] Output(输出)Centroid of zone (in Absolute Coordinates.)
double (实数型)corner [ 3 ] Output(输出)Corner vector
double (实数型)matrix [ 9 ] Output(输出)Orientation of zone.

 


 
UF_FLTR_ask_filter (查看源代码)
 
定义在: uf_fltr.h
 
概述
Returns name and condition of a given filter.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_ask_filter
(
tag_t filter_tag,
char * name,
char * condition
)
tag_t (tag_t类型)filter_tagInput(输入)Filter which is being queried
char * (字符型指针)nameOutput(输出)Name of filter (30 chars max).
char * (字符型指针)conditionOutput(输出)Condition of filter (132 chars max).

 


 
UF_FLTR_ask_plane_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Outputs the parameters of the plane zone referred to by a tag.

环境
内部和外部

参见
See the example for UF_FLTR_create_box_zone
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_ask_plane_zone
(
tag_t plane_zone,
char name [ 30 ] ,
double origin [ 3 ] ,
double matrix [ 9 ]
)
tag_t (tag_t类型)plane_zoneInput(输入)tag of zone being queried.
charname [ 30 ] Input(输入)Name of zone being queried (30 chars max)
double (实数型)origin [ 3 ] Output(输出)Origin of zone (in Absolute Coordinates.)
double (实数型)matrix [ 9 ] Output(输出)Orientation of plane.

 


 
UF_FLTR_auto_create_box_zones (查看源代码)
 
定义在: uf_fltr.h
 
概述
Automatically generates box zones along all 3 axes of the WCS in a
part. If use_part_volume is TRUE, the zones are created to divide up
the entire volume occupied by the part.

环境
内部和外部
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_auto_create_box_zones
(
tag_t part_tag,
char * prefix_text,
int num_in_dir [ 3 ] ,
logical use_part_volume,
double user_spec_vol [ 3 ] ,
double user_spec_origin [ 3 ] ,
tag_t * * zone_list,
int * num_zones_created
)
tag_t (tag_t类型)part_tagInput(输入)part in which zones are to be created.
char * (字符型指针)prefix_textInput(输入)Name to be used as prefix of auto-generated
zones. (e.g. "ZONE" makes ZONE1, ZONE2 etc.)
int (整数型)num_in_dir [ 3 ] Input(输入)Number of zones to be created in each direction of
the WCS.
num_in_dir[0] = number of zones in X direction
num_in_dir[1] = number of zones in Y direction
num_in_dir[2] = number of zones in Z direction
logicaluse_part_volumeInput(输入)Flag which indicates region to be zoned. if TRUE,
part extents are used. If FALSE, user_spec_vol and
user_spec_origin are used (See below).
double (实数型)user_spec_vol [ 3 ] Input(输入)User specified volume to be zoned. If
use_part_volume is TRUE, user_spec_vol is
ignored.
user_spec_vol[0] extent of volume in X direction
user_spec_vol[1] extent of volume in Y direction
user_spec_vol[2] extent of volume in Z direction
double (实数型)user_spec_origin [ 3 ] Input(输入)User specified origin of volume to be zoned. If
use_part_volume is TRUE, user_spec_origin is
ignored.
user_spec_origin[0] X coordinate of origin
user_spec_origin[1] Y coordinate of origin
user_spec_origin[2] Z coordinate of origin.
tag_t * *zone_listOutput to be freed
输出并释放
List of resulting zone tags. Must be freed by the
caller using UF_free.
int * (整数型指针)num_zones_createdOutput(输出)Number of zones in zone_list.

 


 
UF_FLTR_auto_create_plane_zones (查看源代码)
 
定义在: uf_fltr.h
 
概述
Automatically generates plane zones along the Z axis of the WCS in a
part. If use_part_disp is TRUE, the zones are created to cover the
entire Z displacement of the part.

环境
内部和外部

参见
Refer to the example
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_auto_create_plane_zones
(
tag_t part_tag,
char * prefix_text,
int num_in_dir,
logical use_part_disp,
double user_spec_z_disp,
double user_spec_origin [ 3 ] ,
tag_t * * zone_list,
int * num_zones_created
)
tag_t (tag_t类型)part_tagInput(输入)part in which zones are to be created.
char * (字符型指针)prefix_textInput(输入)Name to be used as prefix of auto-generated
zones. (e.g. "ZONE" makes ZONE1, ZONE2 etc.)
int (整数型)num_in_dirInput(输入)Number of zones to be created in the Z direction of
the WCS.
logicaluse_part_dispInput(输入)Flag which indicates region to be zoned. if TRUE,
part extents along the Z axis of WCS are used. If
FALSE, user_spec_z_disp and user_spec_origin are
used (See below).
double (实数型)user_spec_z_dispInput(输入)User specified Z displacement to be zoned. If
use_part_disp is TRUE, this argument is ignored.
double (实数型)user_spec_origin [ 3 ] Input(输入)User specified origin of volume to be zoned. If
use_part_disp is TRUE, user_spec_origin is
ignored.
user_spec_origin[0] X coordinate of origin
user_spec_origin[1] Y coordinate of origin
user_spec_origin[2] Z coordinate of origin.
tag_t * *zone_listOutput to be freed
输出并释放
List of resulting zone tags. Must be freed by the
caller using UF_free.
int * (整数型指针)num_zones_createdOutput(输出)Number of zones in zone_list.

 


 
UF_FLTR_create_box_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Creates a box zone and returns its tag. The centroid is the center
point of the box zone (in Absolute coordinates). The corner is a
vector describing the most positive corner of the box relative to the
centroid. The orientation is the orientation of the zone to be created.

环境
内部和外部

参见
Refer to the example
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_create_box_zone
(
tag_t part_tag,
char * name,
double centroid [ 3 ] ,
double corner [ 3 ] ,
double orientation [ 9 ] ,
tag_t * zone_tag
)
tag_t (tag_t类型)part_tagInput(输入)Part in which zone is to be created.
char * (字符型指针)nameInput(输入)Name of zone to be created.
double (实数型)centroid [ 3 ] Input(输入)Centroid of zone (in Absolute Coordinates.)
double (实数型)corner [ 3 ] Input(输入)Corner vector (points to most positive box corner)
double (实数型)orientation [ 9 ] Input(输入)Orientation of zone with respect to absolute.
tag_t * (tag_t型的指针)zone_tagInput / OutputTag of zone created.

 


 
UF_FLTR_create_filter (查看源代码)
 
定义在: uf_fltr.h
 
概述
Creates a filter object given the name and condition.

环境
内部和外部
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_create_filter
(
tag_t part_tag,
char * name,
char * condition,
tag_t * zone_tag
)
tag_t (tag_t类型)part_tagInput(输入)part in which filter is to be created.
char * (字符型指针)nameInput(输入)Name of filter to be created.
char * (字符型指针)conditionInput(输入)Condition of filter to be created. For example,
"Within(0,ZONE_PLANE_P1)"
tag_t * (tag_t型的指针)zone_tagInput / OutputTag of filter created.

 


 
UF_FLTR_create_plane_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Creates a plane zone given the origin and orientation. Origin and
Creates a plane zone given the origin and orientation. Origin and

环境
内部和外部

参见
See the example for UF_FLTR_create_box_zone
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_create_plane_zone
(
tag_t part_tag,
char * name,
double origin [ 3 ] ,
double orientation [ 9 ] ,
tag_t * zone_tag
)
tag_t (tag_t类型)part_tagInput(输入)Part in which zone is to be created.
char * (字符型指针)nameInput(输入)Name of zone to be created.
double (实数型)origin [ 3 ] Input(输入)Origin of zone (in Absolute Coordinates.)
double (实数型)orientation [ 9 ] Input(输入)Orientation of plane zone.
tag_t * (tag_t型的指针)zone_tagInput / OutputTag of zone created.

 


 
UF_FLTR_edit_box_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Modifies the box zone referred to by a tag to have the values passed
in by name, centroid, corner and matrix.

环境
内部和外部

参见
See the example for UF_FLTR_create_box_zone
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_edit_box_zone
(
tag_t zone,
char * name,
double centroid [ 3 ] ,
double corner [ 3 ] ,
double matrix [ 9 ]
)
tag_t (tag_t类型)zoneInput(输入)Tag of zone to be edited.
char * (字符型指针)nameInput(输入)New name of zone.
double (实数型)centroid [ 3 ] Input(输入)New centroid of zone (in Absolute Coordinates.)
double (实数型)corner [ 3 ] Input(输入)New corner vector
double (实数型)matrix [ 9 ] Input(输入)New orientation of zone.

 


 
UF_FLTR_edit_filter (查看源代码)
 
定义在: uf_fltr.h
 
概述
Gives filter new name and condition.

环境
内部和外部
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_edit_filter
(
tag_t filter_tag,
char * name,
char * condition
)
tag_t (tag_t类型)filter_tagInput(输入)Filter which is being edited
char * (字符型指针)nameInput(输入)New name of filter (30 chars max).
char * (字符型指针)conditionInput(输入)New condition of filter (132 chars max).

 


 
UF_FLTR_edit_plane_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Modifies the plane zone referred to by a tag to have the values passed
in by name, origin and matrix.

环境
内部和外部

参见
See the example for UF_FLTR_create_box_zone
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_edit_plane_zone
(
tag_t zone,
char * name,
double origin [ 3 ] ,
double matrix [ 9 ]
)
tag_t (tag_t类型)zoneInput(输入)tag of zone to be modified.
char * (字符型指针)nameInput(输入)New name of zone.
double (实数型)origin [ 3 ] Input(输入)New origin of zone (in Absolute Coordinates.)
double (实数型)matrix [ 9 ] Input(输入)New orientation of plane.

 


 
UF_FLTR_evaluate_filter (查看源代码)
 
定义在: uf_fltr.h
 
概述
Evaluate whether object matches the given filter.

环境
内部和外部
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_evaluate_filter
(
tag_t input_object,
tag_t filter_tag,
logical * result
)
tag_t (tag_t类型)input_objectInput(输入)Object to test against filter. Currently only part
occurrences are supported.
tag_t (tag_t类型)filter_tagInput(输入)Tag of filter in question.
logical *resultOutput(输出)Result of filter evaluation. TRUE if object matches
the given filter. Otherwise FALSE.

 


 
UF_FLTR_is_obj_above_plane_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Tests whether a part occurrence is above a planar zone. Note that this
function can only be used with a plane zone.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_is_obj_above_plane_zone
(
tag_t zone,
tag_t object,
logical * result
)
tag_t (tag_t类型)zoneInput(输入)Tag of zone. Must be a plane zone.
tag_t (tag_t类型)objectInput(输入)tag of object. Currently only part occurrences are
supported.
logical *resultOutput(输出)Result of comparison:
TRUE = if any portion of object is above the plane
specified by zone.
FALSE = if no portion of object is above the plane
i specified by zone.

 


 
UF_FLTR_is_obj_inside_box_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Tests whether an object is further than some distance of a zone.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_is_obj_inside_box_zone
(
double distance,
tag_t zone,
tag_t object,
logical * result
)
double (实数型)distanceInput(输入)Distance between zone and part occurrence (in part units).
tag_t (tag_t类型)zoneInput(输入)Tag of zone. (Must be box zone)
tag_t (tag_t类型)objectInput(输入)Tag of object. Currently only part occurrences are supported.
logical *resultOutput(输出)Result of comparison.
result = TRUE if no portion of object is further
than distance from zone.
result = FALSE if any portion of object is further
than distance from zone.

 


 
UF_FLTR_is_obj_intsct_zone (查看源代码)
 
定义在: uf_fltr.h
 
概述
Tests whether an object is within some distance of a zone. Currently
the object can only be a part occurrence. The zone can be either a box
or a plane zone.

环境
内部和外部
 
需要许可证(S)
gateway (UG入口基本模块,Gateway是所有其它Uuigraphics模块的一个必要条件)

 
int UF_FLTR_is_obj_intsct_zone
(
double distance,
tag_t zone,
tag_t object,
logical * result
)
double (实数型)distanceInput(输入)Distance between zone and part occurrence (in part
units).
tag_t (tag_t类型)zoneInput(输入)Tag of zone.
tag_t (tag_t类型)objectInput(输入)tag of object. Currently only part occurrences are
supported.
logical *resultOutput(输出)Result of comparison.
result = TRUE if some portion of object is within
distance of zone.
result = FALSE if no portion of object is within
distance of zone.

 


 
UF_FLTR_object_has_box (查看源代码)
 
定义在: uf_fltr.h
 
概述
Returns if the given NX object has a bounding box recorded for it.

环境
内部和外部

历史
This function was originally released in V18.0.5.2
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_object_has_box
(
tag_t object,
logical * has_box
)
tag_t (tag_t类型)objectInput(输入)Tag of the object to question.
logical *has_boxOutput(输出)True if the object has a box, false otherwise

 


 
UF_FLTR_update_structure (查看源代码)
 
定义在: uf_fltr.h
 
概述
Updates the assembly structure of the given part.
The interactively equivalent is found on the assembly node in the
Assembly Navitagor (ANT) as Update Structure.
It uses file time stamps to see which parts have been modified since
the assembly was last saved, these parts are then loaded to get the
assembly structure, and component attributes, up to date, and are
then unloaded.

环境
内部和外部

历史
This function was originally released in V15.0.
 
需要许可证(S)
adv_assemblies

 
int UF_FLTR_update_structure
(
tag_t part
)
tag_t (tag_t类型)partInput(输入)part to update assembly structure of