第一范文网 - 专业文章范例文档资料分享平台

用CATScript 做的CATIA标题栏和工程图框

来源:用户分享 时间:2025/5/30 12:20:54 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

Col(5) = -156*mm Col(6) = -146*mm Col(7) = -140*mm Col(8) = -128*mm Col(9) = -116*mm Col(10) = -100*mm Col(11) = -93.5*mm Col(12) = - 87*mm Col(13) = -80.5*mm Col(14) = - 74*mm Col(15) = - 62*mm Col(16) = - 50*mm Row(1) = + 9*mm Row(2) = + 18*mm Row(3) = + 28*mm Row(4) = + 42*mm Row(5) = + 56*mm

Row(6) = + 38*mm 'revised

On Error Resume Next 'Rows

Set Line = Fact.CreateLine(OH + Col(1), OV , OH , OV )

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(1), OV + Row(5), OH , OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH +Col(10),OV + Row(1) , OH +Col(16) , OV + Row(1))

Line.Name = \

Set Line = Fact.CreateLine(OH +Col(10), OV + Row(2), OH , OV + Row(2))

Line.Name = \

Set Line = Fact.CreateLine(OH +Col(10), OV + Row(3), OH+Col(16) , OV + Row(3))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(16), OV + Row(6), OH , OV + Row(6))

Line.Name = \ For i=1 to Rows

Set Line = Fact.CreateLine(OH + Col(1), OV + (7*i), OH+ Col(10) , OV + (7*i))

Line.Name = \

Next 'Cols

Set Line = Fact.CreateLine(OH + Col(1), OV , OH + Col(1), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH , OV , OH , OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(2), OV+ Row(3) , OH + Col(2), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(3), OV , OH + Col(3), OV + Row(3))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(4), OV+ Row(3) , OH + Col(4), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(5), OV , OH + Col(5), OV + Row(3))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(6), OV+ Row(3) , OH + Col(6), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(7), OV , OH + Col(7), OV + Row(3))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(8), OV , OH + Col(8), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(9), OV , OH + Col(9), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH +Col(10), OV , OH +Col(10), OV + Row(5))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(11), OV+ Row(1), OH + Col(11), OV + Row(2))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(12), OV+ Row(1), OH + Col(12), OV + Row(2))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(13), OV+ Row(1), OH + Col(13), OV + Row(2))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(14), OV+ Row(1), OH + Col(14), OV + Row(3))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(15), OV+ Row(1), OH + Col(15), OV + Row(3))

Line.Name = \

Set Line = Fact.CreateLine(OH + Col(16), OV , OH + Col(16), OV + Row(5))

Line.Name = \

If Err.Number <> 0 Then Err.Clear End If

On Error Goto 0 End Sub

Sub CATTitleBlockText()

'-------------------------------------------------------------------------------

'How to fill in the title block

'------------------------------------------------------------------------------- CATLinks

'The Left-down subBlock. Text_01 = \指导教师\ Text_02 = \审核\ Text_03 = \设计\ Text_04 = \张国建\ Text_05 = \ Text_06 = \标准化\ Text_07 = \签名)\ Text_08 = \年月日)\ Text_09 = \批准\ Text_001 = \

'The Left-up subBlock. Text_10 = \标记\ Text_11 = \处数\ Text_12 = \分区\

Text_13 = \更改文件号\ Text_14 = \签名)\ Text_15 = \年月日)\

'The Middle subblock

Text_16 = \共 张 第 张 \ Text_17 = \比例\ Text_18 = \重量\

Text_19= \阶 段 标 记\ Text_20 = \材料标记)\ 'The right subblock

Text_21 = \上海方宇工业设计\ Text_22 =\图样名称)\

Text_23 = \课程设计专用图纸\

'The Left-down subBlockText.

Set Text = DrwTexts.Add(Text_01 , OH + Col(1) , OV+1 ) CATFormatTBText

\

Set Text = DrwTexts.Add(\ \OH + Col(3) , OV+1 ) CATFormatTBText

\

Set Text = DrwTexts.Add(\ \OH + Col(5) + 3. , OV+1 ) CATFormatTBText

\

Set Text = DrwTexts.Add(Text_02 , OH + Col(1)+2 , OV + Rowwidth ) CATFormatTBText

\

Set Text = DrwTexts.Add(\Rowwidth ) CATFormatTBText

\

Set Text = DrwTexts.Add(\Rowwidth ) CATFormatTBText

\

Set Text = DrwTexts.Add(Text_03 , OH + Col(1) + 2. , OV + (Rowwidth*3) ) CATFormatTBText

\

Set Text = DrwTexts.Add(\(Rowwidth*2) ) CATFormatTBText \\

Set Text = DrwTexts.Add(Text_04 , OH + Col(3) + 1. , OV+

搜索更多关于: 用CATScript 做的CATIA标题栏和工程图框 的文档
用CATScript 做的CATIA标题栏和工程图框.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c25ofx1hsfp9bpag88o11_3.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top