日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

appemit支持谷歌chrome edge浏览器在线操作CATIA CAD

發布時間:2023/12/4 综合教程 29 生活家
生活随笔 收集整理的這篇文章主要介紹了 appemit支持谷歌chrome edge浏览器在线操作CATIA CAD 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

appemit支持谷歌chrome edge等瀏覽器在線操作CATIA? CAD等

?1? AE.InitApp 初始化連接好websocket

2?OpenApp 打開catia,并且執行read open方法打開part1.CATPart文件

?? ? ? ? ?var ReqPar1={"emit":"open","Obj":"catia","AppType":1,"AppFollow":31
?? ??? ? ? ? ? ? ? ? ? ? ? ? ? ,"src":["demo/htmlDemo/file/part1.CATPart"] ? ? //設置了src 則會Read然后Open
?? ??? ??? ??? ??? ??? ??? ? ? ,"pos":1
?? ??? ? ? ? ? ? ? ? ? ? ? ? ?, "par":{"objName":"catia","HttpPost":null,"show_UpdateTool":true,"AppMethod":"POST" } //catia必須要"AppMethod":"POST" 方式傳遞消息
?? ??? ??? ??? ??? ??? ??? ? ?,"par0":{"noCaption":28 ?//嵌入時默認去掉標題欄高度,0保留
?? ??? ??? ??? ??? ??? ??? ? ? ? ? ? ? ? ?, "embed": 1 ? ? ? ? ?//默認1嵌入 ?-1浮動, ? 0獨立
?? ??? ??? ??? ??? ??? ??? ? ? ? ? ? ? ? ?, "AppStep":{"init":null, "destroy":null, "closed":null
?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ? ?,"loaded":"if (AppJsObject.catia) {return {name:AppJsObject.catia.name,FullName:AppJsObject.catia.FullName};}"} ?//反饋name,FullName

?? ??? ??? ??? ??? ??? ??? ??? ??? ??? ? ?} ?
?? ??? ??? ??? ??? ??? ??? ??
?? ??? ??? ??? ??? ??? ??? ? ?}

?? ??? ? ?
??? ??
?? ? ? ?? ? ? AE.OpenApp(ReqPar1);

?

同時可以使用AppJsObject.catia 來操作 Application

var?? ?codeStr1 = ? AE.txt2code(function(){/*!@preserve
var doc1=AppJsObject.catia.Documents.Add("Part") ;
?
doc1.SaveAs(AppJsFun.fullpath("1.CATPart"));
doc1.Close();
// AppJsFun.log(AppJsObject.catia.Windows);
?return {Visible:AppJsObject.catia.Visible,path:AppJsFun.fullpath("1.CATPart")}; ? ?//反饋?
*/});
?
? ?var ?Req3={"emit":"runCmd","Obj":"catia","AppId":1,"codeStr":codeStr1,"par":{"AppMethod":"POST"} } ??
? ?
? AE.OpenApp( Req3 );

更多接口

catia v5R20 接口
?Name: Application
HelpString:
Interface: ?{7D2C8116-DC44-0000-0280-030BA6000000}
?QueryInterface(pointer, pointer&)
?AddRef()
?Release()
?GetTypeInfoCount(pointer&)
?GetTypeInfo(INT, INT, pointer&)
?GetIDsOfNames(pointer, pointer, INT, INT, pointer&)
?Invoke(int, pointer, INT, WROD, pointer, pointer&, pointer&, pointer&)
?Destructor()
?GetMetaObject()
?IsA()
?IsAKindOf()
?GetImpl()
?SetImpl()
?IsNull()
?IsEqual()
?SurChargeQI()
?ChangeComponentState()
?Application _get
?Parent _get
?Name _get
?Name(pointer)
?GetItem(pointer)
?Documents _get
?ActiveDocument _get
?Windows _get
?ActiveWindow _get
?Printers _get
?ActivePrinter _get
?ActivePrinter(pointer)
?FileSystem _get
?SystemService _get
?FullName _get
? Path _get
? FileSearchOrder _get
? FileSearchOrder(pointer)
? LocalCache _get
? LocalCache(pointer)
?CacheSize _get
?CacheSize(int)
?Visible _get
?Visible(bool)
?Interactive _get
?Interactive(bool)
?DisplayFileAlerts _get
?DisplayFileAlerts(bool)
?Caption _get
?Caption(pointer)
?StatusBar _get
?StatusBar(pointer)
?Width _get
?Width(float)
?Height _get
?Height(float)
?Batch _get
?Batch(pointer)
?Left _get
?Left(float)
?Top _get
?Top(float)
?Help(pointer)
?Quit()
?CreateMail()
?CreateSendTo()
?MsgBox(pointer, word, pointer, pointer, int)
InputBox(pointer, pointer, pointer, word, word, pointer, int)
FileSelectionBox(pointer, pointer, pointer)
StartCommand(pointer)
StartWorkbench(pointer)
?GetWorkbenchId()
?Settings _get
?SettingControllers _get
?SystemConfiguration _get
?RefreshDisplay _get
?RefreshDisplay(bool)
?HSOSynchronized _get
?HSOSynchronized(bool)
{
NewFile=null;
OpenFile=null
}

?//
?Name: Windows
?//
HelpString:
Interface: ?{7FBD96B9-3FA0-0000-0280-030BA6000000}
?QueryInterface(pointer, pointer&)
?AddRef()
?Release()
?GetTypeInfoCount(pointer&)
?GetTypeInfo(INT, INT, pointer&)
?GetIDsOfNames(pointer, pointer, INT, INT, pointer&)
?Invoke(int, pointer, INT, WROD, pointer, pointer&, pointer&, pointer&)
?Destructor()
?GetMetaObject()
?IsA()
?IsAKindOf()
?GetImpl()
?SetImpl()
?IsNull()
?IsEqual()
?SurChargeQI()
?ChangeComponentState()
?Application _get
?Parent _get
?GetItem(pointer)
?Name _get
?Count _get
?_NewEnum _get
?Item(pointer)
?Arrange(pointer)

總結

以上是生活随笔為你收集整理的appemit支持谷歌chrome edge浏览器在线操作CATIA CAD的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。