|
[Sponsors] |
Automatically starting a Journal File whenever workbench opens |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 8, 2015, 08:45 |
Automatically starting a Journal File whenever workbench opens
|
#1 |
Member
Join Date: Oct 2014
Posts: 44
Rep Power: 12 |
Hello,I am trying to open and drive workbench from excel. Currently I have programmed workbench to launch directly from excel (by creating a .wbpj object in excel and using selection.verb command). Is there a command in excel or in workbench that detects the workbench open event and starts the journal file at specific path automatically? Also, how to record design modeler steps for jscript? These steps would include importing a geometry from creo, creating named selection and changing parameter values.Thanks in advance.
|
|
August 12, 2015, 22:07 |
|
#2 | |
Senior Member
Join Date: Apr 2014
Location: Melbourne
Posts: 584
Rep Power: 14 |
Hi kar.coep
You can run .wbjn file when Workbench is opening by creating a .bat file Code:
"C:\Program Files\ANSYS Inc\v150\Framework\bin\Win64\RunWB2.exe" -I -R try_file.wbjn Code:
# encoding: utf-8 SetScriptVersion(Version="15.0") template1 = GetTemplate(TemplateName="Mesh") system1 = template1.CreateSystem() geometry1 = system1.GetContainer(ComponentName="Geometry") geometry1.Edit() script = open('my_geom.js', 'r') geometry1.SendCommand(Command=script.read()) script.close(); geometry1.Exit() Quote:
Hope it helps Cheers KAPI |
||
Tags |
deign modeler, excel, journal, jscript |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |