Thank you for your help, Imtiaz.

The issue is solved by these steps:

1. In the cfile, the path for saving the keyword is removed sice if you give a path, the same file will get overwritten; if you don't define a path, k file will be created locally in individual folders.

2. The section and material cards are moved to the main file. The thickness parameter can be defined directly in *SECTION using *PARAMETER, no need to define this in cfile.
3. In cfile, there's only *part card for cube. The lines with "$" in cfile are removed since ls-opt was adding extra line if there is "$' in cfile and that caused issues in LSPP in writing correct *PART card.