forked from slacker-HD/creo_weblink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dimension.html
118 lines (110 loc) · 5.15 KB
/
dimension.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>自定义标注</title>
<link rel="stylesheet" type="text/css" href="./weblinkcss/style.css">
<link rel="stylesheet" type="text/css" href="./weblinkcss/highlight.css">
<script>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?767e3ea52a6b4f3c656cdd4119c87e62";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<script src="./weblinkjs/pfcUtils.js">
</script>
<script src="./weblinkjs/dimension.js">
</script>
<body vlink="purple" onload="init()">
<div class="body_container">
<div id="header">
<div class="site-name">
<a id="logo" href=".">Creo二次开发工具</a>
<p class="description">本页功能必须在Creo内置窗口打开才能使用。仅在win10 X64,Creo 2.0 M060 X64环境测试通过。</p>
</div>
</div>
</div>
<div class="body_container">
<div class="post">
<h1 class="post-title">当前打开的模型为:</h1>
<br />
<h2 class="post-title" id="currentModel">--</h2>
</div>
<div class="post">
<h1 class="post-title">自定义标注</h1>
<br />
<br />
<table border="1">
<tr>
<th>基本尺寸d</th>
<th>上偏差ES</th>
<th>下偏差EI</th>
<th>开始标注</th>
</tr>
<tr align="center">
<td>1<d≤30</td>
<td>0.02</td>
<td>0</td>
<td><button class="blue" onclick="CreateDiameter(1);"
style="width:280px">标注直径:d<sup>+0.02</sup><sub
style=" margin:0 0 0 -20px;">0</sub></button></td>
</tr>
<tr align="center">
<td>30<d≤100</td>
<td>0.2</td>
<td>-0.1</td>
<td><button class="blue" onclick="CreateDiameter(2);"
style="width:280px">标注直径:d<sup>+0.2</sup><sub
style=" margin:0 0 0 -20px;">-0.1</sub></button></td>
</tr>
<tr align="center">
<td>100<d</td>
<td>0.2</td>
<td>0</td>
<td><button class="blue" onclick="CreateDiameter(3);"
style="width:280px">标注直径:d<sup>+0.2</sup><sub
style=" margin:0 0 0 -15px;">0</sub></button></td>
</tr>
<tr align="center">
<td>100<d</td>
<td>0.2</td>
<td>0</td>
<td><button class="blue" onclick="CreateDiameter(4);" style="width:280px">标注直径:d±0.2</button>
</td>
</tr>
</table>
<p>点击标注直径按钮后双击圆弧再中键点击空白处完成直径的标注,程序将自动添加上述表格的公差。</p>
<br />
<button class="blue" onclick="HorizonArrange();" style="width:280px">水平对齐标注</button>
<br />
<p>首先在工程图中选择所有需要对齐的尺寸,之后点击本按钮,再在工程图中左键点击鼠标选择水平摆放坐标。</p>
<br />
<button class="blue" onclick="VerticalArrange();" style="width:280px">垂直对齐标注</button>
<br />
<p>首先在工程图中选择所有需要对齐的尺寸,之后点击本按钮,再在工程图中左键点击鼠标选择垂直摆放坐标。</p>
<br />
</div>
<div class="post">
<h1 class="post-title">尺寸导出</h1>
<br />
<br />
<button class="blue" onclick="Dims2Csv();" style="width:280px">下载csv文件</button>
<br />
<p>点击生成包含所有尺寸信息的表格。</p>
</div>
</div>
<div id="footer">
<div class="footer-info">
<p>本工具由胡迪开发</p>
<p>欢迎访问我的博客:<a target="_blank" href="http://www.hudi.site">http://www.hudi.site</a></p>
<p> Theme by
<a rel="nofollow" target="_blank" href="https://github.com/chaooo/hexo-theme-BlueLake"> BlueLake</a>
</p>
</div>
</div>
</body>
</html>