Error: attribute 'FieldsFactory' of 'namespace#' object is read-only

Ashish
Ashish Member Posts: 5
Name Dropper First Comment
**

Hi,
I am referring to a previous post on this forum which explained how we can convert a field to scalar values.

rot_mat_f = dpf.FieldsFactory.CreateScalarField(1)

https://discuss.ansys.com/discussion/2150/how-do-you-transform-direction-stresses-to-a-different-coordinate-system-in-dpf

I am trying to use the same syntax in my code, but I am getting an error that says

attribute 'FieldsFactory' of 'namespace#' object is read-only

Please help me resolve this error. I am unable to find any details on "FieldsFactory" either in DPF documentation, scripting in mechanical document or within ANSYS scripting console.

Answers