We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Ansys Fluent 2025R1 udf.bat does not detect MSVC 2022 build tools

    • as188
      Subscriber

      When attempting to set up a UDF compilation environment for Fluent 2025R1 using Build Tools for Visual Studio 2022 on Windows 11, udf.bat looks at the wrong directory. In a fresh installation of the latest MSVC Build Tools and Ansys Student (installed to default locations), udf.bat looks at the following location (taken from $(FLUENT_ROOT)\$(ARCH)\udf.bat, line 13):

      set MSVC_DEFAULT=%ProgramFiles%\Microsoft Visual Studio\2022

      However, Build Tools does not install to Program Files, but rather Program Files (x86). Changing the line to the following allows detection of the MSVC compiler by the script:

      set MSVC_DEFAULT=%ProgramFiles(x86)%\Microsoft Visual Studio\2022

      I do not know if this is a regression from previous versions of Fluent or if the VS IDE installs to %ProgramFiles% by default, but I wanted to report this as a potential bug. This is the only forum I have access to, so please let me know if there is a more appropriate location I can report this to.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.