資源簡介
個人利用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版最新版遠控
評論
共有 條評論