您好,欢迎访问三七文档
当前位置:首页 > 机械/制造/汽车 > 综合/其它 > Workbench-Customization-二次开发
Workbench-Customization123rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005WorkbenchCustomizationCADFEMUsersMeeting2005BundeshausBonnStefanGottholdCADFEMGmbHWorkbench-Customization223rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005ProgramminginWorkbench:-Overview-TheSimulationWizard-JScript-Practicalimplementation(example)Workbench-Customization323rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005What’sthebestwaytosolveyourproblem:Problem?SimulationWizardJScriptAppletGeneratorWorkbench-Customization423rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005SimulationWizardJScriptAppletGeneratorGuidesdesignersandnon-expertengineersthroughtheanalysisprocess.ThecommonscriptinglanguageusedacrossWorkbenchcomponentsCreatescomplexprogrammedapplications(notinthispresentation)Workbench-Customization523rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005SimulationWizard:(onlyavailableinWBSimulation)AtooltoautomatandcontrolprocessesTheSimulationWizardgiveend-usersaquicklyguidethroughananalysisprocess.Workbench-Customization623rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005SimulationWizardEditor:(MenuToolsWizardEditor…)DefinenewSimulationWizardswiththeSimulationWizardEditorWorkbench-Customization723rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005SimulationWizardEditor:(MenuToolsWizardEditor…)-Easytouse-Descriptionofthetasks-AddpictureswithCut&Paste-AdddefinedtaskstoyourwizardMoreInformation:CustomizationGuideforANSYSWorkbenchCustomizationGuideWorkbenchSimulationWizardBasicsWorkbench-Customization823rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005CreateyourownWizard:Selectanexistingwizardfromthelist.-Defineyourrequiredstepsandalltask-Deleteallunusedsteps(Selectapointandpressthe“Del”key)-Savethewizardorcopyanexistingwizard(e.g.StressWizard)intoyourdirectoryWorkbench-Customization923rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005CreateyourownWizard:StructureofancustomizedwizardWorkbenchWorkflowMyWizardImplementdefinetasksfromWBImplementyourowntasksintoyourWizardImplementyourownJScriptsintoyourWizardControlstandardWBprocesses(e.g.geometryimport)ControlusersdefinedWBprocesses(e.g.forcedefinition)CallJScriptfunctions(e.g.forcedefinition)DefineyourJScriptfunctions(e.g.forcedefinition)Workbench-Customization1023rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005CreateyourownWizard:AnexamplewizardThiscustomizedwizardhasthefollowfunctionality:-StandardtaskforGeometryimport-Specialtaskfordefiningaforceload(withJScript)-Specialtaskfordefiningadisplacementload(withJScript)-Specialtasktodefinearesult(withJScript)-StandardtaskforSolve,ViewResultsandViewReport-HTMLimplementation(IFRAME)Workbench-Customization1123rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005?xmlversion=1.0encoding=ISO-8859-1?simulation-wizardversion=1.0scriptsrc=scripts/myscript.js/mergesrc=simwiz://Tasks/InsertGeometry.xml/mergesrc=Tasks/ForceDef.xml/stringslanguagexml:lang=en-usstringid=Title_CaptionMywizard/stringstringid=Title_DescriptionDemonstratesacustomwizardwithaJscript/string/language/stringsbodygroupid=Titletaskreftask=InsertGeometry/taskreftask=„ForceDef//groupgroupid=Searchcollapsed=yes„caption=„Searchtheweb“iframesrc=iframe/my.html//group/body/simulation-wizardScript:initalizeaJScriptfiletousethefunctionMerge:mergedthefunctionalityofsomexmlscriptfilesThispartdefinedthelanguageandstringstaskref:DefinedtheTask.WhatdoesthewizardwhentheuserclickonapointHereyouseethestructureoftheWizard:-geometry(WBtask–InsertGeometry.xml)-force(userdefinetask–ForceDef.xml)CreateyourownWizard:AHTMLcombinationWorkbench-Customization1223rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005CreateyourownWizard:ElementoftheWizardTagDefinitionDescriptionsimulationsimulation-wizardversion=1.0/simulationIdentifiesthestartofthewizardmergemergesrc=url/MergeexternalXMLfilesscriptscriptsrc=url/SpecifiesanexternalJScriptfiletoloadintotheSimulationWizardobject-groupsobject-groups/object-groupsContainsanunorderedcollectionofobjectgroupdefinitionsstatusesstatuses/statusesContainsanunorderedcollectionofstatusdefinitionsstringstrings/stringsContainsanunorderedcollectionoflanguagestaskstasks/tasksContainsanunorderedcollectionoftaskdefinitions.bodybodytitle=stringID/bodySpecifiescontenttodisplayinsidetheSimulationWizardWorkbench-Customization1323rdCADFEMUsersMeeting2005BonnEdition:17/03/2020©CAD-FEMGmbH2005CreateyourownWizard:DefineyourowntasksDefinethefunctionalitytothetask“ForceDef”taskstaskid=ForceDefdisable-if-missing=geometrycheck-ambiguity=environmentupdate-eventifobjecttype=structuralloadcondition=does-not-exist/andobjecttype=globalloadcondition=does-not-exist//and........................................./ififobjecttype=structuralloadcondition=existsstate=under-defined/orobjecttype=globalloadcondition=existsstate=under-defined//or......
本文标题:Workbench-Customization-二次开发
链接地址:https://www.777doc.com/doc-4419175 .html