Ansys Learning Forum › Forums › Projects & Partners › Ansys Innovation Courses › PyMAPDL Course Element Plot › Reply To: PyMAPDL Course Element Plot
Hi Mike,
switching to the newer version worked, thank you. But with the new version I am getting another error in a different code. This is the part of the other code, which worked with PyMAPDL 0.63.3, but does not work with PyMAPDL 0.65.0:
mapdl.csys(0)
mapdl.nsel('s','loc','z',0)
mapdl.d('ALL', 'UX', 0)
mapdl.d('ALL', 'UY', 0)
mapdl.d('ALL', 'UZ', 0)
mapdl.d('ALL', 'ROTX', 0)
mapdl.d('ALL', 'ROTY', 0)
mapdl.d('ALL', 'ROTZ', 0)
mapdl.allsel('all')
CRITICAL - pymapdl_global - Â logging - handle_exception - Uncaught exception
Traceback (most recent call last):
 File "C:\Users\...\Skript.py", line 191, in
  mapdl.d('ALL', 'ROTX', 0)
 File "C:\Users\...\AppData\Roaming\Python\Python311\site-packages\ansys\mapdl\core\_commands\solution\fe_constraints.py", line 133, in d
  return self.run(command, **kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\...\AppData\Roaming\Python\Python311\site-packages\ansys\mapdl\core\mapdl.py", line 3004, in run
  self._raise_errors(text)
 File "C:\Users\...\AppData\Roaming\Python\Python311\site-packages\ansys\mapdl\core\mapdl.py", line 4015, in _raise_errors
  raise MapdlCommandIgnoredError(text)
ansys.mapdl.core.errors.MapdlCommandIgnoredError: *** WARNING *** Â Â Â Â Â Â Â Â Â Â Â Â CP = Â Â Â 49.125 Â TIME= 08:59:54
 An inactive degree of freedom label (ROTX) was found on the D command. Â
 The current degree of freedom set is: UX UY UZ             Â
 This degree of freedom will be ignored.                Â
 *** WARNING ***             CP =    49.125  TIME= 08:59:54
 No valid degree of freedom labels were input.  The D command is     Â
 ignored.
Ignore these messages by setting 'ignore_errors'=True
Process finished with exit code 1