0

Pyansys load_parameters (): Has the official API of parameters () been changed? If so, what has it been changed to?

enter image description here

When I ran the previous code, because the pyansys version at that time was very low (0.39.10), it may no longer be applicable in the current version, so I reported an error

enter image description here

enter image description here

qiancha
  • 1
  • 1
  • 1
    Please provide enough code so others can better understand or reproduce the problem. – Community Jan 09 '23 at 13:36
  • Please add your code as text so that others can run your code. Links to the documentation of the package your using would also be useful. – D Malan Jan 09 '23 at 14:43
  • sorry, the hole code is too long to cut, I can provide some code to help you understand – qiancha Jan 10 '23 at 14:44

1 Answers1

1

I think that load_parameters has been replace by the parameters method; see this section in the PyMAPDL documentation:

https://mapdl.docs.pyansys.com/version/stable/api/_autosummary/ansys.mapdl.core.Mapdl.parameters.html

Sorry I can't even remember what load_parameters did, but if I had to guess it retrieved the MAPDL parameters to Python variables? If this is what you mean to use then you can use the following style, assuming here that the MAPDL parameter name is ARG1:

arg1 = mapdl.parameter["ARG1"]

Mike

hkanjih
  • 1,271
  • 1
  • 11
  • 29
Mike R
  • 41
  • 3