可以参考我以前的帖子,看几个IGES实际文件,并对应分析一下
这是proe生成的只有两个点的IGES文件
显示问题格式没有对齐
PTC IGES file: prt0001.igs S 1
1H,,1H;,7HPRT0001,11Hprt0001.igs, G 1
49HPro/ENGINEER by Parametric Technology Corporation,7H2003370,32,38,7, G 2
38,15,7HPRT0001,1.,1,4HINCH,32768,0.5,13H071107.172240,0.0363072, G 3
363.086,4HOhio,7HUnknown,10,0,13H071107.172240; G 4
314 1 1 1 0 0 0 001000200D 1
314 0 2 1 0 COLOR 1D 2
314 2 1 1 0 0 0 001000200D 3
314 0 2 1 0 COLOR 2D 4
314 3 1 1 0 0 0 001000200D 5
314 0 8 1 0 COLOR 3D 6
406 4 1 1 0 0 0 001000000D 7
406 0 0 1 15 PROP 1D 8
116 5 1 1 0 0 0 000000000D 9
116 0 -1 1 0 POINT 1D 10
406 6 1 1 0 0 0 001000000D 11
406 0 0 1 15 PROP 2D 12
116 7 1 1 0 0 0 000000000D 13
116 0 -1 1 0 POINT 2D 14
406 8 1 1 0 0 0 001000000D 15
406 0 0 1 15 PROP 3D 16
402 9 1 1 0 0 0 000000300D 17
402 0 0 1 7 LAYER 1D 18
314,5.803921568627D1,0D0,1.607843137255D1; 1P 1
314,6.666666666667D1,4.627450980392D1,2.196078431373D1; 3P 2
314,8.784D1,9.49D1,1D2; 5P 3
406,1,4HPNT0; 7P 4
116,0D0,2.5433D2,1.5253D2,0,0,1,7; 9P 5
406,1,4HPNT1; 11P 6
116,-2.5433D2,0D0,1.0289D2,0,0,1,11; 13P 7
406,1,20H04___PRT_ALL_DTM_PNT; 15P 8
402,2,9,13,0,1,15; 17P 9
S 1G 4D 18P 9 T 1
这是UG NX4生成的只有两个点的IGES文件
S 1
1H,,1H;,66HF:/My Documents/Visual Studio Projects/ex_iges5/test/twopointG 1
s.prt,66HF:/My Documents/Visual Studio Projects/ex_iges5/test/twopoints.G 2
igs,7HNX V4.0,16HUGS NX IGES V4.0,32,38,16,38,16,66HF:/My Documents/VisuG 3
al Studio Projects/ex_iges5/test/twopoints.prt,1.0,2,2HMM,3,0.0,15H20071G 4
111.123218,1.0E-005,10000.0,,,11,0,15H20011111.123200; G 5
314 1 1 1 0 0 200D 1
314 2 4 1 0 0D 2
116 2 1 1 0 0 0D 3
116 2 -1 1 0 0D 4
116 3 1 1 0 0 0D 5
116 2 -1 1 0 0D 6
108 4 1 1 0 0 10100D 7
108 2 0 1 0 0D 8
108 5 1 1 0 0 10100D 9
108 2 0 1 0 0D 10
108 6 1 1 0 0 10100D 11
108 2 0 1 0 0D 12
108 7 1 1 0 0 10100D 13
108 2 0 1 0 0D 14
406 8 1 1 0 0 10000D 15
406 2 0 1 15 0D 16
410 9 1 256 0 0 100D 17
410 2 0 1 0 TOP 0D 18
124 10 1 1 0 0 0D 19
124 2 0 1 0 0D 20
108 11 1 1 0 0 10100D 21
108 2 0 1 0 0D 22
108 12 1 1 0 0 10100D 23
108 2 0 1 0 0D 24
108 13 1 1 0 0 10100D 25
108 2 0 2 0 0D 26
108 15 1 1 0 0 10100D 27
108 2 0 2 0 0D 28
406 17 1 1 0 0 10000D 29
406 2 0 1 15 0D 30
410 18 1 256 0 19 100D 31
410 2 0 1 0 FRONT 0D 32
124 19 1 1 0 0 0D 33
124 2 0 1 0 0D 34
108 20 1 1 0 0 10100D 35
108 2 0 1 0 0D 36
108 21 1 1 0 0 10100D 37
108 2 0 1 0 0D 38
108 22 1 1 0 0 10100D 39
108 2 0 2 0 0D 40
108 24 1 1 0 0 10100D 41
108 2 0 2 0 0D 42
406 26 1 1 0 0 10000D 43
406 2 0 1 15 0D 44
410 27 1 256 0 33 100D 45
410 2 0 1 0 RIGHT 0D 46
124 28 1 1 0 0 0D 47
124 2 0 1 0 0D 48
108 29 1 1 0 0 10100D 49
108 2 0 1 0 0D 50
108 30 1 1 0 0 10100D 51
108 2 0 1 0 0D 52
108 31 1 1 0 0 10100D 53
108 2 0 2 0 0D 54
108 33 1 1 0 0 10100D 55
108 2 0 2 0 0D 56
406 35 1 1 0 0 10000D 57
406 2 0 1 15 0D 58
410 36 1 256 0 47 100D 59
410 2 0 1 0 BACK 0D 60
124 37 1 1 0 0 0D 61
124 2 0 1 0 0D 62
108 38 1 1 0 0 10100D 63
108 2 0 1 0 0D 64
108 39 1 1 0 0 10100D 65
108 2 0 1 0 0D 66
108 40 1 1 0 0 10100D 67
108 2 0 1 0 0D 68
108 41 1 1 0 0 10100D 69
108 2 0 1 0 0D 70
406 42 1 1 0 0 10000D 71
406 2 0 1 15 0D 72
410 43 1 256 0 61 100D 73
410 2 0 1 0 BOTTOM 0D 74
124 44 1 1 0 0 0D 75
124 2 0 1 0 0D 76
108 45 1 1 0 0 10100D 77
108 2 0 1 0 0D 78
108 46 1 1 0 0 10100D 79
108 2 0 1 0 0D 80
108 47 1 1 0 0 10100D 81
108 2 0 2 0 0D 82
108 49 1 1 0 0 10100D 83
108 2 0 2 0 0D 84
406 51 1 1 0 0 10000D 85
406 2 0 1 15 0D 86
410 52 1 256 0 75 100D 87
410 2 0 1 0 LEFT 0D 88
124 53 1 1 0 0 0D 89
124 2 0 3 0 0D 90
108 56 1 1 0 0 10100D 91
108 2 0 2 0 0D 92
108 58 1 1 0 0 10100D 93
108 2 0 2 0 0D 94
108 60 1 1 0 0 10100D 95
108 2 0 3 0 0D 96
108 63 1 1 0 0 10100D 97
108 2 0 3 0 0D 98
406 66 1 1 0 0 10000D 99
406 2 0 1 15 0D 100
410 67 1 256 0 89 100D 101
410 2 0 1 0 TFR-ISO 0D 102
124 68 1 1 0 0 0D 103
124 2 0 3 0 0D 104
108 71 1 1 0 0 10100D 105
108 2 0 2 0 0D 106
108 73 1 1 0 0 10100D 107
108 2 0 2 0 0D 108
108 75 1 1 0 0 10100D 109
108 2 0 3 0 0D 110
108 78 1 1 0 0 10100D 111
108 2 0 3 0 0D 112
406 81 1 1 0 0 10000D 113
406 2 0 1 15 0D 114
410 82 1 256 0 103 100D 115
410 2 0 1 0 TFR-TRI 0D 116
314,0.0,0.0,80.0,14HDark Hard Blue,0,0; 1P 1
116,1.0,2.0,3.0,0,0,0; 3P 2
116,4.0,5.0,6.0,0,0,0; 5P 3
108,1.0,0.0,0.0,156.75,0,156.75,3.5,4.5,0.0,0,0; 7P 4
108,1.0,0.0,0.0,-151.75,0,-151.75,3.5,4.5,0.0,0,0; 9P 5
108,0.0,1.0,0.0,74.0,0,2.5,74.0,4.5,0.0,0,0; 11P 6
108,0.0,1.0,0.0,-67.0,0,2.5,-67.0,4.5,0.0,0,0; 13P 7
406,1,3HTOP,0,0; 15P 8
410,1,1.0,9,11,7,13,0,0,0,1,15; 17P 9
124,1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,-1.0,0.0,0.0,0,0; 19P 10
108,1.0,0.0,0.0,156.75,0,156.75,3.5,4.5,0.0,0,0; 21P 11
108,1.0,0.0,0.0,-151.75,0,-151.75,3.5,4.5,0.0,0,0; 23P 12
108,0.0,0.0,1.0,555.500964155236,0,2.5,3.5,555.500964155236,0.0, 25P 13
0,0; 25P 14
108,0.0,0.0,1.0,-546.500964155236,0,2.5,3.5,-546.500964155236, 27P 15
0.0,0,0; 27P 16
406,1,5HFRONT,0,0; 29P 17
410,2,1.0,23,25,21,27,0,0,0,1,29; 31P 18
124,0.0,1.0,0.0,0.0,0.0,0.0,1.0,0.0,1.0,0.0,0.0,0.0,0,0; 33P 19
108,0.0,1.0,0.0,74.0,0,2.5,74.0,4.5,0.0,0,0; 35P 20
108,0.0,1.0,0.0,-67.0,0,2.5,-67.0,4.5,0.0,0,0; 37P 21
108,0.0,0.0,1.0,555.500964155236,0,2.5,3.5,555.500964155236,0.0, 39P 22
0,0; 39P 23
108,0.0,0.0,1.0,-546.500964155236,0,2.5,3.5,-546.500964155236, 41P 24
0.0,0,0; 41P 25
406,1,5HRIGHT,0,0; 43P 26
410,3,1.0,37,39,35,41,0,0,0,1,43; 45P 27
124,-1.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,1.0,0.0,0.0,0,0; 47P 28
108,-1.0,0.0,0.0,151.75,0,-151.75,3.5,4.5,0.0,0,0; 49P 29
108,-1.0,0.0,0.0,-156.75,0,156.75,3.5,4.5,0.0,0,0; 51P 30
108,0.0,0.0,1.0,555.500964155236,0,2.5,3.5,555.500964155236,0.0, 53P 31
0,0; 53P 32
108,0.0,0.0,1.0,-546.500964155236,0,2.5,3.5,-546.500964155236, 55P 33
0.0,0,0; 55P 34
406,1,4HBACK,0,0; 57P 35
410,4,1.0,51,53,49,55,0,0,0,1,57; 59P 36
124,1.0,0.0,0.0,0.0,0.0,-1.0,0.0,0.0,0.0,0.0,-1.0,0.0,0,0; 61P 37
108,1.0,0.0,0.0,156.75,0,156.75,3.5,4.5,0.0,0,0; 63P 38
108,1.0,0.0,0.0,-151.75,0,-151.75,3.5,4.5,0.0,0,0; 65P 39
108,0.0,-1.0,0.0,67.0,0,2.5,-67.0,4.5,0.0,0,0; 67P 40
108,0.0,-1.0,0.0,-74.0,0,2.5,74.0,4.5,0.0,0,0; 69P 41
406,1,6HBOTTOM,0,0; 71P 42
410,5,1.0,65,67,63,69,0,0,0,1,71; 73P 43
124,0.0,-1.0,0.0,0.0,0.0,0.0,1.0,0.0,-1.0,0.0,0.0,0.0,0,0; 75P 44
108,0.0,-1.0,0.0,67.0,0,2.5,-67.0,4.5,0.0,0,0; 77P 45
108,0.0,-1.0,0.0,-74.0,0,2.5,74.0,4.5,0.0,0,0; 79P 46
108,0.0,0.0,1.0,555.500964155236,0,2.5,3.5,555.500964155236,0.0, 81P 47
0,0; 81P 48
108,0.0,0.0,1.0,-546.500964155236,0,2.5,3.5,-546.500964155236, 83P 49
0.0,0,0; 83P 50
406,1,4HLEFT,0,0; 85P 51
410,6,1.0,79,81,77,83,0,0,0,1,85; 87P 52
124,0.707106781186548,0.707106781186548,0.0,0.0, 89P 53
-0.408248290463863,0.408248290463863,0.816496580927726,0.0, 89P 54
0.577350269189626,-0.577350269189626,0.577350269189626,0.0,0,0; 89P 55
108,0.707106781186548,0.707106781186548,0.0,163.164889758796,0, 91P 56
114.875,115.875,4.5,0.0,0,0; 91P 57
108,0.707106781186548,0.707106781186548,0.0,-154.679608384557,0, 93P 58
-109.875,-108.875,4.5,0.0,0,0; 93P 59
108,-0.408248290463863,0.408248290463863,0.816496580927726, 95P 60
545.726689507023,0,-218.625321385079,224.625321385079, 95P 61
446.750642770158,0.0,0,0; 95P 62
108,-0.408248290463863,0.408248290463863,0.816496580927726, 97P 63
-537.561723697746,0,223.625321385079,-217.625321385079, 97P 64
-437.750642770158,0.0,0,0; 97P 65
406,1,7HTFR-ISO,0,0; 99P 66
410,7,1.0,93,95,91,97,0,0,0,1,99; 101P 67
124,0.63121905864763,0.775604602874429,0.0,0.0, 103P 68
-0.291176881826266,0.236971772169955,0.926855114181588,0.0, 103P 69
0.718873092756943,-0.585048612676443,0.375419228750255,0.0,0,0; 103P 70
108,0.63121905864763,0.775604602874429,0.0,156.338328055724,0, 105P 71
98.4741210902962,121.427317077439,4.5,0.0,0,0; 105P 72
108,0.63121905864763,0.775604602874429,0.0,-147.753000542365,0, 107P 73
-93.4741210902962,-114.427317077439,4.5,0.0,0,0; 107P 74
108,-0.291176881826266,0.236971772169955,0.926855114181588, 109P 75
576.590912517796,0,-164.145946962379,139.123354192582, 109P 76
534.956426454464,0.0,0,0; 109P 77
108,-0.291176881826266,0.236971772169955,0.926855114181588, 111P 78
-568.046298494104,0,169.145946962379,-132.123354192582, 111P 79
-525.956426454464,0.0,0,0; 111P 80
406,1,7HTFR-TRI,0,0; 113P 81
410,8,1.0,107,109,105,111,0,0,0,1,113; 115P 82
S 1G 5D 116P 82 T 1
全局段分析
索引 |
类型 |
描述 |
|
|
1 |
字符串 |
参数分隔符(缺省为逗号) |
1H, |
1H, |
2 |
字符串 |
记录分隔符(缺省为分号) |
1H; |
1H; |
3 |
字符串 |
发送系统产品ID |
7HPRT0001 |
66HF:/My Documents/Visual Studio Projects/ex_iges5/test/twopoints.prt |
4 |
字符串 |
文件名 |
11Hprt0001.igs |
66HF:/My Documents/Visual Studio Projects/ex_iges5/test/twopoints.igs |
5 |
字符串 |
系统ID |
9HPro/ENGINEER by Parametric Technology Corporation |
7HNX V4.0 |
6 |
字符串 |
前置处理器版本 |
7H2003370 |
16HUGS NX IGES V4.0 |
7 |
整数 |
整数的二进制表示位数 |
32 |
32 |
8 |
整数 |
发送系统单精度浮点数十进制最大幂次 |
38 |
38 |
9 |
整数 |
发送系统单精度浮点数有效位数 |
7 |
16 |
10 |
整数 |
发送系统双精度浮点数十进制最大幂次 |
38 |
38 |
11 |
整数 |
发送系统双精度浮点数有效位数 |
15 |
16 |
12 |
字符串 |
接收系统产品ID |
7HPRT0001 |
66HF:/My Documents/Visual Studio Projects/ex_iges5/test/twopoints.prt |
13 |
实数 |
模型空间比例 |
1. |
1.0 |
14 |
整数 |
单位标志 |
1 |
2 |
15 |
字符串 |
单位 |
4HINCH |
2HMM |
16 |
整数 |
直线线宽的最大等级 |
32768 |
3 |
17 |
实数 |
最大直线线宽 |
0.5 |
0.0 |
18 |
字符串 |
交换文件生成的日期和时间,格式13HYYMMDD.HHNNSS,其中 13表示字符串长度,“H”表示字符串, YY年数的末两位 HH 小时(00-23) MM 月(01-12) NN 分钟(00-59) DD 日(01-31) SS 秒(00-59) |
13H071107.172240 |
15H20071111.123218 |
19 |
实数 |
用户设定的模型等级的最小值 |
0.0363072 |
1.0E-005 |
20 |
实数 |
模型的近似最大坐标值 |
363.086 |
10000.0 |
21 |
字符串 |
作者名 |
4HOhio |
|
22 |
字符串 |
作者单位 |
7HUnknown |
|
23 |
整数 |
对应于创建本文件的IGES标准版本号的整数 |
10 |
11 |
24 |
整数 |
绘图标准 |
0 |
0 |
25 |
字符串 |
创建或最近修改模型的日期和时间 |
13H071107.172240 |
15H20011111.123200 |
注:上面是两个文件的全局段分析
索引段分析:
314 1 1 1 0 0 0 001000200D 1
314 0 2 1 0 COLOR 1D 2
116 5 1 1 0 0 0 000000000D 9
116 0 -1 1 0 POINT 1D 10
(1)元素类型号;
|
314
|
116
|
(2)参数指针,说明该元素的参数在参数数据段的开始行号;
|
1
|
5
|
(3)版本,说明采用的IGES版本号;
|
1
|
1
|
(4)线型,IGES文件中的线型用整数表示,所提供的线型如下:
1:Solid(实线)
2:Dashed(虚线)
3:Phantom(剖面线)
4:Center(中心线)
其它线型,需在文件中自行定义;
|
1
|
1
|
(5)图层,存放图层名或它的指针;
|
0
|
0
|
(6)视图,存放视图指针;
|
0
|
0
|
(7)变换矩阵,此项为块插入时相应的变换矩阵的索引在索引段的开始行号;
|
0
|
0
|
(8)标号显示;
|
0
|
0
|
(9)状态号,从左到右,每两个字符含义如下:
第1,2个字符:存在的状态;
第3,4个字符:相关性;
第5,6个字符:形成特征;
第7,8个字符:体系特征。
|
01000200
01
00
02
00
|
00000000
|
(10)段码和序号;
|
D 1
|
D 9
|
(11)元素类型号,同第一项;
|
314
|
116
|
(12)直线的权号;
|
0
|
0
|
(13)颜色号,IGES文件中颜色号定义如下:
1:Black 黑
2:Red 红
3:Green 绿
4:Blue 蓝
5:Yellow 黄
6:Magenta 深红
7:Cyan 青
8:White 白
|
2
|
-1
|
(14)参数记录数,元素的参数在参数数据段中的行数;
|
1
|
1
|
(15)形式号,细分元素为不同的形式,不同元素其形式号的含义也不同;
|
0
|
0
|
(16)留作将来使用;
|
|
|
(17)留作将来使用;
|
|
|
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
begtostudy
微信号:Begtostudy QQ:370566617 Email: [email protected] 点击这里给我发邮件 工作单位:上海航天技术研究院 身份:上海交通大学 工学博士 校内名片 (不经常上饮水思源BBS) 专业领域: 专业知识和非编程相关技术 口号: 科学点亮未来,技术改变世界! 只收博士(后)交流QQ群 187429777 中青年博士(生)奋斗QQ群 243459837 企业/研所/政府博士QQ群 85909446 上海工作博士QQ群 129432610 理论与数学应用互助QQ群 6314910 非商业联合开发俱乐部QQ群 106930856
|