Sets CurveLoops, typeId and viewId for FilledRegion.
Returns eOk if successful or an appropriate error code in the other case.