
as well as other attribute that looks in Maya Attribute Editor like this:

Simple MFnTypedAttribute with the MFnData:: kString
Code:
MFnTypedAttribute strAttr; mobjString = strAttr.create("ScatterFileName", "sfn", MFnData:: kString);

I am not very satisfied.
How can I create required attribute?