在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → 玩转workbench二次开发

玩转workbench二次开发

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:0.59M
  • 下载次数:9
  • 浏览次数:276
  • 发布时间:2021-01-11
  • 实例类别:一般编程问题
  • 发 布 人:好学IT男
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
为了方便大家更加便捷的进行workbench二次开发工作,紧接之前的内容。这次又添加了新的内容、如何外部调用workbench,并自动导入材料和模型等,可以说看家看了这次的内容,关于Workbench二次开发工作就入门了。
component3= system3. GetComponent(Name-"Geometry component=system2. GretComponent(Name="Geometry component3. Replace withShare TargetSystem=system3, ComponentToShare=component, Sourcesystem -systemz tcmplatc3=GctTcmplatc( TemplateN ame= Static Structural Solver="ANSYS components= system3. GetComponent(Name="Model") system4- template Create System Componcnts ToSharc=[componcntl, componcnt3, components Position="Right", Relative To=system 3 看到这里,想必有些道友已经完全搞清楚如何导入我们自己的材料和模型了吧。没 铓,我们不用花很大的精力去搞清楚毎一句到底是什么意识。我们只要将里面的模型路径 和材料路径换成我们自已的就可以导入自己的模型和材料了。 我们郁很清楚,知道如何生成导入模型和材料的宏文件之后,我们确实应该考虑下如 何实现自动的导入模型和材料呢?看过我的关于 ANSYS开发技术的道友们可能想到了能 不能通过在调用 Workbench的时候,传入相关的参数来实现自动导入模型和材料呢?恭喜 你, Workbench二次开发技术你已经成功入门了。接下来,我将阐述如何通过命令行参效 调用 Workbench自动建分析工程、导入模型和材料。 Comand line execution rapd line arguments to facilitate outomation and g system command line and accepts a number of in ANSYS Workbench from the com mand line- he replay of scripts. the following com mand can be t⊥npch>/v221/ FE=CHOE上/in/<E For example to run ANSYS Work bench from the default installation location on a Windows 64-bit sysrem, t121口am,myln飞fns4p1T spIatrorm> will be one of the following Win32 vin后 The fol lowing table describes the command line arguments that can be used to control ANSYS Wor kbench file operations and execution behavior at start-up. Argument operation and a console window is opened. The functionality of the console window is the sayed Hun ANsYS Workbench in hatch mode. In this mode, the user interface is not dis he ANSYS Workbench Command Window R EANSYS play the specified ANSYs Workbench script file on start-up. If specified in conjunctio with -B, ANSYS Workbench will start in batch mode, execute the spe cified script, and script files shut down at the completion of script execution Run ANsYS Workbench in interactive mode. Th s is typically the default but if specified onjunction with=, both the user interface and console window are opened. Run ANsYS Workbench interactively ard then exit upon com pletion of script execution. Typically used in conjunct on with -R nad the specified ANSYS Workbench projec file on starT-IIp. Rejense 12.1-020c9 95A5afaNsy s ese e :u itor os andr intend conridenhialin nforrmotron Journaling and Scripting Overview/ Argument Operati。n project f1台 xecute the d ANsYS Worker rioting command on start-up. You can issu ultiple com ds, separated with a semicolon (), or specify this argument multiple imes and th mands ill be exe The Console window Tne console window is the sarne as the curri nd dow but is present when running in balch nude to pr ovide d way of working directly with corn hands outside of the user inter ace. 看过我上传的 ANSYS Customization toolkit开发技术文档 (https://download.csdn.net/download/weixin_42182348/10723385)的,应该知道这个是摘自 其中一个文档的一部分内容。描述的就是如何通过合令行参数调用 Workbench的。 感兴趣的可以云好好研究下,接下来直接上代码。 f(abin path!=m) string path= prepare. AnsPath +"/Franework/bin/Win64/Run WB2exeR" b jn path +-l WinExec (path c str, WM SHOWWINDOW cout the file to create simulation type is incorrect, pleace ckeck and Itry later!"<< endl 我是用C++实现的,其他语言稍微做些改动就可以了。我一共穿了四个参数 Run wb2exe的路径、-R表示在调用 workbench的时候会去扶行即本文件、紧跟R是刚才 录制的宏文件的路径、Ⅰ表示已交互的方式调用 Workbench区别于B(批欠理方式,没有 界面)。 看了这篇手加上我原来发表的一篇, Workbench的二次开发就可以说是入门了。再参 考下我上传的示例代码,大家就可以对 workbench进行一些自已想要的开发了。 有问题的道友,可以通过我的邮箱联系我。wp154979@163com 【实例截图】
【核心代码】

标签:

实例下载地址

玩转workbench二次开发

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警