Skip to content

Spaces not allowed in strings in MAPDL #3718

Open
@germa89

Description

@germa89

Currently, this fail:

mapdl.parameters['mypar'] = "hi there"

I think it was due to parsing issues on the client.

Suggestions:

Use this:

mapdl.input_strings("""
STR_ARRAY=
*DIM, STR_ARRAY, STRING, 80, 3
STR_ARRAY(1,1) = '1---------2---------3---------4---------5---------6---------7---------8---------9---------10--------11--------12--------'
STR_ARRAY(1,2) = 'x1---------2---------3---------4---------5---------6---------7---------8---------9---------10--------11--------12--------'
STR_ARRAY(1,3) = 'x1         2         3         4         5         6         7         8         9         10        11        12        '
*cfopen,'file.txt'
*VWRITE,STR_ARRAY(1,1)
%C
*cfclose
""")
mapdl.download("file.txt")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyMAPDL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions