首页/文章/ 详情

HyperView二次开发:提高工作效率的利器-自动截图

2月前浏览2378

本文将介绍如何利用HyperView二次开发功能进行自动截图。通过二次开发,可以进一步提高工作效率。

这只是简单的功能演示,在实际开发可以通过做到仅选择输入文件即可输出完整分析报告,例如处理NVH的传函曲线,碰撞结果曲线等,从而节约工作量。

本次展示的是通过后处理二次开发,我们可以轻松实现对所有Page里的window进行截图的功能,不用关注是HyperView或HyperGraph客户端,都能截取图片,这样就避免了手动一个个截图的繁琐步骤。

程序获取方式,后台回复关键字 “截图”


以下是针对企业用户的解决方案:
HyperWork、ANSA、META、ADAMS、STAR-CCM+软件的结构、多体、流体前后处理二次开发;
ADAMS的路面加密;
OPTIMUS优化模板开发;
SDM(仿真数据管理)系统搭建;
TDM(试验数据管理)系统搭建。

来源:TodayCAEer
HyperViewAdamsStar-CCM+碰撞二次开发ANSANVH试验META
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2024-08-14
最近编辑:2月前
TodayCAEer
本科 签名征集中
获赞 17粉丝 25文章 231课程 0
点赞
收藏
作者推荐

HyperWork必备知识-templex语言4-格式化显示

通过表格形式显示数组,语法如下Syntaxtable([,,...,],,,)Inputarray_1Anarrayofvaluesforcolumn1.array_2Anoptionalarrayofvaluesforcolumn2.array_nAnoptionalarrayofvaluesforcolumnn.formatAformatdescriptorforeachcolumninthetable.fromTheindexofthefirstelementineachcolumn.toTheindexofthelastelementineachcolumn.{label={"zero","one","two","three","four"}}{c0={"","I","II","III","IV","V","VI"}}{c1={0,1,2,3,4,5,6}}{table(label,c0,c1,"%8s%8s%4d",0,3)}{label={"zero","one","two","three","four"}}{c0={"","I","II","III","IV","V","VI"}}{c1={0,1,2,3,4,5,6}}{table(label,c0,c1,"%8s%8s%4d",0,4)}{label={"zero","one","two","three","four"}}{c0={"","I","II","III","IV","V","VI"}}{c1={0,1,2,3,4,5,6}}{table(label,c0,c1,"%8s%8s%4d",1,6)}设置字符的格式语法如下:Syntaxformat,%[].[][],[]InputwidthAnoptionalparameterthatspecifiestheminimumnumberofcharacterstobeprinted.precisionAnoptionalparameterthatspecifiesthenumberofdigitstotherightofthedecimalpoint.typeAnoptionalparameterthatspecifiestheformatoftheoutput:i/dintegerffloatingpointe/Escientificnotationg/Gauto-formatooctalx/Xhexadecimalc/Csinglecharacters/SstringoptionalparameterAnoptionalparameterthatdisplaystheoutputinoneofthreeformats:Displaysthecontentsofanarrayascomma-separatedlists.Displaysthecontentsofanarrayaselementsinsideofbraceswitheachelementinthearraysurroundedbybracesandseparatedbycommas.Displaysthecontentsofanarrayasrowsandcolumnsofvaluesboundedbyverticalbars.{format,%i,list}{square1={{1.3,2.9},{3.1,4.2}}}{square1}{square1,%i,array}{square1,%i,matrix}Template:{format,%9.7f}{sin(PI/4)}{sin(PI/4),%5.2f}Output:0.70710670.71计算线性方程3x+4y+9z=295x-3y+z=16x+y+z=4{x_coeffs={3,5,1}}{y_coeffs={4,-3,1}}{z_coeffs={9,1,1}}{rhs={29,16,4}'}{lhs={x_coeffs,y_coeffs,z_coeffs}'}{format,%5.2f,matrix}coefficientmatrix:{lhs}righthandside:{rhs}determinant:{determinant(lhs)}inverse:{inverse(lhs),%7.4f}inversetimesoriginal:{inverse(lhs)*lhs}answer:{inverse(lhs)*rhs}FormattingGuidelinesFormattinggeneraloutput,numericoutput,characterandstringoutput,andmatrices.OutputTemplexwritestexttothespecifiedoutputstreamexactlyasitappearsinthetemplate.Forexample:{X=3}WhatisX+2?Theansweris:{X+2}appearsas:WhatisX+2?Theansweris:5TemplexusesstandardCformatdescriptorstoformatnumericandstringoutput.Formatdescriptorsreserveaspecificamountofspaceintheoutputtextforthevalue.Ifmorespaceisreservedthanthevaluerequires,theoutputtextispaddedwithspaces.Numericalvaluesarerightjustified.Stringvaluesareleftjustified.Ifnoformatisspecified,eachdatatypeusesthedefaultformatassociatedwitheachvariabletypeorthedefaulttemplateformatandtheoutputisnotpadded.AdefaulttemplateformatiscreatedusingtheTemplexstatement.formatFormatdescriptorsareplacedattheendofanexpression.Theyareseparatedfromtheexpressionbyacommaandprecededbyapercentsign,%.Thefollowingexamplesillustratethesyntax:{sqrt(100),%5d}{cos(t)+sin(3.1415/phi),%12.5f}Ofthetwelvespacesinthesecondexample,fivespacesareusedtodisplaythevaluestotherightofthedecimalpoint.Onespaceisreservedforthedecimalpoint.Thesixremainingspacesappeartotheleftofthedecimalpointasablankandazero.Extraspacedoesnotneedtobereservedfortheleadingplus/minussign.Someoperatingsystemsdisplayablankinsteadofaplussign.NumericOutputIntegerandrealvaluescanbedisplayedinsixoutputformats:integeroctal,hexadecimal,floatingpoint,scientificnotation,andvaluedependent.Descriptorsfortheseformatsandexamplesoftheirusearegiveninthefollowingtable.DataFormatDescriptorExampleOutputIntegerdori{sqrt(10000),%5d}{sin(PI/4),%5i}••100••••0Octalo{100,%4o}•144HexadecimalxorX{100,%4X}••64Floatingpointf{sin(PI/4),%6.3f}•0.707ScientificnotationeorE{sin(PI/4),%10.3e}{sin(PI/4),%10.3E}+0.707e+00+0.707E+00Value-dependentgorG{sin(PI/4),%10.3g}{100,%7.3f}•••••0.707100.000Note:The•intheoutputcolumnindicatesblankspaceswhichareusedtopadtheoutputifthereservedspaceisnotcompletelyused.The•doesnotappearinyouroutput.Theanddescriptorsautomaticallydeterminewhetherafixeddecimalorexponentialnotationformatshouldbeused,dependingonthemagnitudeoftheresult.Ifthemagnitudeofthevalueislarge,thedescriptorusesacapitalintheexponent,dependingonyouroperatingsystem’sdefaults.gGGECharacterandStringOutputCharacterandstringvaluescanbedisplayedintwooutputformats,assinglecharactersorasstrings.Descriptorsfortheseformatsandexamplesoftheirusearegiveninthefollowingtable:DataFormatDescriptorExampleOutputsinglecharacterc{65,%c}Acharacterstrings{"Thisisastring",%.12s}ThisisastTemplexnowsupportsforeigncharacterswithanewregistrykey,.Settingtheregistrykeytoignoresforeigncharacterswhilesettingtheregistrykeytosupportsthem.YoumustrestartTemplextoseethechangeasitonlychecksthisregistrykeyatstartup.templex.hichar01MatricesMatricescanbedisplayedinthreeoutputformats:asacomma-separatedlist,asalistofelementsinsidebraces,andasrowsandcolumnsofnumbers.Theparametersforthesethreeformatsandexamplesofeacharegiveninthefollowingtable:DataFormatDescriptorExampleOutputcomma-separatedlistslist{format,%i,list}{square1={{1.3,2.9},{3.1,4.2}}}{square1}{1,2},{3,4}elementsinsideofbracesarray{format,%i,array}{square1={{1.3,2.9},{3.1,4.2}}}{square1}{{1,2},{3,4}}rowsandcolumnsmatrix{format,%3.1f,matrix}{square1={{1.3,2.9},{3.1,4.2}}}{square1}|1.32.9||||3.14.2|来源:TodayCAEer

未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习 福利任务 兑换礼品
下载APP
联系我们
帮助与反馈