CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > EnSight

Controlling ensight with Excel VBA

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2017, 07:11
Post Controlling ensight with Excel VBA
  #1
New Member
 
daizy
Join Date: Apr 2017
Posts: 8
Rep Power: 9
daizy is on a distinguished road
Is there any way that I can operate my ensight (python based programme) by excel VBA coding. How can I get DLL which will act as interface between python script of ensight and VBA?
Is it possible?
I need this as soon as possible because I want to customize ensight in one click , I know the operations I have to do in ensight...
Kindly help!!!
daizy is offline   Reply With Quote

Old   May 22, 2017, 11:39
Default
  #2
Member
 
Marina G's Avatar
 
Marina Galvagni
Join Date: Apr 2014
Location: North Carolina, USA
Posts: 58
Rep Power: 12
Marina G is on a distinguished road
Hi Daizy,

The python API of EnSight is designed to be used only from within EnSight, and not from an other app. In other words, you will be able to run the python scripts to guide EnSight only with commands such as

ensight101 -p my_script.py

You can't launch the scripts from an other application without starting EnSight.

So the best approach for you would be to create your customize scripts, and then run them from the shell / command prompt directly.
Note that if you add the -batch flag, EnSight will run in the background and you won't have its gui popping up.

Hope this helps. Let us know if you want more help or need information.
Best Regards,

Marina Galvagni
CEI Software Support Engineer
Marina G is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation - Ensight command Akshay EnSight 5 August 8, 2014 09:43
CFD++ vs. Ensight Gustavo EnSight 0 August 18, 2013 20:49
Radiation and VBA using Excel kapo84 OpenFOAM 2 January 21, 2010 07:46
Advanced post-processing (to Excel) Felix CFX 4 May 2, 2008 14:30


All times are GMT -4. The time now is 01:50.