资源简介
个人利用Catia的COM接口开发的小程序,支持Catia V5 R14及以上版本,内附使用说明PDF,解压运行exe即可,程序能自动启动CATIA程序并生成齿轮
代码片段和文件信息
/*
The MIT License (MIT)
Copyright (c) 2016 Lentil Sun
Permission is hereby granted free of charge to any person obtaining a copy of this software and associated documentation files (the “Software“) to deal in the Software without restriction including without limitation the rights to use copy modify merge publish distribute sublicense and/or sell copies of the Software and to permit persons to whom the Software is furnished to do so subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
using System;
using System.Windows.Forms;
using Core;
namespace LentilToolbox
{
public partial class ftrwin :Form //轴段特征子窗体
{
private int rank;
public Shaftwin Parentwin;
private int iB_flat=0;
private double dBeta=0;//轴段螺旋角
private double dB;//轴段宽度
private double dd;//轴段直径
private bool bFace;//轴段锥面朝向
public ftrwin(Shaftwin oshaftwin)
{
InitializeComponent();
Parentwin = oshaftwin;
}
public void initialize()//初始化参数
{
ShaftType.Text = “普通轴段“;
GearDir.Text = “(请选择旋向)“;
GearType.Text = “(请选择齿轮类型)“;
GearFace.Text = “(请选择锥面朝向)“;
}
//--------------------插入删除及排序相关---------------------
public void RefRank(int a)
{
rank=a;
this.FtrHead.Text = “定义轴特征“+(rank+1);
}
private void ADD_Click(object sender EventArgs e)
{
Parentwin.AddAndRefresh(rank+1);
}
private void Delete_Click(object sender EventArgs e)
{
Parentwin.DeleteAndRefresh(rank);
}
//---------------------下拉选单设置阶段--------------------------
//可视性控制函数
private void ShaftType_SelectedIndexChanged(object sender EventArgs e)
{
if(ShaftType.Text != “(请选择轴段类型)“)
{
refreshdBAnddd();
if (ShaftType.Text == “普通轴段“)
{
Values_Sha.Visible = true;
Values_Cyl.Visible = false;
Values_Bev.Visible = false;
GearType.Visible = false;
GearFace.Visible = false;
GearDir.Visible = false;
GearType.Text = “(请选择齿轮类型)“;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-03-28 10:52 v1.1\
文件 7168 2016-03-20 02:44 v1.1\Core.dll
目录 0 2016-05-24 18:48 v1.1\LentilToolbox\
文件 891904 2016-03-20 02:51 v1.1\LentilToolbox.exe
目录 0 2016-02-14 21:12 v1.1\LentilToolbox\.vs\
目录 0 2016-02-14 21:12 v1.1\LentilToolbox\.vs\LentilToolbox\
目录 0 2016-02-14 21:12 v1.1\LentilToolbox\.vs\LentilToolbox\v14\
文件 251904 2016-08-12 05:55 v1.1\LentilToolbox\.vs\LentilToolbox\v14\.suo
文件 187 2016-02-14 21:12 v1.1\LentilToolbox\App.config
目录 0 2016-02-15 17:47 v1.1\LentilToolbox\bin\
目录 0 2016-02-21 23:09 v1.1\LentilToolbox\bin\Debug\
文件 7680 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\Core.dll
文件 19968 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\Core.pdb
文件 892928 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\LentilToolbox.exe
文件 187 2016-02-14 21:12 v1.1\LentilToolbox\bin\Debug\LentilToolbox.exe.config
文件 48640 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\LentilToolbox.pdb
文件 22696 2016-03-15 10:07 v1.1\LentilToolbox\bin\Debug\LentilToolbox.vshost.exe
文件 187 2016-02-14 21:12 v1.1\LentilToolbox\bin\Debug\LentilToolbox.vshost.exe.config
文件 490 2013-06-18 20:28 v1.1\LentilToolbox\bin\Debug\LentilToolbox.vshost.exe.manifest
文件 49152 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\ModelLib.dll
文件 48640 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\ModelLib.pdb
文件 667 2016-07-28 21:08 v1.1\LentilToolbox\bin\Debug\ModelLib.xm
目录 0 2017-03-28 10:52 v1.1\LentilToolbox\bin\Release\
文件 7168 2016-08-12 05:49 v1.1\LentilToolbox\bin\Release\Core.dll
文件 17920 2016-08-12 05:49 v1.1\LentilToolbox\bin\Release\Core.pdb
文件 891904 2016-08-12 05:49 v1.1\LentilToolbox\bin\Release\LentilToolbox.exe
文件 187 2016-02-14 21:12 v1.1\LentilToolbox\bin\Release\LentilToolbox.exe.config
文件 44544 2016-08-12 05:49 v1.1\LentilToolbox\bin\Release\LentilToolbox.pdb
文件 22696 2016-08-12 05:48 v1.1\LentilToolbox\bin\Release\LentilToolbox.vshost.exe
文件 187 2016-02-14 21:12 v1.1\LentilToolbox\bin\Release\LentilToolbox.vshost.exe.config
文件 490 2016-07-16 19:44 v1.1\LentilToolbox\bin\Release\LentilToolbox.vshost.exe.manifest
............此处省略358个文件信息
- 上一篇:数据库原理和设计.pdf
- 下一篇:黑太阳DIY版最新版远控
评论
共有 条评论