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

Ashish Member Posts: 5
Name Dropper First Comment

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)

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.