CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (https://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [ICEM] Load views in ICEMCFD script (https://www.cfd-online.com/Forums/ansys-meshing/140087-load-views-icemcfd-script.html)

Jonathan August 7, 2014 10:32

Load views in ICEMCFD script
 
hi guys,

just wondering if any of the ICEM guys know whether it is possible / how to load previously saved 'views' in ICEM??

I need / want to post process a whole lot of meshes automatically and when i tried to record the replay file including loading a previously saved view, nothing was recorded ... so just wondering if its indeed possible???

thanks very much and best regards
cheers
jonathan

bluebase August 8, 2014 06:55

Hi Jonathan,

there is a tcl command hidden in the icem source which is not fully documented...

Code:

ic_current_view          # returns current view settigns
ic_current_view -pos $pos -rot $rot -center $center -scale $scale    # sets a new view, all arguments are optional

Check ic_current_view first to have an idea what format the $variables have.

With regards,
Sebastian

Jonathan August 8, 2014 11:16

Hi Sebastian,

thank you very much for this answer and your help. i am not an expert in TCL so this really helps me - i have only done beginner-to-intermediate scripting in ICEM, and i am not sure if the 'scripting language' which is recorded when you record replay files is actually TCL or even another 'language'. Anyway, thanks very much.

i'll give it a go when i get time tonight (i need to post-process 120 auto generated meshes for a study i am doing), so if this works it will be a huge help.

thanks very much,
best regards
Jonathan

Quote:

Originally Posted by bluebase (Post 505017)
Hi Jonathan,

there is a tcl command hidden in the icem source which is not fully documented...

Code:

ic_current_view          # returns current view settigns
ic_current_view -pos $pos -rot $rot -center $center -scale $scale    # sets a new view, all arguments are optional

Check ic_current_view first to have an idea what format the $variables have.

With regards,
Sebastian


bluebase August 9, 2014 10:28

Yes, the recorded replay file is in tcl language. The difference between the replay file and a tcl file is the numbering added in the replay file. I think there are some more minor differences but not important ones.

That means you could add this command in your replay file.

with regards,
Sebastian


All times are GMT -4. The time now is 14:23.