CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > ANSYS Meshing & Geometry

[ICEM] Stop cut plane from taking over control of scroll wheel

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Gert-Jan
  • 1 Post By Brandon233
  • 1 Post By bikooo3878

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2018, 15:57
Default Stop cut plane from taking over control of scroll wheel
  #1
Member
 
James Wright
Join Date: Oct 2015
Posts: 40
Rep Power: 11
u2berggeist is on a distinguished road
So whenever you turn on cut plane, the scroll wheel gets mapped to adjust the position of the cut plane. This is absurdly annoying.

Even worse, after you turn the cut plane off, it is still mapped to the cut plane depth control. This even interferes with my SpaceMouse too, so I can't use it for anything.

How do I stop this?
u2berggeist is offline   Reply With Quote

Old   August 13, 2018, 08:12
Default
  #2
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,910
Rep Power: 28
Gert-Jan will become famous soon enough
I have been working with ICEM for more than a decade and never found a solution. Just be very carefully with the scroll wheel when you create a cut plane.
Nevertheless, when I turn it off, it is really off. But I only use a three-button-mouse.
Gert-Jan is offline   Reply With Quote

Old   August 13, 2018, 11:46
Default
  #3
Member
 
James Wright
Join Date: Oct 2015
Posts: 40
Rep Power: 11
u2berggeist is on a distinguished road
lol. Glad to know I'm not the only one.

I personally don't even see how it's even that useful personally. If you're dealing with a tiny mesh, sure. But anything I deal with (1+ million element) just makes it super laggy.
u2berggeist is offline   Reply With Quote

Old   August 13, 2018, 11:56
Default
  #4
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,910
Rep Power: 28
Gert-Jan will become famous soon enough
What helps (a bit) is to turn off: "show only whole elements", and use a "wireframe view" instead of "solid view".



My all time high is 200 M elements. Then I even don't try to view any element.
aero_head likes this.
Gert-Jan is offline   Reply With Quote

Old   August 14, 2018, 04:51
Default
  #5
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Hi Gert-Jan,


probably, i have a solution for this particular struggle.
ICEM's GUI is written in Tcl/Tk which is an interpretated language (not compiled).
Therefore it is possible to tinker with the GUI a bit.
E.g., I have added an custom menu to group some features i often use.

After searching for Mouse wheel bindings in the GUI, i have found two locations in the code corresponding to cutplanes.
When you comment out the following lines of code, binding to the mouse wheel in cutplanes will be prevented.
To comment out a line, put a # symbol at the beginning. For example:
Code:
# this is a comment in tcl/tk
Navigate to the files stated. The String in <> brackets are only placeholders, replace them with your system's specifics.
Then search for the following lines in those files and comment them out.

<ansys_installdir>\<installed_version>\icemcfd\<yo ur_system>\lib\ai_env\scritps\aie_cutplane.tcl
Code:
     if ![info exists cut_info(mouse_wheel)] {
        set cut_info(mouse_wheel) 1
     }
     foreach m [list . $w] {
         set cut_info(binding,$m,<MouseWheel>) [list bind $m <MouseWheel> [eval bind $m <MouseWheel>]]
         bind $m <MouseWheel> "aie_update_cutplane_wheelzoom $w %D %X %Y"
     }
<ansys_installdir>\<installed_version>\icemcfd\<yo ur_system>\lib\ai_env\scritps\aie_hexa.tcl
Code:
         foreach m [list . $w] {
         set cut_info(binding,$m,<MouseWheel>) [list bind $m <MouseWheel> [eval bind $m <MouseWheel>]]
         bind $m <MouseWheel> "aie_update_cutplane_wheelzoom $w %D %X %Y"
      }
After doing this, you should only be able to move the planes via the input section.





Best regards,
Sebastian Engel
bluebase is offline   Reply With Quote

Old   August 14, 2018, 05:10
Default
  #6
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,910
Rep Power: 28
Gert-Jan will become famous soon enough
Thanks a lot. I will try it asap.
This is something to save in my knowledge base. Because I think I have to change it again for each new version, not?
Gert-Jan is offline   Reply With Quote

Old   August 18, 2018, 09:03
Default
  #7
Senior Member
 
