iCAx开思工具箱

标题: 请问版主:关于type和subtype [打印本页]

作者: cityrhythm    时间: 2005-11-2 17:18
标题: 请问版主:关于type和subtype
我要提取尺寸类型数据,应该找UF_dimension_type是么?那么那些尺寸的上下偏差应该是他的字类型吧?具体是哪种呢?我没有找到。是不是不在UF_dimension_type类型里阿?
UG中对dimension类型的定义如下:
#define UF_dimension_type                        26
#define    UF_dim_horizontal_subtype                   1
#define    UF_dim_vertical_subtype                     2
#define    UF_dim_parallel_subtype                     3
#define    UF_dim_cylindrical_subtype                  4
#define    UF_dim_perpendicular_subtype                5
#define    UF_dim_angular_minor_subtype                6
#define    UF_dim_angular_major_subtype                7
#define    UF_dim_arc_length_subtype                   8
#define    UF_dim_radius_subtype                       9
#define    UF_dim_diameter_subtype                    10
#define    UF_dim_hole_subtype                        11
#define    UF_dim_conc_circle_subtype                 12
#define    UF_dim_ordinate_horiz_subtype              13
#define    UF_dim_ordinate_vert_subtype               14
#define    UF_dim_assorted_parts_subtype              15
#define    UF_dim_folded_radius_subtype               16
#define    UF_dim_chain_dimensions_subtype            17
#define    UF_dim_ordinate_origin_subtype             18  /*CATa*/
#define    UF_dim_perimeter_subtype                   19
#define    UF_dim_chamfer_subtype                     20
作者: pzytony    时间: 2005-11-2 19:01
尺寸的上下偏差应该不是UF_dimension_type的子类型

下面的函数可能会对你有启发

uc5566

Edit Drafting Object Text. Replaces existing text in an existing
dimension/drafting aid. Can not be used to add text.
If the dimension text (dimensions) or main text (drafting aids) is
changed, the object is changed to indicate manual text.
作者: cityrhythm    时间: 2005-11-2 20:01
标题: 不耻下问阿
谢谢版主。我看看。
再问一句,遍历的时候为什么是返回一个tag呢?不是应该返回很多么(找到很多符合类型的obj啊)?
还有抛开上下偏差不谈,比如图纸中标注了直线尺寸6.500mm,是要查找UF_dimension_type么?子类型也要查么,如sub_type也==什么什么类型,在上面的尺寸子类型里我没找到符合6.500mm的线性长度尺寸子类型阿!

新手学习,多谢版主再帮忙!
作者: pzytony    时间: 2005-11-3 17:44
遍历一次只能得到一个对象
看一下ug_object_types.h文件




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