Sebastian Engel
Join Date: Jun 2011
Location: Germany
Posts: 567
Rep Power: 21
bluebase will become famous soon enough
Yes, of course.
Each new versions has their own files which would need to be adapted.
bluebase is offline   Reply With Quote

Old   August 13, 2019, 12:24
Default
  #8
New Member
 
Yuan Gao
Join Date: Jan 2019
Posts: 1
Rep Power: 0
Brandon233 is on a distinguished road
I found a good way to solve it. you can click the "Refresh" button after dismissing the cut plane.
aero_head likes this.
Brandon233 is offline   Reply With Quote

Old   April 18, 2020, 17:43
Default
  #9
Member
 
Mostafa
Join Date: Sep 2016
Posts: 30
Rep Power: 10
bikooo3878 is on a distinguished road
Quote:
Originally Posted by bluebase View Post
Hi Gert-Jan,


probably, i have a solution for this particular struggle.
ICEM's GUI is written in Tcl/Tk which is an interpretated language (not compiled).
Therefore it is possible to tinker with the GUI a bit.
E.g., I have added an custom menu to group some features i often use.

After searching for Mouse wheel bindings in the GUI, i have found two locations in the code corresponding to cutplanes.
When you comment out the following lines of code, binding to the mouse wheel in cutplanes will be prevented.
To comment out a line, put a # symbol at the beginning. For example:
Code:
# this is a comment in tcl/tk
Navigate to the files stated. The String in <> brackets are only placeholders, replace them with your system's specifics.
Then search for the following lines in those files and comment them out.

<ansys_installdir>\<installed_version>\icemcfd\<yo ur_system>\lib\ai_env\scritps\aie_cutplane.tcl
Code:
     if ![info exists cut_info(mouse_wheel)] {
        set cut_info(mouse_wheel) 1
     }
     foreach m [list . $w] {
         set cut_info(binding,$m,<MouseWheel>) [list bind $m <MouseWheel> [eval bind $m <MouseWheel>]]
         bind $m <MouseWheel> "aie_update_cutplane_wheelzoom $w %D %X %Y"
     }
<ansys_installdir>\<installed_version>\icemcfd\<yo ur_system>\lib\ai_env\scritps\aie_hexa.tcl
Code:
         foreach m [list . $w] {
         set cut_info(binding,$m,<MouseWheel>) [list bind $m <MouseWheel> [eval bind $m <MouseWheel>]]
         bind $m <MouseWheel> "aie_update_cutplane_wheelzoom $w %D %X %Y"
      }
After doing this, you should only be able to move the planes via the input section.





Best regards,
Sebastian Engel
Thanks a lot! this has saved me
aero_head likes this.
bikooo3878 is offline   Reply With Quote

Old   September 7, 2021, 00:06
Default
  #10
New Member
 
tyehuo
Join Date: Nov 2019
Posts: 5
Rep Power: 6
tyehuo is on a distinguished road
Quote:
Originally Posted by Brandon233 View Post
I found a good way to solve it. you can click the "Refresh" button after dismissing the cut plane.
This works. Thanks.
tyehuo is offline   Reply With Quote

Old   September 9, 2021, 13:19
Default A quick, easy, weird solution that works fine for me:
  #11
Member
 
Henrique Stel
Join Date: Apr 2009
Location: Curitiba, Brazil
Posts: 93
Rep Power: 17
Stel is on a distinguished road
After closing the cut plane tab, click on the geometry tab and choose anything, for example the create point button using the default (Screen select) option, as if you wanted to create a point anywhere. This will trigger the point selection. Next, click with the mouse right button. This will dismiss everything and you will be able to use the scroll button again to zoom in/out on the geometry.
Stel is offline   Reply With Quote

Reply

Tags
cut plane, icem 19.0


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
View with cut plane Mudblood FLUENT 5 April 4, 2020 11:17
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 03:09
[Gmsh] boundaries with gmshToFoam‏ ouafa OpenFOAM Meshing & Mesh Conversion 7 May 21, 2010 13:43
[OpenFOAM] View the pressure drop contour in a cut plane 2D in a right position zhoubinwx ParaView 3 February 13, 2008 05:46
cut plane? qiaomu FLUENT 1 May 12, 2003 18:24


All times are GMT -4. The time now is 22:54.